Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

Unity Monetization 3.0 xcode build failed

Discussion in 'Unity Ads' started by marek1990, Dec 5, 2018.

  1. marek1990

    marek1990

    Joined:
    Dec 9, 2015
    Posts:
    5
    Hello,

    I want to give a try to IAP Promotions so I decided to update ADS and IAP plugins. On Android everything works as expected but I have some issues on iOS.

    When building in Xcode I have an error:

    "Lexical or Preprocessor Issue"
    'UnityAds/UnityMonetization.h' file not found
    UnityMonetizationUnityWrapper.mm

    In Plugins/iOS UnityAds.framework is present, also in Xcode under Unity-iPhone/Frameworks/Plugins/iOS/UnityAds.framework is present.

    My Xcode version is 10.1. I have downloaded Unity Monetization 3.0 from AssetStore and import IAP plugin from Services -> In-App Purchasing. All plugins are in latest versions downloaded today.

    For now I've tried:
    1. Build using Unity 5.6.4p4 and 2018.2.9f1
    2. pod deintegrate, clean, update install and run project from *.xcodeproj and *.xcworkspace.
    3. Run everything on other mac.

    Other plugins in project:
    - Google Mobile Ads
    - Firebase auth and app
     
  2. mikaisomaa

    mikaisomaa

    Unity Technologies

    Joined:
    Sep 14, 2015
    Posts:
    365
  3. marek1990

    marek1990

    Joined:
    Dec 9, 2015
    Posts:
    5
    I will try it in free time. Thank you. For now I decided to use latest UnityAds and UnityIap plugin without Unity Monetization 3.0. Promo iap works and I'am fine with that :)
     
  4. jtbentley

    jtbentley

    Joined:
    Jun 30, 2009
    Posts:
    1,395
    After bringing a project up from Unity 3 all the way to 2018, ran into this same issue (likely the result of an ancient build post process), this solution did solve it :)