Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Cordova can't find ios-deploy on mac #332
On a Mac OS Sierra.
Try to run Cordova build ios --dev
I follow that command npm install -g iso-deploy
It looks like it is installed.
Back to build with cordova build ios --dev
On the command line I can type ios-deploy
cordova can find ios-deploy
cordova can not find ios-deploy. Is this because I have it installed in different folder?
System Software Overview:
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/c++/4.2.1
Still not sure if this is a cordova problem or ios-deploy problem.
I boot up the mac, I go to the folder where the code is.
I find the codeproj file in the ios platform.
I then build in xcode to push to a phone.
When I go back to the command line try to now build for prod (or dev) I can error:
Now I can't build but 1 min ago I could.
I did downgrade my cordova version to 7.0.1.
Seems like something in xcode screws up the path to where cordova can't find ios-deploy anymore.
the solution is here:
OS X 10.11 El Capitan or greater
Add the --unsafe-perm=true flag when installing ios-deploy
For those who have the cordova files in an own cordova directory: What helped for me was the following:
Another time I noticed, that I kept getting that error message. But when checking Xcode, the build was updated. So I could ignore the error.. Really strange.
Next to this problem I had another problem that helped me fix this problem: I could not update or uninstall or reinstall cordova. When I tried installing it, the logs showed me the path of its binary. When adding this path to my ~/.bash_profile (or bashrc or .profile) by adding the line "$PATH=$PATH:/Users/$USER/.npm-packages/lib/node_modules/cordova/bin" cordova worked and I also did not get this error message anymore. When you navigate to that path to node_modules, you can see ios-deploy is there too after your installation. So at least adding its path should help out.
I am getting the same error:
As @Sara-- mentioned, I just realized that XCode is actually being updated and the build succeed so the error can be ignored.
Hi, i've same error on mac with Xcode 10 and build is not generated: some help ?
I got the same error after, I had run the code using the iphone simulator in xcode, so I guess its trying to do a run on the device, so all you have to do is change your build target to a generic ios device in xcode and restart xcode then