2015-01-26 200 views
-1

我添加arm64到我的應用程序:iPhone應用程序,支持64位

Architecture 
Valid Architecture 

當我構建應用程序我得到這個錯誤日誌:

Undefined symbols for architecture arm64: 
    "_OBJC_CLASS_$_FBRequest", referenced from: 
     objc-class-ref in DEFacebookComposeViewController.o 
    "_kGADAdSizeBanner", referenced from: 
     ... 
    "_OBJC_CLASS_$_FBRequestConnection", referenced from: 
     ... 
    "_OBJC_CLASS_$_ASIdentifierManager", referenced from: 
     objc-class-ref in libInMobi-4.5.1.a(IMCommonUtil+Private.o) 
     objc-class-ref in VungleSDK(VungleSDK.o) 
     objc-class-ref in MobFox(MobFox) 
     objc-class-ref in iSoma(SOMAAdRequestBuilder.o) 
     objc-class-ref in libAppLovinSdk.a(ALDataCollector.o) 
     objc-class-ref in libAppLovinSdk.a(ALTaskFetchNextAd.o) 
     objc-class-ref in libFlurryAds_6.0.0.a(libFlurryAds.a-arm64-master.o) 
     ... 
    "_CGSizeFromGADAdSize", referenced from: 
     ... 
    "_kGADAdSizeLeaderboard", referenced from: 
     ... 
    "_OBJC_CLASS_$_FBSession", referenced from: 
     ... 
ld: symbol(s) not found for architecture arm64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

任何想法可能是什麼問題?

編輯:


我更新googleadmob lib和facebookSdk但其他框架已經支持64位和我收到此錯誤信息:

d: warning: ignoring file /Users/App/AdSupport.framework/AdSupport, missing required architecture arm64 in file /Users/App/AdSupport.framework/AdSupport (2 slices) 
Undefined symbols for architecture arm64: 
    "_OBJC_CLASS_$_ASIdentifierManager", referenced from: 
     objc-class-ref in libInMobi-4.5.1.a(IMCommonUtil+Private.o) 
     objc-class-ref in VungleSDK(VungleSDK.o) 
     objc-class-ref in libGoogleAdMobAds.a(GADDevice.o) 
     objc-class-ref in libGoogleAdMobAds.a(GADGestureIdUtil.o) 
     objc-class-ref in MobFox(MobFox) 
     objc-class-ref in iSoma(SOMAAdRequestBuilder.o) 
     objc-class-ref in libAppLovinSdk.a(ALDataCollector.o) 
     ... 
ld: symbol(s) not found for architecture arm64 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 
+0

您要導入的第三方庫和框架沒有arm64支持。升級它們。 – 2015-01-26 21:07:26

+0

@IanMacDonald你可以看看我的編輯 – MTA 2015-01-26 22:18:04

+0

只需閱讀黯淡的錯誤消息。 AdSupport是問題所在。 - 也看到這個答案:http://stackoverflow.com/a/12628989/341994 – matt 2015-01-26 22:52:32

回答

3

的錯誤消息是很清楚。這些符號沒有爲該體系結構定義。您將需要每個這樣的庫的新構建 - 一個具有64位切片的構建。

+0

你能看看我的編輯 – MTA 2015-01-26 22:18:41

+0

確保它現在使用正確的庫,你有32和64在項目中? – nycynik 2015-01-26 22:20:29

0

您是否試過按住選項鍵並執行Product - > Clean Build Folder?這會消除在生成時不知道你的arm64編譯目標的任何預編譯頭文件。嘗試一下,然後再次構建。

相關問題