Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ionic 3 - cannot install onesignal plugin for ios using latest xcode

I cannot create add ios platform for onesignal plugin. With android build its fine.

I did this:

$ ionic cordova platform add ios

the following errors failed.

apple-ios version check failed ("/Users/megasap/Documents/project/railerdotcom/railercom_parent/platforms/ios/cordova/apple_ios_version"), continuing anyways.

Failed to install 'onesignal-cordova-plugin': undefined

Failed to restore plugin "onesignal-cordova-plugin" from config.xml. You might need to try adding it again. Error: /Users/megasap/.rbenv/shims/pod: line 21: /usr/local/Cellar/rbenv/1.0.0/libexec/rbenv: No such file or directory

--save flag or autosave detected

Saving ios@~4.5.4 into config.xml file ...
[ERROR] Exception: 

Full execution and error here: https://gist.github.com/axilaris/a926c54eb515bef5eb2f7019e36aa40f

This used to work, i just update to latest xcode 9.2 to compile other things. Is it something wrong with using the latest xcode ?

like image 766
Axil Avatar asked Sep 19 '26 22:09

Axil


2 Answers

install and update cocoapods fix the problem

sudo gem install cocoapods pod setup

You may need to rm and add ios platform to make it work

like image 74
Batur Avatar answered Sep 21 '26 13:09

Batur


The actual issue is here:

Error: /Users/megasap/.rbenv/shims/pod: line 21: /usr/local/Cellar/rbenv/1.0.0/libexec/rbenv: No such file or directory

Just update/install cocoapods to latest version as your xcode is also updated.

sudo gem install cocoapods 
like image 24
Suraj Rao Avatar answered Sep 21 '26 13:09

Suraj Rao



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!