Search Unity

UnityAds iOS: why is the In-App purchase capability enabled?

Discussion in 'Unity Ads & User Acquisition' started by Rostam24, Jan 29, 2016.

  1. Rostam24

    Rostam24

    Joined:
    Mar 5, 2014
    Posts:
    119
    Just wondering why the In-App purchase capability is enabled since I've added UnityAds to my iOS game. When I disable this capability, the build fails and I get the following errors:
    "_OBJC_CLASS_$_SKStoreProductViewController", referenced from:

    "_OBJC_METACLASS_$_SKStoreProductViewController", referenced from:

    clang: error: linker command failed with exit code 1 (use -v to see invocation)
     
  2. rasmus-unity

    rasmus-unity

    Moderator

    Joined:
    Aug 15, 2014
    Posts:
    1,312
    Which version of Unity? Tested here with Unity 5.3.1f1 and cannot reproduce the issue, i.e. I can enable Ads without IAP being enabled as well.

    -Rasmus
     
  3. Rostam24

    Rostam24

    Joined:
    Mar 5, 2014
    Posts:
    119
    I used Unity 5.3.1p4 and xCode 7.2
     
  4. rasmus-unity

    rasmus-unity

    Moderator

    Joined:
    Aug 15, 2014
    Posts:
    1,312
  5. Rostam24

    Rostam24

    Joined:
    Mar 5, 2014
    Posts:
    119
    Yes that seems to be the same issue! I'm sorry for the double post, guess I missed it in my search somehow - thank you for showing me that thread :)
    Let me try adding the storekit framework as suggested in that thread and see what happens.