XCode中的Clang错误

我的应用程序在xcode 4.4.1中运行良好,但是我只是更新到了4.5,现在我得到了一个铛错误。 甚至不知道它在说什么,有没有人以前经历过这件事,或者可以阐明我如何去解决这个问题? 这里是确切的错误:

Ld /Users/natehamilton/Library/Developer/Xcode/DerivedData/LCBCChurch-hacgcivdmhbavlecueatfvjbekxn/Build/Intermediates/LCBCChurch.build/Debug-iphoneos/LCBCChurch.build/Objects-normal/armv7s/LCBCChurch normal armv7s cd "/Users/natehamilton/Desktop/Current Projects/Work/Projects/Mobile App/LCBCChurch" setenv IPHONEOS_DEPLOYMENT_TARGET 5.1 setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7s -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS6.0.sdk -L/Users/natehamilton/Library/Developer/Xcode/DerivedData/LCBCChurch-hacgcivdmhbavlecueatfvjbekxn/Build/Products/Debug-iphoneos -F/Users/natehamilton/Library/Developer/Xcode/DerivedData/LCBCChurch-hacgcivdmhbavlecueatfvjbekxn/Build/Products/Debug-iphoneos -F/Users/Shared/Cordova/Frameworks -filelist /Users/natehamilton/Library/Developer/Xcode/DerivedData/LCBCChurch-hacgcivdmhbavlecueatfvjbekxn/Build/Intermediates/LCBCChurch.build/Debug-iphoneos/LCBCChurch.build/Objects-normal/armv7s/LCBCChurch.LinkFileList -dead_strip -weak_framework UIKit -weak_framework AVFoundation -weak_framework CoreMedia -weak_library /usr/lib/libSystem.B.dylib -fobjc-link-runtime -miphoneos-version-min=5.1 -framework Foundation -framework UIKit -framework CoreGraphics -framework AddressBook -framework AddressBookUI -framework AudioToolbox -framework AVFoundation -framework CoreLocation -framework MediaPlayer -framework QuartzCore -framework SystemConfiguration -framework MobileCoreServices -framework CoreMedia -framework Cordova -o /Users/natehamilton/Library/Developer/Xcode/DerivedData/LCBCChurch-hacgcivdmhbavlecueatfvjbekxn/Build/Intermediates/LCBCChurch.build/Debug-iphoneos/LCBCChurch.build/Objects-normal/armv7s/LCBCChurch ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/Shared/Cordova/Frameworks/Cordova.framework/Cordova for architecture armv7s clang: error: linker command failed with exit code 1 (use -v to see invocation) 

改变“build立活动build筑只”是的,它会工作:)欢呼!

armv7s体系结构是iPhone 5中使用的新处理器types。看起来您的Cordova框架尚未更新以支持新处理器,因此当clang将Cordova链接到您的iPhone 5二进制文件的应用程序时,这样做是成功的。 你需要得到cordova的更新。

通过我的项目和引用的CordovaLib项目的“构build设置”的“有效架构”字段下添加对各种架构的引用,我得到了它的工作。 附上截图。 (我正在使用Xcode来完成这个任务,而不是象Jira案例中的人所build议的那样在文本编辑器中编辑pbxproj文件)。

唯一需要注意的是,这种方法需要Cordova 2.0+,因为这是第一个引用Cordova项目和源代码的版本。 您需要使用这些设置来构buildCordova。 如果您使用的是以前的版本,并且不想升级,那么您必须获取源代码,然后自行构build,并对体系结构构build设置进行更改。

更多信息: https : //issues.apache.org/jira/browse/CB-1360

截图

没有解决我的问题,但一些开发者已经成功与此url