clang失败,退出代码1构建存档时,构建调试时工作 [英] clang failed with exit code 1 when building Archive, works when building Debug

查看:145
本文介绍了clang失败,退出代码1构建存档时,构建调试时工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的构建设置显示了我的开发人员配置文件Debug和我的分发配置文件的发布和分发方案。我已验证我的分发设置配置文件是最新的,并且不会到2012年8月过期,因此这不是问题。

My build settings show my Developer provisioning profile for Debug and my Distribution provisioning profile for the Release and Distribution schemes. I've verified that my Distribution provisioning profile is up to date and doesn't expire until August of 2012, so that's not the problem.

Ld /Users/kenny/Library/Developer/Xcode/DerivedData/MyAppName-fxknidnbrepotqdvhgjnepxdhonz/ArchiveIntermediates/BalanceSheet/IntermediateBuildFilesPath/MyAppName.build/Release-iphoneos/MyAppName.build/Objects-normal/armv6/MyAppName normal armv6
    cd /Users/kenny/MyLib2/svn-MyAppName-iOS/trunk/MyAppName
    setenv IPHONEOS_DEPLOYMENT_TARGET 3.2
    setenv PATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang -arch armv6 -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.0.sdk -L/Users/kenny/Library/Developer/Xcode/DerivedData/MyAppName-fxknidnbrepotqdvhgjnepxdhonz/ArchiveIntermediates/BalanceSheet/BuildProductsPath/Release-iphoneos -L/Users/kenny/MyLib2/svn-MyAppName-iOS/trunk/MyAppName -L/Users/kenny/MyLib2/svn-MyAppName-iOS/trunk/MyAppName/../../../svn-Flurry/trunk/FlurryLib -F/Users/kenny/Library/Developer/Xcode/DerivedData/MyAppName-fxknidnbrepotqdvhgjnepxdhonz/ArchiveIntermediates/BalanceSheet/BuildProductsPath/Release-iphoneos -filelist /Users/kenny/Library/Developer/Xcode/DerivedData/MyAppName-fxknidnbrepotqdvhgjnepxdhonz/ArchiveIntermediates/BalanceSheet/IntermediateBuildFilesPath/MyAppName.build/Release-iphoneos/MyAppName.build/Objects-normal/armv6/MyAppName.LinkFileList -dead_strip -ObjC -all_load -miphoneos-version-min=3.2 -weak_framework Twitter /Users/kenny/Library/Developer/Xcode/DerivedData/MyAppName-fxknidnbrepotqdvhgjnepxdhonz/ArchiveIntermediates/BalanceSheet/BuildProductsPath/Release-iphoneos/libfacebook_ios_sdk.a -lMyLib_Networking -lMyLib_AdWhirl -lMyLib_ApplicationCore -lMyLib_Audio -framework Foundation -framework UIKit -framework CoreGraphics -framework CoreData -framework AudioToolbox -framework SystemConfiguration -weak_framework iAd -framework QuartzCore -framework CoreLocation -framework AVFoundation -framework MapKit -lsqlite3 -lz -framework MediaPlayer -framework MessageUI -lFlurry -o /Users/kenny/Library/Developer/Xcode/DerivedData/MyAppName-fxknidnbrepotqdvhgjnepxdhonz/ArchiveIntermediates/BalanceSheet/IntermediateBuildFilesPath/MyAppName.build/Release-iphoneos/MyAppName.build/Objects-normal/armv6/MyAppName

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

它不提供错误消息,它只是提供退出代码消息。

It doesn't provide an error message, it just gives the exit code message.

我已经搜索过苹果论坛和Stack Overflow,但是其他帖子都有一些真正的链接器错误,像重复的符号,或者他们没有像我这样的错误,但他们没有答案。

I've searched through the Apple forums and Stack Overflow, but either the other posts have some real linker error like duplicate symbols or they don't have an error like I do, but they don't have an answer.

我正在使用Xcode 4.2。

I'm using Xcode 4.2.

帮助?

推荐答案

看起来问题与我的子项目的架构设置有关。 Xcode 4.2将默认架构更改为armv7而不是armv6和armv7。我已经更新了我的主要项目armv6和armv7,但子项目仍然只使用armv7。一旦我更新所有的子项目,然后它开始链接正确。

It looks like the problem had to do with the Architecture settings on my sub projects. Xcode 4.2 changes the default Architecture to just armv7 instead of both armv6 and armv7. I had updated my main project to armv6 and armv7, but the sub-projects were still only using armv7. Once I updated all of the sub-projects then it started linking properly.

这篇关于clang失败,退出代码1构建存档时,构建调试时工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆