Search Unity

Bug Unity Ads 4.2.1 not work with XCode Build input file cannot be found: UnityMonetizationUnityWrapper

Discussion in 'Unity Ads & User Acquisition' started by modernator24, Jul 10, 2022.

  1. modernator24

    modernator24

    Joined:
    Apr 7, 2017
    Posts:
    205
    Build with XCode fails with this message:
    Code (CSharp):
    1. Build input file cannot be found: '/Users/.../Libraries/com.unity.ads/Plugins/iOS/UnityMonetizationUnityWrapper.m'
    I was using 3.x before but had to update it to the latest version recently because of Android. After updating to 4.2.1, the build always fails with that message.
     
  2. modernator24

    modernator24

    Joined:
    Apr 7, 2017
    Posts:
    205
    Tested with 4.0.0 but the same.
     
  3. modernator24

    modernator24

    Joined:
    Apr 7, 2017
    Posts:
    205
    Now downgrading to 3.4.9 also fails which I used before. How to fix this stuff.
     
  4. modernator24

    modernator24

    Joined:
    Apr 7, 2017
    Posts:
    205
    Now removing Unity Ads doesn't work at all.
     
  5. modernator24

    modernator24

    Joined:
    Apr 7, 2017
    Posts:
    205
    Turning off Ads in services doesn't make any changes.
     
  6. PanicEnsues

    PanicEnsues

    Joined:
    Jul 17, 2014
    Posts:
    187
    When changing UnityAds versions, I found that I had to delete some LIbrary folders, or the previous version would still be affecting the build. I think PackageCache? Possibly others. Or just nuke the whole Library folder to be absolutely sure.

    Try version 3.7.5; I rolled back to that after failing to get 4.x working. I think it's the last 3.x version.
     
    modernator24 likes this.
  7. modernator24

    modernator24

    Joined:
    Apr 7, 2017
    Posts:
    205
    Yeah, I deleted the Library folder and reimported assets and it seems to work. I Hope Unity fixes this stuff.