Open djereg opened 7 years ago
Have you figured this out by chance? Having the same error! Thanks!
working fine with ionic2 + android but Having the same error with ionic2 + IOS.
Same Issue
global packages:
@ionic/cli-plugin-proxy : 1.3.1
@ionic/cli-utils : 1.4.0
Cordova CLI : 7.0.1
Ionic CLI : 3.4.0
local packages:
@ionic/app-scripts : 1.3.12
@ionic/cli-plugin-cordova : 1.4.0
@ionic/cli-plugin-ionic-angular : 1.3.1
Cordova Platforms : ios 4.4.0
Ionic Framework : ionic-angular 3.5.0
System:
Node : v7.9.0
OS : macOS Sierra
Xcode : Xcode 8.3.3 Build version 8E3004b
ios-deploy : 1.9.1
ios-sim : 5.1.0
npm : 5.0.0
@rogeliotrejo13
please set your platform directory after then try to install OneSignal plugin.
@Spanchal21 I tried your solution too, and I have the same error. Thank you!
@rogeliotrejo13 please update/install latest ionic and try again
same error!! @rogeliotrejo13 have you resolved it.
I solved it by adding cocapods and removing and adding the one-signal plugin again. https://documentation.onesignal.com/v3.0/docs/ionic-sdk-setup
Run pod setup
same issue here, did you find any fix?
In the installation guide in one signal website, I found how install one signal with cocoapods, and I solved it https://documentation.onesignal.com/docs/ionic-sdk-setup
sudo gem install cocoapods pod repo update
any updates of this?
@seedgabo try to run pod install (on ios folder) and be sure one-signal is installed, then I had to include it manually from XCode on Build Phases -> Link binary with libraries. Click on the plus icon and look for OneSignal on (this is where OneSignal should be installed if pod install worked fine) platforms/ios/Pods/OneSignal/iOS_SDK/OneSignalSDK/Framework/OneSignal.framework (or similar) Then compile and it should be fixed
@salimchemes , thank you, this solution works
The approach by @salimchemes was successful for me. To clarify one point -- the "project" target needs to include link binary OneSignal.framework (as described). After following the OneSignal docs, I also have a "OneSignalNotificationsServiceExtension" target with link binary OneSignal.framework. So both targets needed to include OneSignal.framework.
When upgrading to onesignal-cordova-plugin ~2.1.1, cloud build fails with the next error:
I can build it on local machine, only cloud build fails.
With onesignal-cordova-plugin ~2.0.11 the cloud build works fine.