Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

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

    Unity Technologies

    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

    Unity Technologies

    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.