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

How to fix "No known class method for selector sharedInstance"?

Discussion in 'Unity Ads & User Acquisition' started by sheng319, Dec 14, 2017.

  1. sheng319

    sheng319

    Joined:
    Jun 23, 2014
    Posts:
    34
    Unity: 5.3.6p7
    UnityAds: 2.1.2 (from Asset Store)

    When build to ios project, then archive by xcode, it always show error below:
    How to fix it? Thanks.
     
  2. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,312
  3. sheng319

    sheng319

    Joined:
    Jun 23, 2014
    Posts:
    34
    I found the answer.



    Why not automatically set it disable when install UnityAds package from Asset Store? Or you should provide a setting window. So I didn't need to waste three days to find the answer. Really ridiculous.
     
  4. rasmus-unity

    rasmus-unity

    Unity Technologies

    Joined:
    Aug 15, 2014
    Posts:
    1,312
    Thanks for providing info. This issue with not disabling m_Enabled field should have been fixed in recent Unity versions.

    /Rasmus
     
  5. sheng319

    sheng319

    Joined:
    Jun 23, 2014
    Posts:
    34
    I think you should implement fixes in the unityads package on asset store, so that the older version of unity won't cause same issue.