clang因退出代码1而失败

时间:2012-02-03 11:08:15

标签: iphone objective-c ios

任何人都可以告诉我如何解决这个错误...... 我的X-Code是4.2版。 我的IOS模拟器是5.0版

Ld build/Debug-iphonesimulator/M3DFree.app/M3DFree normal i386
cd "/Users/savvy3/Desktop/Ayaz/Hemant Sir/PlayScreen-M3D_V2-41d4396ba6d1c8687eb2b744a700649849583714/match3D"
setenv MACOSX_DEPLOYMENT_TARGET 10.6
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/clang -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.0.sdk "-L/Users/savvy3/Desktop/Ayaz/Hemant Sir/PlayScreen-M3D_V2-41d4396ba6d1c8687eb2b744a700649849583714/match3D/build/Debug-iphonesimulator" "-F/Users/savvy3/Desktop/Ayaz/Hemant Sir/PlayScreen-M3D_V2-41d4396ba6d1c8687eb2b744a700649849583714/match3D/build/Debug-iphonesimulator" -filelist "/Users/savvy3/Desktop/Ayaz/Hemant Sir/PlayScreen-M3D_V2-41d4396ba6d1c8687eb2b744a700649849583714/match3D/build/Match3D.build/Debug-iphonesimulator/Match3DFree.build/Objects-normal/i386/M3DFree.LinkFileList" -mmacosx-version-min=10.6 -Xlinker -objc_abi_version -Xlinker 2 AppController.m -Xlinker -no_implicit_dylibs -D__IPHONE_OS_VERSION_MIN_REQUIRED=30200 -framework GameKit -lsqlite3.0 -framework StoreKit -framework MediaPlayer -framework AudioToolbox -framework Foundation -framework UIKit -framework CoreGraphics -framework OpenGLES -framework QuartzCore -o "/Users/savvy3/Desktop/Ayaz/Hemant Sir/PlayScreen-M3D_V2-41d4396ba6d1c8687eb2b744a700649849583714/match3D/build/Debug-iphonesimulator/M3DFree.app/M3DFree"

Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang failed with exit code 1

1 个答案:

答案 0 :(得分:2)

该错误提及了一些关于

的内容

D__IPHONE_OS_VERSION_MIN_REQUIRED = 30200

这是对iOS 3.2(第一个iPad OS)的引用。检查您的构建目标,确保您正在为iOS 5构建,并且部署目标是4.3或更高版本。

如果这没有用,那么它可能只是“其中一个Xcode错误”并进行干净的构建,重置模拟器,清除项目缓存并重新启动Mac可能会解决它。

相关问题