Quantcast
Channel: Questions in topic: "buildpipeline"
Viewing all articles
Browse latest Browse all 249

Errors While Building Project from CLI - target macOS

$
0
0
**Unity Version**: 2019.2.17f1 (Personal) **OS**: macOS Mojave (10.14.6) **Hardware**: MacBook Pro Retina 15-inch. 2.8 GHz Intel Core i& **Problem** I'm building a CI for my game. The objective is to have CLI command that runs all my unit tests, and if those pass, then it outputs a build of my game and uploads it somewhere in the cloud. Since I'm using Unity Personal, I'm not using any innate CI solutions that come with Unity. I followed the steps in [this video](https://www.youtube.com/watch?v=2v9BLSG02Go) to setup a build pipeline. But when I run my command, I get this error: ![alt text][1] Let's say I clean up those packages from my `manifest.json`. Once I do that and run my command from the CLI, for some reason Unity decide to downgrade my version to `2018.3.12f1`, and then the build pipeline fails at another step. My bash script looks like this: ![alt text][2] The following is the code in the script: using UnityEditor; using UnityEditor.Build.Reporting; // Output the build size or a failure depending on BuildPlayer. public class Build { public static void BuildMacOS() { string[] defaultScene = { "Assets/Scenes/TilemapSandbox" }; BuildPlayerOptions buildPlayerOptions = new BuildPlayerOptions(); buildPlayerOptions.scenes = defaultScene; buildPlayerOptions.locationPathName = "../bin/builds/macOS/64bit"; buildPlayerOptions.target = BuildTarget.StandaloneOSXIntel64; buildPlayerOptions.options = BuildOptions.None; BuildReport report = BuildPipeline.BuildPlayer(buildPlayerOptions); BuildSummary summary = report.summary; if (summary.result == BuildResult.Succeeded) { Debug.Log("Build succeeded: " + summary.totalSize + " bytes"); } if (summary.result == BuildResult.Failed) { Debug.Log("Build failed"); } } } Thank you so much for your help. Let me know if you want / need more context. I really want to have a build pipeline setup for my game, but this is making it impossible. [1]: /storage/temp/152173-screen-shot-2020-02-02-at-75117-am.png [2]: /storage/temp/152174-screen-shot-2020-02-02-at-75439-am.png

Viewing all articles
Browse latest Browse all 249

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>