spritebuilder游戏+ apportable load致命错误:RevMobAds / RevMobAds.h未找到

时间:2014-03-25 04:11:04

标签: load apportable revmob

执行" apportable load"时,我收到以下错误使用SpriteBuilder进行游戏的命令:

检查下面的错误日志:

...   

    Compiling /Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/IAPHelper.m
    In file included from <built-in>:169:
    In file included from <command line>:20:
    /Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/Source/Prefix.pch:20:9: fatal error: 'RevMobAds/RevMobAds.h' file not found
    #import <RevMobAds/RevMobAds.h>
            ^
    Compiling /Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/KurrentapIAPHelper.m
    In file included from <built-in>:169:
    In file included from <command line>:20:
    /Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/Source/Prefix.pch:20:9: fatal error: 'RevMobAds/RevMobAds.h' file not found
    #import <RevMobAds/RevMobAds.h>
            ^
    1 error generated.
    Compiling /Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/MyiAd.m
    In file included from <built-in>:169:
    In file included from <command line>:20:
    /Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/Source/Prefix.pch:20:9: fatal error: 'RevMobAds/RevMobAds.h' file not found
    #import <RevMobAds/RevMobAds.h>
            ^
    1 error generated.
    1 error generated.
    In file included from <built-in>:169:
    In file included from <command line>:20:
    /Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/Source/Prefix.pch:20:9: fatal error: 'RevMobAds/RevMobAds.h' file not found
    #import <RevMobAds/RevMobAds.h>
            ^
    1 error generated.
    Compiling /Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/Source/AppDelegate.m
    In file included from <built-in>:169:
    In file included from <command line>:20:
    /Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/Source/Prefix.pch:20:9: fatal error: 'RevMobAds/RevMobAds.h' file not found
    #import <RevMobAds/RevMobAds.h>
            ^
    scons: *** [Build/android-armeabi-debug/com.kurrentap.HappyBird/Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/GADHelper.m.o] Error 1
    scons: *** [Build/android-armeabi-debug/com.kurrentap.HappyBird/Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/IAPHelper.m.o] Error 1
    scons: *** [Build/android-armeabi-debug/com.kurrentap.HappyBird/Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/ABGameKitHelper/ABGameKitHelper.m.o] Error 1
    scons: *** [Build/android-armeabi-debug/com.kurrentap.HappyBird/Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/KurrentapIAPHelper.m.o] Error 1
    1 error generated.
    scons: *** [Build/android-armeabi-debug/com.kurrentap.HappyBird/Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/MyiAd.m.o] Error 1
    In file included from <built-in>:169:
    In file included from <command line>:20:
    /Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/Source/Prefix.pch:20:9: fatal error: 'RevMobAds/RevMobAds.h' file not found
    #import <RevMobAds/RevMobAds.h>
            ^
    1 error generated.
    scons: *** [Build/android-armeabi-debug/com.kurrentap.HappyBird/Users/icarlitux/Documents/KURRENTAP/GIT/GAMES/HappyBird/HappyBird.spritebuilder/Source/AppDelegate.m.o] Error 1
    scons: building terminated because of errors.

有什么想法?我遇到了这个错误,无法为Android生成APK。

谢谢, 卡洛斯

1 个答案:

答案 0 :(得分:0)

要检查的一些事项:

  • 确保您拥有Apportable Indie SDK。 “入门版”
  • 中未提供广告网络
  • 确保RevMobAds在您的安装中

    ~  $ ls -dl ~/.apportable/SDK/System/RevMobAds/
    drwx------  12 paulb  staff  408 Mar 18 17:11 /Users/paulb/.apportable/SDK/System/RevMobAds/
    
  • 确保RevMobAds位于Release.final

    ~/apps/Spin (master) $ grep -r RevMobAd Spin.approj/targets
    Spin.approj/targets/Spin/Release.final:        "RevMobAds"
    
  • 如果没有将它添加到configuration.json中的add_params的deps部分

    ~/apps/Spin (master) $ grep -r RevMobAds Spin.approj/configuration.json
    Spin.approj/configuration.json:        "RevMobAds"
    

注意:上面的示例适用于Spin sample app。将〜/ apps / Spin替换为应用程序的.xcodeproj所在的目录。