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

[5.3.1p1] iOS error messages related to UnityAds

Discussion in 'iOS and tvOS' started by AlienMe, Jan 1, 2016.

  1. AlienMe

    AlienMe

    Joined:
    Sep 16, 2014
    Posts:
    93
    After upgrading to 5.3.1, we are getting these errors on XCode's console output:

    Code (csharp):
    1.  
    2. Unable to find type [UnityEngine.dll]UnityEngine.iOS.ADBannerView
    3. (Filename: /Users/builduser/buildslave/unity/build/Runtime/Scripting/CommonScriptingClasses.cpp Line: 42)
    4.  
    5. Unable to find method FireBannerFailedToLoad in [UnityEngine.dll]UnityEngine.iOS.ADBannerView
    6. (Filename: /Users/builduser/buildslave/unity/build/Runtime/Scripting/CommonScriptingClasses.cpp Line: 28)
    7.  
    8. Unable to find method FireBannerWasClicked in [UnityEngine.dll]UnityEngine.iOS.ADBannerView
    9. (Filename: /Users/builduser/buildslave/unity/build/Runtime/Scripting/CommonScriptingClasses.cpp Line: 28)
    10.  
    11. Unable to find method FireBannerWasLoaded in [UnityEngine.dll]UnityEngine.iOS.ADBannerView
    12. (Filename: /Users/builduser/buildslave/unity/build/Runtime/Scripting/CommonScriptingClasses.cpp Line: 28)
    13.  
    14. Unable to find type [UnityEngine.dll]UnityEngine.iOS.ADInterstitialAd
    15. (Filename: /Users/builduser/buildslave/unity/build/Runtime/Scripting/CommonScriptingClasses.cpp Line: 42)
    16.  
    17. Unable to find method FireInterstitialWasLoaded in [UnityEngine.dll]UnityEngine.iOS.ADInterstitialAd
    18. (Filename: /Users/builduser/buildslave/unity/build/Runtime/Scripting/CommonScriptingClasses.cpp Line: 28)
    19.  
    20. Unable to find method FireInterstitialWasViewed in [UnityEngine.dll]UnityEngine.iOS.ADInterstitialAd
    21. (Filename: /Users/builduser/buildslave/unity/build/Runtime/Scripting/CommonScriptingClasses.cpp Line: 28)
    22.  
    23. Unable to find type [UnityEngine.dll]UnityEngine.iOS.LocalNotification
    24. (Filename: /Users/builduser/buildslave/unity/build/Runtime/Scripting/CommonScriptingClasses.cpp Line: 42)
    25.  
    26. Unable to find type [UnityEngine.dll]UnityEngine.iOS.RemoteNotification
    27. (Filename: /Users/builduser/buildslave/unity/build/Runtime/Scripting/CommonScriptingClasses.cpp Line: 4
    28.  

    We installed OSX, Windows, and iOS Support files when using the new installer.

    Any ideas what could be causing this?
     
  2. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,775
    @AlienMe

    It looks like something in the engine code is missing. If you haven't done so already, can you try to disable the "Strip Engine Code" option in the "Player Settings"? That might allow you to work around this issue.
     
  3. AlienMe

    AlienMe

    Joined:
    Sep 16, 2014
    Posts:
    93
    HI Josh,

    I'll give it a try tomorrow. Notice that we are not using Unity Ads.. and so far it doesn't seem to be affecting our game on device..

    We are using remote notifications.. but this seems to be working fine.. we'll test it some more.

    Thanks!
     
  4. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815
    We have the same error. What do you mean with "Strip Engine Code"? Are you referring to Stripping Level? If that is disabled, it won't build for IOs at all.
     
  5. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,775
    @Fluzing

    Which version of Unity are you using? The "Strip Engine Code" appeared as a replacement for the "Stripping Level" at one of the 5.x releases (I think it was 5.1).
     
  6. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815
    I am using 5.3.1f1. It seems that UnityAds is the cause of our problem. If we disable it, Xcode seems to be able to build.
     
  7. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,775
    @Fluzing

    Do you have an option in 5.3.1 named "Stripping Level" in the iOS Player Settings? It should no longer be there.
     
  8. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815
    It changes to "Strip Engine Code" when we change the Scripting Backend to ILC2PP.
     
  9. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,775
    @Fluzing

    Ok, that makes sense. The "Strip Engine Code" option is only valid for the IL2CPP scripting backend.

    So, do you see this same problem with Unity Ads using "Strip Engine Code" enabled and disabled? Or does it only occur with one of those values?
     
  10. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815
    It seems to work now when we build with IL2CPP and UnityAds enabled. Downside is that this greatly increases our build time.
     
  11. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,775
    @Fluzing

    So the build works with "Strip Engine Code" either enabled or disabled? The build time is increased more than which build time? Does a change to the "Strip Engine Code" option significantly change the build time?
     
  12. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815
    With both enabled and disabled it works now if we use IL2CPP. The build time is longer than when we use Mono2x. I do not think there is a difference in build time when disabling or enabling the stripping in IL2CPP.
     
  13. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,775
    @Fluzing

    Thanks for clarifying. Unfortunately, build times with IL2CPP are slower than Mono now, although we're working to improve that.
     
    Fluzing likes this.
  14. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815
    It seems I now have the exact same problem when building for Android. Unity Ads kills the app after a few seconds.
    Disabling UnityAds fixes the issue, but no ads :-(

    From Google Play error report:
     
  15. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,775
    @Fluzing

    This should be working. Can you submit a bug report for this issue?
     
  16. Fluzing

    Fluzing

    Joined:
    Apr 5, 2013
    Posts:
    815
    Report sent with an empty project with Adwords and Stripping enabled.
     
  17. JoshPeterson

    JoshPeterson

    Unity Technologies

    Joined:
    Jul 21, 2014
    Posts:
    6,775
    @Fluzing

    Thanks for submitting the bug report.