build error while add revmob ad in iOS app

后端 未结 8 1929
生来不讨喜
生来不讨喜 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.

提交回复
热议问题