Search Unity

  1. Unity 2020.1 has been released.
    Dismiss Notice
  2. We are looking for feedback on the experimental Unity Safe Mode which is aiming to help you resolve compilation errors faster during project startup.
    Dismiss Notice
  3. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Advertisements.dll not loading due to UnityEditor.iOS.Extensions.Xcode being incompatible?

Discussion in 'Editor & General Support' started by ao02, Sep 11, 2019.

  1. ao02


    Nov 11, 2018
    Assembly 'Packages/' will not be loaded due to errors:
    Unable to resolve reference 'UnityEditor.iOS.Extensions.Xcode'. Is the assembly missing or incompatible with the current platform?
    Reference validation can be disabled in the Plugin Inspector.

    NullReferenceException: Object reference not set to an instance of an object
    UnityEngine.Advertisements.Advertisement.Initialize (System.String gameId, System.Boolean testMode) (at /home/builduser/buildslave/
    AdsManager.Awake () (at Assets/Scripts/AdsManager.cs:52)
    (This line of code is just Advertisement.Initialize(gameID, testMode);)

    I can assure that no script directly uses that namespace, unless it's under the hood of it. I have ads enabled, and am on the android build platform.
    I've had this happen twice to me so far, the first time i fixed it by doing random things, e.g changing the scripts that handle the advertisements, restarting unity, etc.
    I haven't done anything unusual to make it pop up, as i've just closed unity while the ads were working perfectly, and after reopening it, it showed the error.
    My only assumption is that google play might be blocking my pc as i had override test mode on in the dashboard, but the ads incorporated are the ones built into unity?
    Currently running on version 2019.2.3f1

    I've tried checking other threads before posting, but there seems to be very limited info on this issue, unless i've not searched deep enough.
    This is for an update on a game that's already uploaded to google play, i don't think this issue happened before i uploaded it, although i did downgrade from the 2019.3 alpha.
    Apparently on a test build (before this issue popped up) the ads seem to work,
    The google play build (not this one) seems to have the ads working as well, so the error is either local or there's an error in the code, though i doubt that. I can provide the code if needed.
    Last edited: Sep 11, 2019
  2. markobozic346


    Apr 21, 2019
    same problem, any solution ?
    ao02 likes this.
  3. fredthe3rd


    Feb 6, 2018
    Same issue

    Did you ever solve it ao02 or Mark?
  4. davethomsonhutch


    May 14, 2019
    Did anyone solve this?