iPhone模拟器在iPad上生成错误,在iPhone模拟器和iPhone设备上运行良好

iPhone模拟器在iPad上生成错误,在iPhone模拟器和iPhone设备上运行良好,iphone,Iphone,我很难弄明白这个问题。我的应用程序启用了iAds,可以在iPhone(设备)和iPhone(模拟器)4.1上运行。我知道3.2版(iPad)不支持广告。所以,我做了一个到iad库的弱链接。在buildoptions=>linking=>otherlinktags中,我编写了iAd。在此之后,我得到一个生成错误: Ld build/Debug-iphonesimulator/One2ThreePop.app/One2ThreePop normal i386 cd /Users/azamsharp/

我很难弄明白这个问题。我的应用程序启用了iAds,可以在iPhone(设备)和iPhone(模拟器)4.1上运行。我知道3.2版(iPad)不支持广告。所以,我做了一个到iad库的弱链接。在buildoptions=>linking=>otherlinktags中,我编写了iAd。在此之后,我得到一个生成错误:

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

在调用iAd库之前,是否在运行时检查它们是否存在,包括加载带有iAd标题的NIB?你需要绕过iPad上的iAd功能。

我必须这样做吗?我认为弱链接可以解决这个问题。