链接器命令失败,退出代码1为红色。我该如何解决?我的另一个问题是......我已经将这个应用程序提交给Xcode,前几天工作正常。如果我无法纠正这个..我可以下载我发给Apple的那个吗?
谢谢
Ld /Users/StephenRao/Library/Developer/Xcode/DerivedData/RC_Car-crbpfbxfvatakdekmfisaozvrpcg/Build/Products/Debug-iphonesimulator/Helli.app/Helli normal i386
cd "/Users/StephenRao/Desktop/Helli 2"
export IPHONEOS_DEPLOYMENT_TARGET=7.1
export 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 -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.1.sdk -L/Users/StephenRao/Library/Developer/Xcode/DerivedData/RC_Car-crbpfbxfvatakdekmfisaozvrpcg/Build/Products/Debug-iphonesimulator -F/Users/StephenRao/Library/Developer/Xcode/DerivedData/RC_Car-crbpfbxfvatakdekmfisaozvrpcg/Build/Products/Debug-iphonesimulator -filelist /Users/StephenRao/Library/Developer/Xcode/DerivedData/RC_Car-crbpfbxfvatakdekmfisaozvrpcg/Build/Intermediates/RC\ Car.build/Debug-iphonesimulator/Helli.build/Objects-normal/i386/Helli.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=7.1 -framework iAd -framework AVFoundation -framework CoreGraphics -framework UIKit -framework Foundation -Xlinker -dependency_info -Xlinker /Users/StephenRao/Library/Developer/Xcode/DerivedData/RC_Car-crbpfbxfvatakdekmfisaozvrpcg/Build/Intermediates/RC\ Car.build/Debug-iphonesimulator/Helli.build/Objects-normal/i386/Helli_dependency_info.dat -o /Users/StephenRao/Library/Developer/Xcode/DerivedData/RC_Car-crbpfbxfvatakdekmfisaozvrpcg/Build/Products/Debug-iphonesimulator/Helli.app/Helli
ld: framework not found AVKit for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
答案 0 :(得分:0)
i386 Mac编译器期望AVKit框架适合它。但是您可能只包含了设备框架。包括模拟器(i386)框架或构建设备应用程序可以帮助您。