Search Unity

Build Unity iOS project in jenkins

Discussion in 'Editor & General Support' started by Vedavi, Apr 2, 2018.

  1. Vedavi

    Vedavi

    Joined:
    Feb 27, 2018
    Posts:
    1
    I am trying to build Unity iOS project using jenkins. I am encountering the following build error : Plugins colliding with each other.

    When looked into the log, I could see that many .h plugins have this warning :
    **Plugin 'X.h' is used from several locations:
    Assets/Libraries/libil2cpp/include/vm/X.h would be copied to '<'Pluginpath'>'/X.h**

    This happens for nearly 50 or so files.
    However I do not encounter a similar problem building in unity editor, only while doing it via command line or Jenkins. I have written a build script to run this via cmd or jenkins. (log attached)

    BuildScript.cs
    Code (CSharp):
    1. // C# example
    2. using UnityEditor;
    3. using System;
    4.  
    5. class BuildScript
    6. {
    7.      public static void PerformBuild ()
    8.      {
    9.           string[] scenes = new string[] { "Assets/main.unity" };
    10.  
    11.          BuildPlayerOptions buildPlayerOptions = new BuildPlayerOptions();
    12.         buildPlayerOptions.scenes = scenes ;
    13.         buildPlayerOptions.target = BuildTarget.iOS;
    14.         if (buildPlayerOptions.locationPathName == null)
    15.         {
    16.             buildPlayerOptions.locationPathName = "/Users/vbalaji1/remoteiOS/jenkins";
    17.         }
    18.  
    19.         BuildPipeline.BuildPlayer(buildPlayerOptions);
    20.      }
    21. }
    Is there a way to build iOS unity via jenkins/cmd ? Any blogs or suggestions?
     

    Attached Files:

    • log.txt
      File size:
      31.1 KB
      Views:
      342