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

UnityAds from asset store, destroying xcode proj, (fails to load)

Discussion in 'Unity Ads & User Acquisition' started by scritchy, Apr 21, 2015.

  1. scritchy

    scritchy

    Joined:
    Dec 30, 2010
    Posts:
    94
    Don't even know where to start w/out getting down and dirty and trying to figure out what's wrong in the xcode proj file in text editor, which is harrowing at best.

    Imported unityads from asset store, into game project that has been healthily building to xcode for months.
    After integrating unityads, build process produces a xcode proj, but when I try to open it I get a popup window that says
    "Failed to load project at [path redacted]/Unity-iPhone.xcodeproj" for an unknown reason."

    I see that there is a "UnityAds" folder in my output build folder so I know that it ran. My guess is that the postprocess script is conflicting with some other plugin's postprocess. Some of it is P31, which i doubt Unity would have clashed with and not heard about by now, Facebook, and some other more proprietary ones and ad networks.

    Any clues? Any suggestions on what to try to even figure out what's going wrong??
     
  2. andymads

    andymads

    Joined:
    Jun 16, 2011
    Posts:
    1,614
    Make sure you have the latest Prime31 tools (released Friday) as this may fix the issue. Another thing to try is find the postprocessor script in the UnityAds build system code and make the priority number negative to force it to be done first. And, build to a fresh folder.
     
  3. unity-nikkolai

    unity-nikkolai

    Unity Technologies

    Joined:
    Sep 18, 2014
    Posts:
    540
    Latest versions of everything is a good call. Make sure you're also running the latest patch release of Unity.

    When you build to iOS from Unity, try selecting the option to Replace instead of Append when generating the Xcode project, or save your Xcode project to a new directory instead.
     
  4. CoalCzar

    CoalCzar

    Joined:
    Nov 25, 2012
    Posts:
    22
    I'm having the same issue and have tried the fixes from this thread to no avail (both the [PostProcessBuild(-1)] and the Prime31 GUID lookup fix). Using Unity 4.6.4p4, latest Everyplay, latest Prime31. Builds fine without the latest Everyplay (much older version works fine).
     
    Last edited: Apr 30, 2015
  5. unity-nikkolai

    unity-nikkolai

    Unity Technologies

    Joined:
    Sep 18, 2014
    Posts:
    540
    Which prime31 plugins are you using?
     
  6. CoalCzar

    CoalCzar

    Joined:
    Nov 25, 2012
    Posts:
    22
    I'm using an updated version of the IAP Combo (i.e. StoreKit for iOS) and older versions of: Social Networking Combo, Etcetera, & Etcetera 2
     
  7. CoalCzar

    CoalCzar

    Joined:
    Nov 25, 2012
    Posts:
    22
    Updated Social Networking & Etcetera & no changes. (shouldn't matter with the build process, but just ruling out strange possibilities)
     
  8. unity-nikkolai

    unity-nikkolai

    Unity Technologies

    Joined:
    Sep 18, 2014
    Posts:
    540
    Are you using Xcode 6.3.1? Also when you build your Unity project, do you Append or Replace you Xcode project? Which version of Unity are you running? I'd recommend running the latest patch release if not already.

    There have been issues reported lately relating to prime31. Will try to reproduce the issue.
     
  9. CoalCzar

    CoalCzar

    Joined:
    Nov 25, 2012
    Posts:
    22
    • Unity 4.6.4p4
    • XCode 6.3.1
    • Creating a new XCode project each time
     
  10. Mgaia-Studio

    Mgaia-Studio

    Joined:
    Jul 22, 2014
    Posts:
    11
    Has anyone had any success solving this issue? I've just run into this, too. Tried everything you suggested, but nothing worked. Even completely removing the Prime31 plugin I'm using didn't solve it, only removing the Unity Ads plugins works.