Pushwoosh / pushwoosh-react-native-plugin

Other
57 stars 43 forks source link

Xcode Build Error on 5.20.8 after updating to latest version #100

Closed CallmeKingsley closed 4 years ago

CallmeKingsley commented 4 years ago

After getting a message from apple store connect about "ITMS-90809: Deprecated API Usage - apple will no longer accept submission of new apps that UiWebView as of April 30, 2020."

I updated to the latest version of pushwoosh-react-native-plugin version 5.20.8

i ran 'grep -r UIWebView ios/Pods/' to check if UiWebView still exist in the directory Screen Shot 2020-04-30 at 12 50 55 PM

when I try to make a build on Xcode, I get those error Screen Shot 2020-04-30 at 10 36 17 AM

any solution will be appreciated.

wfhm commented 4 years ago

Hi @CallmeKingsley,

Pushwoosh SDK was migrated to WKWebView in the 5.19.1 release of the native iOS SDK, so it looks like you use an outdated Titanium plugin. Could you please try updating to the latest version and let us know about the results?

CallmeKingsley commented 4 years ago

Thanks for the quick response. how do I update my Titanium plugin cause i believe am already in the latest version of Pushwoosh when I ran "npm install pushwoosh-react-native-plugin --save"

wfhm commented 4 years ago

@CallmeKingsley,

That should install the latest version, but could you please check which particular version is added to your project? It should be 5.20.8 for the latest React Native plugin version.

CallmeKingsley commented 4 years ago

Screen Shot 2020-04-30 at 5 12 47 PM

that's the version on my package.json file

wfhm commented 4 years ago

@CallmeKingsley okay, thanks for the details. Please let me pull some time to check it and I will be back shortly

CallmeKingsley commented 4 years ago

@wfhm I believe I have resolved the issue. 1) I revert to the old version and ran "npm update pushwoosh-react-native-plugin" 2) I deleted podfile.lock file,Pods folder and node_modules folder for fresh references 3) I ran yarn/npm install, then I went to the ios folder and ran pod install

It looks like works now. thanks @wfhm

wfhm commented 4 years ago

@CallmeKingsley,

That should do the trick, good job!