cordova platform add ios not working on mac (An er

2019-04-02 13:25发布

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

标签: ios cordova-3
2条回答
来,给爷笑一个
2楼-- · 2019-04-02 13:37

I had the same error on my Mac. This is how I fixed it:

  1. Went to http://archive.apache.org/dist/cordova/
  2. Downloaded the latest cordova-3.1.0-src.zip.
  3. Extracted the zip and inside extracted the zip named 'cordova-ios.zip'.
  4. Copy the content of the second zip you extracted (Using terminal) to '/Users/username/.cordova/'
查看更多
Fickle 薄情
3楼-- · 2019-04-02 14:00

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.

查看更多
登录 后发表回答