build error while add revmob ad in iOS app

后端 未结 8 1662
生来不讨喜
生来不讨喜 2021-02-19 03:02

I want to add RevMob add in my app but there are some errors

Undefined symbols for architecture i386:
\"_OBJC_CLASS_$_SKStoreProductViewController\", reference         


        
相关标签:
8条回答
  • 2021-02-19 03:17

    This also happens with Appirater. I was getting this message:

    Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_SKStoreProductViewController", referenced from: objc-class-ref in Appirater.o "_SKStoreProductParameterITunesItemIdentifier", referenced from: +[Appirater rateApp] in Appirater.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

    ---To Fix---

    1. add StoreKit.framwork in --> BuildPhases
    2. ---Under-> Link Libraries with Libraries
    3. If you have more than one target you might need to add the StoreKit.framwork to both Targets.
    0 讨论(0)
  • 2021-02-19 03:28

    I faced similar issue and after long search and checking sample RevMob code, i found this solution, may be help others:

    Under project target, select Build Settings, under Deployment, check iOS Deployment Target, change the value to 'iOS 9.0' or higher.

    I hope this help.

    0 讨论(0)
  • 2021-02-19 03:29

    You must link against StoreKit.framework

    0 讨论(0)
  • 2021-02-19 03:34

    This error can also happen if you removed a file from your project and subsequently re-created it. Sometimes Xcode doesn't automatically re-include it in the 'compile sources' box (when you click on target). Check the box and see if all of your source files are included, if not then drag them in and rebuild.

    0 讨论(0)
  • 2021-02-19 03:35

    You need to add the StoreKit framework

    EDIT: I see now what you mean, there was an issue with the older versions, I'm adding a link to an edited framework to solve that issue: Edited Revmob Framework

    0 讨论(0)
  • 2021-02-19 03:39

    It looks like the ad sdk you have now does not include support for use with the simulator.

    -[RevMobStoreController openStoreWithITunesItemId:] in RevMobAds(RevMobStoreController.o) ld: symbol(s) not found for architecture i386

    if you get anything that mentions "not found for architecture" means revmob didnt include classes for running on simulator. You have 2 choices. look for a missing library ".a file" or only compile for testing on a device.

    I've ran into an issue with the new ios6 where revmob did not support the new iphone 5 armv7s architecture.

    Double check your revmob installation or try compiling to your phone instead of the simulator

    0 讨论(0)
提交回复
热议问题