gpt4 book ai didi

ios - XCode clang 失败,退出代码为 254

转载 作者:塔克拉玛干 更新时间:2023-11-02 07:48:01 25 4
gpt4 key购买 nike

我试图在 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

最佳答案

我遇到过同样的问题。事实证明,VMWare 共享的主机文件夹是只读的(即使未选中 VM 设置中的只读属性)。

您是否尝试过运行示例 xcode 项目或将您引用的代码复制到 VM?

我最终使用 Windows 8 中内置的常规文件共享来共享我的文件夹。

关于ios - XCode clang 失败,退出代码为 254,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17426810/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com