cordova platform add ios not working on mac (An error occured during creation of ios sub-project)

我的梦境 提交于 2019-12-21 06:27:09

问题


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:

  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/'



回答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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!