尝试在我的设备上运行我的应用时,我从Xcode收到此错误。
Ld "/Users/admin/Library/Developer/Xcode/DerivedData/Store_Locator_In_App-hbygxaouhvxmvwdudbwamekfbima/Build/Intermediates/Store Locator In App.build/Debug-iphoneos/Store Locator In App.build/Objects-normal/armv7s/Store Locator In App" normal armv7s
cd "/Users/admin/Desktop/peboom 5"
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/admin/Library/Developer/Xcode/DerivedData/Store_Locator_In_App-hbygxaouhvxmvwdudbwamekfbima/Build/Products/Debug-iphoneos "-L/Users/admin/Desktop/peboom 5" -F/Users/admin/Library/Developer/Xcode/DerivedData/Store_Locator_In_App-hbygxaouhvxmvwdudbwamekfbima/Build/Products/Debug-iphoneos -filelist "/Users/admin/Library/Developer/Xcode/DerivedData/Store_Locator_In_App-hbygxaouhvxmvwdudbwamekfbima/Build/Intermediates/Store Locator In App.build/Debug-iphoneos/Store Locator In App.build/Objects-normal/armv7s/Store Locator In App.LinkFileList" -dead_strip -fobjc-arc -fobjc-link-runtime -miphoneos-version-min=5.1 -lsqlite3.0 -framework MediaPlayer -framework AudioToolbox -framework AVFoundation -framework SystemConfiguration -framework CFNetwork -framework MobileCoreServices -framework MessageUI -framework CoreLocation -framework QuartzCore -framework MapKit -framework UIKit -framework Foundation -framework CoreGraphics -lGoogleAnalytics_NoThumb -lGoogleAnalytics -o "/Users/admin/Library/Developer/Xcode/DerivedData/Store_Locator_In_App-hbygxaouhvxmvwdudbwamekfbima/Build/Intermediates/Store Locator In App.build/Debug-iphoneos/Store Locator In App.build/Objects-normal/armv7s/Store Locator In App"
ld: file is universal (3 slices) but does not contain a(n) armv7s slice: /Users/admin/Desktop/peboom 5/libGoogleAnalytics_NoThumb.a for architecture armv7s
clang: error: linker command failed with exit code 1 (use -v to see invocation)
答案 0 :(得分:1)
新款iPhone 5处理器采用自定义ARMv7内核,采用名为 armv7s 的新架构。
链接器正在返回该错误,因为您在项目中引用的libGoogleAnalytics_NoThumb库中缺少armv7s片段。
只需将GoogleAnalitics SDK更新到您可以在此处下载的最新版本(1.5.1):https://developers.google.com/analytics/devguides/collection/ios/resources