问题描述
我的队友用一个新的Restkit分支编译了应用程序,它在他的机器上工作正常。在我提取新代码后,我无法再以模拟器模式运行它。
My teammate compiled the application with a new branch of Restkit, and it works fine on his machine. After I pulled the new code, I was unable to run it in simulator mode anymore.
restkit中的供应商代码存在一些错误。
There is some error with the vendor code in the restkit.
我尝试了在其他qns中讨论的解决方案:更改架构,有效架构,编译器(到llvm 2.1)以及其他一系列设置。
I tried e solutions discussed in other qns: changing the architecture, valid architecture, compiler (to llvm 2.1), and a whole host of other settings.
但似乎没有任何效果。任何建议将不胜感激。
But nothing seems to work. Any advise would be greatly appreciated.
我们配置中唯一的关键区别是他已经在他的xcode上安装了ios5,而我没有它
The only key difference in our configuration is that he has installed ios5 on his xcode, while i do not have it
CompileC /Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/Objects-normal/armv6/NXJsonParser.o Vendor/NXJSON/NXJsonParser.m normal armv6 objective-c com.apple.compilers.llvmgcc42
cd /Users/mingyeow/tmp/DailyMus.es/RestKit
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -x objective-c -arch armv6 -fmessage-length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -DDEBUG -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -fexceptions -mmacosx-version-min=10.6 -gdwarf-2 -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -iquote /Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/RestKitJSONParserNXJSON-generated-files.hmap -I/Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/RestKitJSONParserNXJSON-own-target-headers.hmap -I/Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/RestKitJSONParserNXJSON-all-target-headers.hmap -iquote /Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/RestKitJSONParserNXJSON-project-headers.hmap -I/Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Products/Debug-iphonesimulator/include -IVendor/NSJSON -I/Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/DerivedSources/armv6 -I/Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/DerivedSources -F/Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Products/Debug-iphonesimulator -c /Users/mingyeow/tmp/DailyMus.es/RestKit/Vendor/NXJSON/NXJsonParser.m -o /Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/Objects-normal/armv6/NXJsonParser.o
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/
bin/llvm-gcc-4.2 failed with exit code 255
推荐答案
退出代码255表示找不到文件, / Developer / usr / bin
中通常缺少 ld
等可执行文件。要找出它找不到哪个文件打开终端,并手动运行这4个命令(从错误日志中):
Exit code 255 means a file was not found, usually an executable like ld
is missing from /Developer/usr/bin
. To find out which file it cannot find open up a Terminal, and manually run these 4 commands (from the error log):
cd /Users/mingyeow/tmp/DailyMus.es/RestKit
export LANG=en_US.US-ASCII
export PATH="/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 -x objective-c -arch armv6 -fmessage-length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -O0 -Wreturn-type -Wunused-variable -DDEBUG -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk -fexceptions -mmacosx-version-min=10.6 -gdwarf-2 -fobjc-abi-version=2 -fobjc-legacy-dispatch -D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -iquote /Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/RestKitJSONParserNXJSON-generated-files.hmap -I/Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/RestKitJSONParserNXJSON-own-target-headers.hmap -I/Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/RestKitJSONParserNXJSON-all-target-headers.hmap -iquote /Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/RestKitJSONParserNXJSON-project-headers.hmap -I/Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Products/Debug-iphonesimulator/include -IVendor/NSJSON -I/Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/DerivedSources/armv6 -I/Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/DerivedSources -F/Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Products/Debug-iphonesimulator -c /Users/mingyeow/tmp/DailyMus.es/RestKit/Vendor/NXJSON/NXJsonParser.m -o /Users/mingyeow/Library/Developer/Xcode/DerivedData/onethingaday-espywbsoeffyaedhqzaoogguqyci/Build/Intermediates/RestKit.build/Debug-iphonesimulator/RestKitJSONParser+NXJSON.build/Objects-normal/armv6/NXJsonParser.o
然后它会告诉你它找不到的确切文件。
Then it will tell you the exact file it is looking for that is missing.
我猜测 /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
,如果您最近升级到xcode 4.2并且仍然安装了xcode 4.1我建议将所有内容从 /Developer-4.1/Platforms/iPhoneSimulator.platform/Developer/usr/bin /
复制到 /开发人员/平台/ iPhoneSimulator.platform / Developer / usr / bin /
但是没有覆盖/替换任何东西,只需复制4.1目录中但不在 / Developer /中的所有内容平台/ iPhoneSimulator.platform / Developer / usr / bin
。
Im guessing something is missing from /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
, if you recently upgraded to xcode 4.2 and still have xcode 4.1 installed I suggest copying everything from /Developer-4.1/Platforms/iPhoneSimulator.platform/Developer/usr/bin/
to /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/
but without overwriting/replacing anything, just copy everything that is in the 4.1 dir but not in the /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin
.
根据这是如何修复缺少的 execvp
:
According to this article this is how to fix a missing execvp
:
查看您的构建配置。架构可能有一个继承的 $(ARCHS_ ...)
值,它可以触发构建错误:
Check out your build configuration. The Architectures probably have an inherited $(ARCHS_…)
value which can fire a build error:
-
导航到Xcode中的Build Settings并检查Architectures组中的值。
Navigate to Build Settings in Xcode and check out values in the Architectures group.
从Architectures字段中删除VALID ARCH条目重新设置。使用 $(ARCHS_STANDARD_32_BIT)
,或 armv6
, armv7
值如你所愿。 $(ARCHS_STANDARD_32_BIT)
应显示 armv6 armv7
。
Remove "VALID ARCH" entry from Architectures field to reset settings. Use $(ARCHS_STANDARD_32_BIT)
, or armv6
, armv7
values as you wish. $(ARCHS_STANDARD_32_BIT)
should show armv6 armv7
.
在您的相关项目中重复这些步骤。
Repeat these steps at your dependent projects.
这篇关于模拟器的iPhone应用程序编译失败:llvm-gcc-4.2失败,退出代码为255的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!