我正在开发PhoneGap中的应用程序。在将我的iMac更新到OSX Yosemite之前,phonegap完美地完成了构建命令以及所有这些。但在更新到OSX Yosemite之后,每当我运行build命令时,我都会收到此错误:
phonegap build ios
[phonegap] detecting iOS SDK environment...
[phonegap] using the local environment
[phonegap] compiling iOS...
Unknown option: n
Usage: head [-options] <url>...
-m <method> use method for the request (default is 'HEAD')
-f make request even if head believes method is illegal
-b <base> Use the specified URL as base
-t <timeout> Set timeout value
-i <time> Set the If-Modified-Since header on the request
-c <conttype> use this content-type for POST, PUT, CHECKIN
-a Use text mode for content I/O
-p <proxyurl> use this as a proxy
-P don't load proxy settings from environment
-H <header> send this HTTP header (you can specify several)
-u Display method and URL before any response
-U Display request headers (implies -u)
-s Display response status code
-S Display response status chain
-e Display response headers
-d Do not display content
-o <format> Process HTML content in various ways
-v Show program version
-h Print this message
-x Extra debugging output
Cordova can only run in Xcode version 4.6 or greater.
{ [Error: /Volumes/Macintosh HD 2/Aleem Data/Projects On Mac/IPhone Application Projects/Growing Feet/New Version Test/GrowingFeet/growingfeet/platforms/ios/cordova/build: Command failed with exit code 2] code: 2 }
[error] /Volumes/Macintosh HD 2/Aleem Data/Projects On Mac/IPhone Application Projects/Growing Feet/New Version Test/GrowingFeet/growingfeet/platforms/ios/cordova/build: Command failed with exit code 2
我正在使用Xcode 6.1和OSX Yosemite,我已将我的版本更新到最新版本的Phonegap: 3.6.0-0.21.19 但仍然会出现同样的错误。