2015-11-02 72 views
2

我在升級到ElCapitánfor Meteor應用程序後無法通過Xcode iOS模擬器登錄時出現問題。我重新安裝了Xcode,但這似乎沒有幫助。升級到ElCapitán後,iOS模擬器中未運行流星應用程序

然後,我從我的Meteor應用程序中刪除了我的cordova插件([email protected][email protected]),清除.meteor/local/cordova-plugins,然後重新開始 - 測試我的應用程序:

Marks-MacBook-Air:meteor markshust$ meteor run ios-device --settings settings/dev.json --verbose 
Adding platform iOS to Cordova project 
=> Errors executing Cordova commands: 

    While adding platform iOS to Cordova project: 
    Cordova error: CordovaError: Failed to fetch platform ios 
    Probably this is either a connection problem, or platform spec is incorrect. 
    Check your connection and platform name/version/URL. 
    Error: version not found: [email protected] 
    at /Users/markshust/.meteor/packages/meteor-tool/.1.1.10.12lm5ls++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/cordova/platform.js:270:25 
    at _rejected (/Users/markshust/.meteor/packages/meteor-tool/.1.1.10.12lm5ls++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:797:24) 
    at /Users/markshust/.meteor/packages/meteor-tool/.1.1.10.12lm5ls++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:823:30 
    at Promise.when (/Users/markshust/.meteor/packages/meteor-tool/.1.1.10.12lm5ls++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:1035:31) 
    at Promise.promise.promiseDispatch (/Users/markshust/.meteor/packages/meteor-tool/.1.1.10.12lm5ls++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:741:41) 
    at /Users/markshust/.meteor/packages/meteor-tool/.1.1.10.12lm5ls++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:557:44 
    at flush (/Users/markshust/.meteor/packages/meteor-tool/.1.1.10.12lm5ls++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:108:17) 
    at process._tickCallback (node.js:448:13) 
    (If the error message contains suggestions for a fix, note that this may not apply to the Meteor integration. You can try running again with the --verbose option to help diagnose the issue.) 

所以,我繼續和安裝科爾多瓦-IOS和IOS部署:

Marks-MacBook-Air:meteor markshust$ npm install -g cordova-ios ios-deploy 
- 
> [email protected] preinstall /usr/local/lib/node_modules/ios-deploy 
> ./src/check_reqs.js && xcodebuild 

=== BUILD TARGET ios-deploy OF PROJECT ios-deploy WITH THE DEFAULT CONFIGURATION (Release) === 

Check dependencies 

Write auxiliary files 
write-file /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/ios-deploy-project-headers.hmap 
write-file /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/ios-deploy.hmap 
write-file /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/ios-deploy-own-target-headers.hmap 
write-file /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/ios-deploy-all-non-framework-target-headers.hmap 
/bin/mkdir -p /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64 
write-file /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64/ios-deploy.LinkFileList 
write-file /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/ios-deploy-generated-files.hmap 
write-file /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/ios-deploy-all-target-headers.hmap 

CompileC build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64/ios-deploy.o src/ios-deploy.c normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler 
    cd /usr/local/lib/node_modules/ios-deploy 
    export LANG=en_US.US-ASCII 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch x86_64 -fmessage-length=214 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -fcolor-diagnostics -std=gnu99 -fobjc-arc -fmodules -gmodules -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/var/folders/zf/wj73wl2d71z5d7n2bdrw78mh0000gn/C/org.llvm.clang/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -Os -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wunreachable-code -Wno-implicit-atomic-properties -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wduplicate-method-match -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wundeclared-selector -Wno-deprecated-implementations -DNS_BLOCK_ASSERTIONS=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mmacosx-version-min=10.8 -g -fvisibility=hidden -Wno-sign-conversion -iquote /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/ios-deploy-generated-files.hmap -I/usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/ios-deploy-own-target-headers.hmap -I/usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/ios-deploy-all-target-headers.hmap -iquote /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/ios-deploy-project-headers.hmap -I/usr/local/lib/node_modules/ios-deploy/build/Release/include -I/usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/DerivedSources/x86_64 -I/usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/DerivedSources -F/usr/local/lib/node_modules/ios-deploy/build/Release -x objective-c -fno-objc-arc -MMD -MT dependencies -MF /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64/ios-deploy.d --serialize-diagnostics /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64/ios-deploy.dia -c /usr/local/lib/node_modules/ios-deploy/src/ios-deploy.c -o /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64/ios-deploy.o 

Ld build/Release/ios-deploy normal x86_64 
    cd /usr/local/lib/node_modules/ios-deploy 
    export MACOSX_DEPLOYMENT_TARGET=10.8 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -L/usr/local/lib/node_modules/ios-deploy/build/Release -F/usr/local/lib/node_modules/ios-deploy/build/Release -filelist /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64/ios-deploy.LinkFileList -mmacosx-version-min=10.8 -framework MobileDevice -F/System/Library/PrivateFrameworks -fobjc-arc -fobjc-link-runtime -framework Foundation -framework CoreFoundation -Xlinker -dependency_info -Xlinker /usr/local/lib/node_modules/ios-deploy/build/ios-deploy.build/Release/ios-deploy.build/Objects-normal/x86_64/ios-deploy_dependency_info.dat -o /usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy 

GenerateDSYMFile build/Release/ios-deploy.dSYM build/Release/ios-deploy 
    cd /usr/local/lib/node_modules/ios-deploy 
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy -o /usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy.dSYM 

** BUILD SUCCEEDED ** 

/usr/local/bin/ios-deploy -> /usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy 
[email protected] /usr/local/lib/node_modules/cordova-ios 

[email protected] /usr/local/lib/node_modules/ios-deploy 

然而,當我安裝了這兩個包,我得到了同樣的錯誤:

Marks-MacBook-Air:meteor markshust$ meteor run ios-device --settings settings/dev.json --verbose 
Adding platform iOS to Cordova project 
=> Errors executing Cordova commands: 

    While adding platform iOS to Cordova project: 
    Cordova error: CordovaError: Failed to fetch platform ios 
    Probably this is either a connection problem, or platform spec is incorrect. 
    Check your connection and platform name/version/URL. 
    Error: version not found: [email protected] 
    at /Users/markshust/.meteor/packages/meteor-tool/.1.1.10.12lm5ls++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/cordova-lib/src/cordova/platform.js:270:25 
    at _rejected (/Users/markshust/.meteor/packages/meteor-tool/.1.1.10.12lm5ls++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:797:24) 
    at /Users/markshust/.meteor/packages/meteor-tool/.1.1.10.12lm5ls++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:823:30 
    at Promise.when (/Users/markshust/.meteor/packages/meteor-tool/.1.1.10.12lm5ls++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:1035:31) 
    at Promise.promise.promiseDispatch (/Users/markshust/.meteor/packages/meteor-tool/.1.1.10.12lm5ls++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:741:41) 
    at /Users/markshust/.meteor/packages/meteor-tool/.1.1.10.12lm5ls++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:557:44 
    at flush (/Users/markshust/.meteor/packages/meteor-tool/.1.1.10.12lm5ls++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/lib/node_modules/q/q.js:108:17) 
    at process._tickCallback (node.js:448:13) 
    (If the error message contains suggestions for a fix, note that this may not apply to the Meteor integration. You can try running again with the --verbose option to help diagnose the issue.) 

任何人都有什麼線索是怎麼回事?它抱怨它無法找到版本[email protected],但它顯然是全球安裝的。

我也嘗試卸載全球包裝:

npm uninstall -g cordova-ios ios-deploy 

然後除去&加回至IOS平臺流星:

meteor remove-platform ios 
meteor add-platform ios 

,但我仍然收到了同樣的錯誤:

=> Errors executing Cordova commands:   

    While adding platform iOS to Cordova project: 
    Cordova error: Failed to fetch platform ios 
    Probably this is either a connection problem, or platform spec is incorrect. 
    Check your connection and platform name/version/URL. 
    Error: version not found: [email protected] 
    (If the error message contains suggestions for a fix, note that this may not apply to the Meteor integration. You can try running again with the --verbose option to help diagnose the issue.) 
+0

嗨,這個問題是暫時的,也許。在此期間嘗試「流星添加平臺ios @ 3.9.1」。 – petvoj

+0

在添加平臺時: 錯誤:[email protected]:沒有這樣的平臺 –

回答

12

我也有同樣的問題,只是刪除.cordova目錄修復它

rm -rf ~/.cordova 
+0

非常感謝!就是這樣。 –

+0

在某些情況下,您可能需要使用'sudo'與上述命令。 – Neel

2

幾小時前我剛開始有同樣的問題。 我能夠通過吹走我的${HOME}/.cordova目錄來解決這個問題,該目錄似乎保留了之前下載的cordova-ios版本的緩存。我有一個3.9.1版本(不是3.9.2版本)。刪除該目錄並重新執行cordova platform add iOS命令後,一切正常。我無法解釋爲什麼這會起作用......但希望它能讓其他人重新開始工作。

相關問題