问题
when I am adding paltform of ios I am having this error.
[Error: An error occured during creation of ios sub-project. /bin/sh: /Users/muhammadtalal/.cordova/lib/ios/cordova/3.1.0/bin/create: No such file or directory ]
I have searched on internet and I found this link http://mail-archives.apache.org/mod_mbox/cordova-issues/201307.mbox/%3CJIRA.12657795.1373912136728.51796.1373912569815@arcas%3E
i tried this to but its still not working
The version of cordova is 3.0
回答1:
I had the same error on my Mac. This is how I fixed it:
- Went to http://archive.apache.org/dist/cordova/
- Downloaded the latest cordova-3.1.0-src.zip.
- Extracted the zip and inside extracted the zip named 'cordova-ios.zip'.
- Copy the content of the second zip you extracted (Using terminal) to '/Users/username/.cordova/'
回答2:
If you guys are having an error "Unknown option: n", you probably have installed XAMPP or something else which changed the PATH environment. edit your .profile and put the XAMPP binary path to the last of the PATH environment.
来源:https://stackoverflow.com/questions/19519092/cordova-platform-add-ios-not-working-on-mac-an-error-occured-during-creation-of