【问题标题】:iPhone Simulator build error on iPad and works fine on iPhone Simulator and iPhone DeviceiPhone 模拟器在 iPad 上构建错误,在 iPhone 模拟器和 iPhone 设备上运行良好
【发布时间】:2011-05-08 17:04:58
【问题描述】:

我很难弄清楚这个问题。我的应用启用了 iAds,它可以在 iPhone(设备)和 iPhone(模拟器)4.1 上运行。我知道版本 3.2 (iPad) 不支持广告。所以,我做了一个到iad库的弱链接。在构建选项 => 链接 => 其他链接标签中,我编写了 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

【问题讨论】:

    标签: iphone


    【解决方案1】:

    在调用 iAd 库之前,您是否在运行时检查它们是否存在,包括加载带有 iAd 横幅的 NIB?你需要绕过 iPad 上的 iAd 东西。

    【讨论】:

    • 我必须这样做吗?我认为弱链接会解决这个问题。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-08-29
    • 2021-12-22
    • 2010-09-27
    • 2011-09-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多