Forum Xamarin Xamarin.iOS

iOs App rejected by Apple - not getting the packages that uses UIWebview while using 'grep -r UIWebV

Rejection mail from Apple

I found out that some of my packages in my project is using UIWebview.

I want to find out the packages that are using UIWebview in my project
I am not sure whether this is the right way to write the command in the terminal. Help me if I am doing wrong.
I am waiting for a long time. Why it's showing recursive search of stdin ?? How can I find out the packages which is using UIWebview in xamarin?

Tagged:

Best Answer

Answers

  • XamarinInfoXamarinInfo Member ✭✭

    @ColeX Hi,
    Thanks for your time :)
    I have already added that in my mtouch arguments,that's how I got that warnings which I have mentioned in the issue.

    But from that warning, we cant find out the libraries/packages which are using UIWebview.
    From some google search its showing that we can find it out by using 'grep -r UIWebview.' in terminal,but I am getting 'recursive search of stdin' message in the terminal.Nothing else.

    So i just want to know whether I am following the correct way in the terminal.
    Can you please help me in that way??

  • ColeXColeX Member, Xamarin Team Xamurai

    You should access into ipa folder and then use grep.

    cd YOURAPP.ipa
    grep -r UIWebView .
    

    Besides , please update xmarin.forms , Xamarin.iOS package to the latest , set linker behavior to Link SDK only in release mode , make sure that you set the mtouch argument on the right build configuration.

    Try these to see if problem persists.


    Refer to

    https://github.com/xamarin/Xamarin.Forms/issues/11146 .

    https://github.com/xamarin/Xamarin.Forms/issues/10739#issuecomment-630049076.

  • XamarinInfoXamarinInfo Member ✭✭

    This is what I am getting while doing cd Application.ipa
    :(
    @ColeX

  • DirkWilhelmDirkWilhelm USMember ✭✭✭✭

    An ipa file is simply just a zip file. Unpack it and try your commands again

  • XamarinInfoXamarinInfo Member ✭✭

    Thnx bro.
    Here I tried with the project path itself.

    I am getting sqlite and libHockeysdk.

    I am not using these libraries.
    What we have to do now?

    @DirkWilhelm @ColeX

  • DirkWilhelmDirkWilhelm USMember ✭✭✭✭

    @XamarinInfo you can try adding --optimize=force-rejected-types-removal to your additional mtouch arguments

  • ColeXColeX Member, Xamarin Team Xamurai
    edited September 16

    Enter the following command in Nuget Package Manager Console to check if you've installed the package before .

    Get-Package
    

    The is my test result

  • XamarinInfoXamarinInfo Member ✭✭

    Thnx @ColeX and @DirkWilhelm

    I have added my app to app store without rejection

    The methods you have suggested helped me a lot.

    Don't know how to express my gratitude.

    Thanx again :smile:

  • ColeXColeX Member, Xamarin Team Xamurai

    @XamarinInfo said:
    Thnx @ColeX and @DirkWilhelm

    I have added my app to app store without rejection

    The methods you have suggested helped me a lot.

    Don't know how to express my gratitude.

    Thanx again :smile:

    If problem get resolved , please mark the helpful comment as answer .

Sign In or Register to comment.