2014-01-30 143 views
1

我在Unity項目中集成了Applovin。然後我將我的項目導出到iOS並嘗試構建它。我結束了以下錯誤。Applovin - 架構armv7的未定義符號

Ld /Users/macintoshuser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ejrmcaclygycsecppqwiuptnzhsa/Build/Products/test.app/test normal armv7 
    cd /Users/macintoshuser/Documents/Freelance/WorldWarII_iOS 
    setenv IPHONEOS_DEPLOYMENT_TARGET 4.3 
    setenv PATH "/Applications/Xcode 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode 2.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin" 
    /Applications/Xcode\ 2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch armv7 -isysroot /Applications/Xcode\ 2.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS7.0.sdk -L/Users/macintoshuser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ejrmcaclygycsecppqwiuptnzhsa/Build/Products -L/Users/macintoshuser/Documents/WWII -L/Users/macintoshuser/Documents/WWII/Libraries -F/Users/macintoshuser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ejrmcaclygycsecppqwiuptnzhsa/Build/Products -filelist /Users/macintoshuser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ejrmcaclygycsecppqwiuptnzhsa/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/test.LinkFileList -dead_strip -weak_framework CoreMotion -weak-lSystem -stdlib=libstdc++ -fobjc-link-runtime -miphoneos-version-min=4.3 -framework UIKit -framework SystemConfiguration -framework StoreKit -framework MediaPlayer -framework CoreGraphics -framework CoreTelephony -framework AdSupport -framework Foundation -framework OpenGLES -framework QuartzCore -framework OpenAL -liconv.2 -lAppLovinSdk -lChartboost -liPhone-lib -framework AudioToolbox -framework CFNetwork -framework CoreLocation -weak_framework iAd -framework CoreMedia -framework CoreVideo -weak_framework AVFoundation -weak_framework CoreMotion -weak_framework GameKit -Xlinker -dependency_info -Xlinker /Users/macintoshuser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ejrmcaclygycsecppqwiuptnzhsa/Build/Intermediates/Unity-iPhone.build/Debug-iphoneos/Unity-iPhone.build/Objects-normal/armv7/test_dependency_info.dat -o /Users/macintoshuser/Library/Developer/Xcode/DerivedData/Unity-iPhone-ejrmcaclygycsecppqwiuptnzhsa/Build/Products/test.app/test 

Undefined symbols for architecture armv7: 
    "__AppLovinSetMaritalStatus", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinSetLanguage", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinSetKeywords", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinSetInterests", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinSetIncome", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinSetVerboseLoggingOn", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinSetGender", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinHasPreloadedInterstitial", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinSetCountry", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinSetAdWidth", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinSetEducation", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinSetCarrier", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinPutExtra", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinPreloadInterstitial", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinInitializeSdk", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinSetBirthYear", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinShowAd", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinSetSdkKey", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinIsInterstitialShowing", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinSetEthnicity", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinSetAdPosition", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinShowInterstitial", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
    "__AppLovinHideAd", referenced from: 
     RegisterMonoModules() in RegisterMonoModules.o 
ld: symbol(s) not found for architecture armv7 
clang: error: linker command failed with exit code 1 (use -v to see invocation) 

我一直在嘗試不同的解決方案來修復我的代碼,但沒有一個似乎有幫助。任何建議將不勝感激。

+1

只要確保您已閱讀此:http://stackoverflow.com/questions/6429494/undefined-symbols-for-architecture-armv7?rq=1 – jparimaa

+0

我已閱讀並嘗試過。它不適合我。 – muneikh

回答

1

我只是改變了現有的體系結構爲armv6,它的工作。 Applovin Unity Plugin具有舊庫,僅支持armv6體系結構。

0

有時候會發生這種情況,當你需要從ios添加插件或擴展到需要框架的插件或擴展時,檢查它是否存在,並且一旦將項目部署到xcode,請在編譯之前添加框架。

+0

是的,我已經添加了我的插件所需的框架。 – muneikh

0

您可以將體系結構更改爲arm6,或者您必須檢查unity是否支持項目構建設置中的arm7。

0

當我從Finder拖放文件到Xcode中時,遇到了這個問題。相反,當我做兩個手指點擊和「添加文件到'Project_Name'」,它的工作。

相關問題