- Home /
Question by
Vedavi · Apr 02, 2018 at 09:10 AM ·
unity 5unity 2dunityeditorbuild-errorplugins
Build Unity iOS project in jenkins
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. Attached here is the Log.txt.
BuildScript.cs
using UnityEditor;
using UnityEngine;
using System;
public class BuildScript {
public static void PerformBuild ()
{
string[] scenes = new string[] { "Assets/main.unity" };
BuildPlayerOptions buildPlayerOptions = new BuildPlayerOptions();
buildPlayerOptions.scenes = scenes ;
buildPlayerOptions.target = BuildTarget.iOS;
if (buildPlayerOptions.locationPathName== null)
{
buildPlayerOptions.locationPathName ="/Users/vb/remoteiOS/jenkins";
}
Debug.Log("Build Path=" + buildPlayerOptions.locationPathName);
BuildPipeline.BuildPlayer(buildPlayerOptions);
}
}
Is there a way to build iOS unity via jenkins/cmd ? Any blogs or suggestions?
log.txt
(71.5 kB)
Comment