Search Unity

PostBuild failing for iOS

Discussion in 'Unity Build Automation' started by Kujo87, Sep 20, 2018.

  1. Kujo87

    Kujo87

    Joined:
    Sep 16, 2013
    Posts:
    168
    Hi,

    I've been having some problems with iOS builds this week. It completes up to the PostBuild stuff and complains saying it can't find Xcode in the UnityEditor.iOS.Xcode namespace and so when the build completes, it often doesn't work as the post code hasn't run.

    Code (csharp):
    1.  
    2. [Unity] Assets/Editor/MotionlabPostProcessBuild.cs(8,23): error CS0234: The type or namespace name `Xcode' does not exist in the namespace `UnityEditor.iOS'. Are you missing an assembly reference?
    3.  
    Has there anything been changed recently that would stop this?
     
  2. Kujo87

    Kujo87

    Joined:
    Sep 16, 2013
    Posts:
    168
    Ok - just to add to the oddness - I have another game that is using the exact same PostBuild scripts, but that passes!

    I'm using Unity 2017.4.11
     
  3. Kujo87

    Kujo87

    Joined:
    Sep 16, 2013
    Posts:
    168
    ok - a little more - I've added in the library as part of my project (From the git repo) and its working now - just not with the built in tools on Cloud. It works on a local build as well.
     
  4. ColinAmuzo

    ColinAmuzo

    Joined:
    Mar 20, 2013
    Posts:
    46
    I have the same issue:
    - unity 2017.4.11.
    - postbuild script from GameAnalytics SDK.
    - 2 projects, one builds fine, one errors like OPs.

    I'm going to try re-installing Unity, and upgrading if necessary.

    Edit: I should mention, I'm not using cloud build.
     
    Last edited: Oct 31, 2018
  5. andrewow

    andrewow

    Joined:
    Dec 2, 2013
    Posts:
    13
    Did anyone solve this?