Open jpsarda opened 3 years ago
Hi,
Its quite simple you need to use the correct parameters to the Unity:
$unityProjectType = $ProjectType -eq "ios" ? "Build.DoBuildIOS" : "Build.DoBuildAndroidLibrary"
/Applications/Unity-$UnityVersion/Unity.app/Contents/MacOS/Unity -batchmode -nographics -silent-crashes -projectpath $unityProjectFullPath -executeMethod $unityProjectType -username $Username -password $Password -quit
Its a sneak peak from my PS script. But it is not finished yet. There are some variables here but they are quite simple, so you should figure this out.
I find out that the the iOS build is more problematic, because of the changes to the .pbxproj file (export generate completely new iOS project every time, with new ID) and this generates a lot of problems.
I'm trying to develop a flutter/Unity app, and I would like to improve the workflow. I have scripts to build/publish the app. Unity Export to iOS/android is the only thing I can't do by script. Would it be a way to export for iOS/android with command line ?