1
我很難找出這個問題。我的應用程序啓用了iAds,它可以在iPhone(設備)和iPhone(模擬器)4.1上運行。我知道3.2版本(iPad)不支持廣告。所以,我做了一個到iad庫的薄弱環節。在編譯選項=>鏈接=>其他鏈接標籤我寫了iAd。在此之後,我收到了生成錯誤:iPhone模擬器在iPad上構建錯誤,並在iPhone模擬器和iPhone設備上正常工作
Ld build/Debug-iphonesimulator/One2ThreePop.app/One2ThreePop normal i386
cd /Users/azamsharp/Documents/123Pop
setenv MACOSX_DEPLOYMENT_TARGET 10.6
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 -arch i386 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk -L/Users/azamsharp/Documents/123Pop/build/Debug-iphonesimulator -F/Users/azamsharp/Documents/123Pop/build/Debug-iphonesimulator -filelist /Users/azamsharp/Documents/123Pop/build/One2ThreePop.build/Debug-iphonesimulator/One2ThreePop.build/Objects-normal/i386/One2ThreePop.LinkFileList -mmacosx-version-min=10.6 iAd -Xlinker -objc_abi_version -Xlinker 2 -framework CoreGraphics -framework Foundation -framework OpenGLES -framework QuartzCore -framework UIKit -framework AudioToolbox -framework OpenAL -lz -framework AVFoundation "-lcocos2d libraries" -weak_framework iAd -o /Users/azamsharp/Documents/123Pop/build/Debug-iphonesimulator/One2ThreePop.app/One2ThreePop
i686-apple-darwin10-gcc-4.2.1: iAd: No such file or directory
Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1
我必須這樣做嗎?我認爲弱鏈接會照顧到這個問題。 – azamsharp 2010-11-11 20:19:25
我添加了條件,現在它的工作原理!謝啦! – azamsharp 2010-11-11 20:23:53