簡體   English   中英

科爾多瓦XCode Build iOS拋出clang:錯誤:無法執行命令:分段錯誤:11

[英]Cordova XCode Build iOS throw clang: error: unable to execute command: Segmentation fault: 11

我已經使用Apache Cordova開發了一個移動應用程序。 現在,我需要構建iOS平台,但是出現以下錯誤:

clang:錯誤:無法執行命令:分段錯誤:11 clang:錯誤:clang前端命令由於信號失敗(使用-v查看調用)Apple LLVM版本7.3.0(clang-703.0.31)目標:x86_64-apple -darwin15.5.0線程模型:posix InstalledDir:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin clang:注意:診斷消息:請向http://developer.apple提交錯誤報告。 .com / bugreporter /,並包含崩潰回溯,預處理的源以及關聯的運行腳本。 鐺:錯誤:無法執行命令:分段錯誤:11鐺:注意:診斷消息:生成預處理源時出錯。

我已經閱讀了有關Stack Overflow上此錯誤的更多信息,但沒有一個解決了我的問題。 我也完成了以下步驟:

  • 將xCode升級到7.3.1
  • 禁用BitCode
  • 指定部署目標
  • 清理並構建項目
  • 刪除並添加插件
  • 刪除並添加iOS平台
  • 刪除衍生數據
  • 關閉xCode,加載另一個項目並進行構建,然后加載該項目但構建失敗!

我能夠構建並運行我的應用程序的OSX,Android和瀏覽器版本,沒有任何問題!

錯誤的詳細信息:

CompileC /Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/XXX-ewdzeukjxrvcrbeafzrgtkhzjkgu/Bui ld/Intermediates/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/x86_64/CDVViewController.o Classes/Public/CDVViewController.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
    cd "/Volumes/VMware Shared Folders/zz.vvv.bbb/platforms/ios/CordovaLib"
    export LANG=en_US.US-ASCII
    export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x objective-c -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=c99 -fobjc-arc -fmodules -fmodules-cache-path=/Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/ModuleCache
-fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/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 -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wno-implicit-atomic-properties -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 -Wuninitialized -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 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk
-fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -mios-simulator-version-min=6.0 -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote /Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/XXX-ewdzeukjxrvcrbeafzrgtkhzjkgu/Build/Intermediates/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Cordova-generated-files.hmap
-I/Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/XXX-ewdzeukjxrvcrbeafzrgtkhzjkgu/Build/Intermediates/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Cordova-own-target-headers.hmap
-I/Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/XXX-ewdzeukjxrvcrbeafzrgtkhzjkgu/Build/Intermediates/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Cordova-all-target-headers.hmap
-iquote /Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/XXX-ewdzeukjxrvcrbeafzrgtkhzjkgu/Build/Intermediates/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Cordova-project-headers.hmap
-I/Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/XXX-ewdzeukjxrvcrbeafzrgtkhzjkgu/Build/Products/Debug-iphonesimulator/include
-I/Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/XXX-ewdzeukjxrvcrbeafzrgtkhzjkgu/Build/Intermediates/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/DerivedSources/x86_64
-I/Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/XXX-ewdzeukjxrvcrbeafzrgtkhzjkgu/Build/Intermediates/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/DerivedSources
-F/Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/XXX-ewdzeukjxrvcrbeafzrgtkhzjkgu/Build/Products/Debug-iphonesimulator
-DDEBUG -include /Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/XXX-ewdzeukjxrvcrbeafzrgtkhzjkgu/Build/Intermediates/PrecompiledHeaders/CordovaLib_Prefix-dwnzgdewwbvmytankebmwsdayrpm/CordovaLib_Prefix.pch
-MMD -MT dependencies -MF /Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/XXX-ewdzeukjxrvcrbeafzrgtkhzjkgu/Build/Intermediates/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/x86_64/CDVViewController.d
--serialize-diagnostics /Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/XXX-ewdzeukjxrvcrbeafzrgtkhzjkgu/Build/Intermediates/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/x86_64/CDVViewController.dia
-c /Volumes/VMware\ Shared\ Folders/zz.vvv.bbb/platforms/ios/CordovaLib/Classes/Public/CDVViewController.m
-o /Users/vahidfarahmandian/Library/Developer/Xcode/DerivedData/XXX-ewdzeukjxrvcrbeafzrgtkhzjkgu/Build/Intermediates/CordovaLib.build/Debug-iphonesimulator/CordovaLib.build/Objects-normal/x86_64/CDVViewController.o

我終於解決了。

我正在通過VM中的共享文件夾為Mac OS服務我的Cordova應用程序。 我剛剛將Cordova應用程序移至Mac,而不是在“共享文件夾”中提供服務。 然后刪除iOS平台並重新添加。

現在,我的應用程序已成功在xCode中構建。

另外,我在以下鏈接中找到了一些非常有用的信息,這些信息在上述方法均不能解決問題的情況下可能會有所幫助: http : //stack2.ocim.top/10592601/apple-llvm-compiler-3-1-error -ios-5-xcode-4-3.html

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM