Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apple rejecting build due to policy #101

Closed
bhaskardabhi opened this issue Aug 29, 2019 · 9 comments
Closed

Apple rejecting build due to policy #101

bhaskardabhi opened this issue Aug 29, 2019 · 9 comments

Comments

@bhaskardabhi
Copy link

I am using this repository for displaying Web view in my application. Everything goes fine but Apple's policy rejecting my build. It gives the following error:
I am getting the following error whenever I am trying to release my app for testing for ios:

ITMS-90809: Deprecated API Usage - Apple will stop accepting submissions of apps that use UIWebView APIs. See https://developer.apple.com/documentation/uikit/uiwebview for more information.

I searched through the entire project and didn't find any reference to UIWebView.

Following are versions of the library that I am using:

"react": "16.8.3",
"react-native": "0.59.8",
"react-native-inappbrowser-reborn": "^2.0.4",

Did you guys face the same issue? Or the issue is with something else but not this library?

@jdnichollsc
Copy link
Member

jdnichollsc commented Aug 29, 2019

This library is using SafariServices/AuthenticationServices instead of WebView, for more details check these links:

Check if you are you using WebView component of RN 👍

@mptorz
Copy link

mptorz commented Aug 29, 2019

I have just got the same email from apple. We didn't get these emails earlier, and we only display the webview in our app using react-native-inappbrowser-reborn :/ @bhaskardabhi let me know if you find a solution!

@jdnichollsc
Copy link
Member

You can say that to Apple and paste the above links, let me know 👍

@jdnichollsc
Copy link
Member

jdnichollsc commented Aug 29, 2019

Also, the correct word here is system browser, not webview... so take care of this because Apple is Apple ¯\_(ツ)_/¯

@jdnichollsc
Copy link
Member

To understand more about Safari View Controller => https://developer.apple.com/videos/play/wwdc2015/504/

@bhaskardabhi
Copy link
Author

Thanks @jdnichollsc . I will take that up with Apple support. @mptorz Sure, Will let you know if I find any solution.

@mptorz
Copy link

mptorz commented Sep 2, 2019

@cinder92
Copy link

cinder92 commented Oct 3, 2019

did you guys find any solution?

@mptorz
Copy link

mptorz commented Oct 3, 2019

Yea. We just added this to the podfile

post_install do |installer|
  react_project = Xcodeproj::Project.open("../node_modules/react-native/React/React.xcodeproj")
  react_project.main_group["React/Views"].files.each do |file|
    if file.path.match(/^RCTWebView/)
      file.remove_from_project
    end
  end
  react_project.save
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants