3

iPhone 6.1 シミュレーターで iOS アプリをビルド/実行しようとしていますが、このエラーが発生します。私は周りを見回して、見つけたものすべてを試しましたが、何も役に立ちませんでした.

これは他のコンピューターではビルドされますが、このコンピューターではビルドされません。私はiOS開発に完全に慣れていないので、どこから始めればよいかわかりません。

エラーメッセージは次のとおりです。

CompileC /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o CorsageCreations/AppDelegate.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd "/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations"
setenv LANG en_US.US-ASCII
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-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 -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -DDEBUG=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -fexceptions -fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g -Wno-sign-conversion -fobjc-abi-version=2 -fobjc-legacy-dispatch -mios-simulator-version-min=5.0 -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-generated-files.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-own-target-headers.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-all-target-headers.hmap -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-project-headers.hmap -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator/include -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources/i386 -I/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources -F/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator "-F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../../../../../../Desktop/FbShare" "-F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../.." -F/Users/GuestUser/Desktop -include /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/PrecompiledHeaders/CorsageCreations-Prefix-fjwwmvkmbxepoldfyuusggxlzkzu/CorsageCreations-Prefix.pch -MMD -MT dependencies -MF /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.d --serialize-diagnostics /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.dia -c "/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/AppDelegate.m" -o /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o

0  clang 0x0000000100c57bb2 main + 12932498
Stack dump:
0.  Program arguments:             /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -cc1 -triple i386-apple-ios5.0.0 -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name AppDelegate.m -pic-level 2 -mdisable-fp-elim -masm-verbose -target-cpu yonah -target-linker-version 136 -g -coverage-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o -resource-dir /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/4.2 -dependency-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.d -MT dependencies -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-generated-files.hmap -iquote /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-project-headers.hmap -include-pch /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/PrecompiledHeaders/CorsageCreations-Prefix-fjwwmvkmbxepoldfyuusggxlzkzu/CorsageCreations-Prefix.pch.pth -D DEBUG=1 -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-own-target-headers.hmap -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/CorsageCreations-all-target-headers.hmap -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator/include -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources/i386 -I /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/DerivedSources -F/Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Products/Debug-iphonesimulator -F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../../../../../../Desktop/FbShare -F/Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/../../.. -F/Users/GuestUser/Desktop -fmodule-cache-path /var/folders/_z/1x7mbrnx6f310pngnn97l5_00000gn/T/clang-module-cache -O0 -Wno-trigraphs -Wno-missing-field-initializers -Wno-missing-prototypes -Wreturn-type -Wno-implicit-atomic-properties -Wno-receiver-is-weak -Wduplicate-method-match -Wformat -Wno-missing-braces -Wparentheses -Wswitch -Wno-unused-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 -Wno-constant-conversion -Wno-int-conversion -Wno-enum-conversion -Wno-shorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector -Wno-strict-selector-match -Wno-undeclared-selector -Wno-deprecated-implementations -Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -std=gnu99 -ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks -fobjc-runtime=ios-5.0.0 -fobjc-default-synthesize-properties -fobjc-exceptions -fexceptions -fpascal-strings -fdiagnostics-show-option -fasm-blocks -serialize-diagnostic-file /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.dia -o /Users/GuestUser/Library/Developer/Xcode/DerivedData/CorsageCreations-bisxifklumnvgbghbkjqvehvmshk/Build/Intermediates/CorsageCreations.build/Debug-iphonesimulator/CorsageCreations.build/Objects-normal/i386/AppDelegate.o -x objective-c /Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/AppDelegate.m 
1.  /Volumes/VMware Shared Folders/iosProj/corsage-ios/CorsageCreations/CorsageCreations/ArrayObject.h:46:33: current parser token ':'
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see invocation)
Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)
Target: i386-apple-darwin12.3.0
Thread model: posix
clang: note: diagnostic msg: PLEASE submit a bug report to http://developer.apple.com/bugreporter/ and include the crash backtrace, preprocessed source, and associated run script.
clang: error: unable to execute command: Segmentation fault: 11
clang: note: diagnostic msg: Error generating preprocessed source(s).
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 254
4

5 に答える 5

2

同じエラーが発生しました。サンプル プロジェクトを VMWare 共有フォルダーのサブ フォルダーに保持して実行していました。そして、それが上記の問題を引き起こした理由です。

コンパイルして実行したいサンプル プロジェクトをコピーし (またはビルドしても上記のエラーが発生しました)、VMWare Workstation 9.0 で実行されている Mac OS X (Mavericks) デスクトップに貼り付けました。その後、実行してみましたが、うまくいきました!

この回答が他の誰かに役立つことを願っています! 幸運を!!!

于 2014-03-31T13:26:41.347 に答える
0

これにより、同様の問題が発生し、考えられる原因が示されます。これを .m ファイルに入れてコンパイルしてみてください。

 typedef struct{
    int workAroundAsStructCannotBeOtherwiseEmpty;
    float points [];
} arrayOfFloats;

@property arrayOfFloats someArrayOfFloats;

興味深いことに、「回避策」行がないとコンパイルできません。浮動小数点 [10] に変更すると、正常にコンパイルされます。

于 2014-12-12T14:07:25.267 に答える
0

clang(コンパイラ) segfault ( )を作成しSegmentation fault: 11ました。それについては何もできませんが (パッチを適用したい場合を除きます)、コンパイル時clangにオプションを渡すことで問題を調査できます。-v

よくわかりませんが、仮想マシン内で開発しているためだと思います。私の知る限り、OS X は VMWare Fusion 5+ のゲスト OS としてのみサポートされており、それでもかなり不安定です。

于 2013-07-02T13:40:22.127 に答える