Created
April 1, 2015 20:38
-
-
Save jonathanpeppers/6e3810094ac1822bae50 to your computer and use it in GitHub Desktop.
Unity iOS build targets in FAKE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Variables to change in future | |
let provisioningId = "GUID-HERE" | |
let provisioningName = "YourProfileName" | |
Target "ios-player" (fun () -> | |
Unity "-executeMethod BuildScript.iOS" | |
) | |
Target "ios-archive" (fun () -> | |
DeleteDir "Scratch/Xcode/YourGame.xarchive/" | |
Xcode ("-project Scratch/Xcode/Unity-iPhone.xcodeproj -scheme Unity-iPhone archive -archivePath Scratch/Xcode/YourGame PROVISIONING_PROFILE=" + provisioningId) | |
) | |
Target "ios" (fun () -> | |
DeleteFile "build/YourGame.ipa" | |
CreateDir "build" | |
Xcode ("-exportArchive -archivePath Scratch/Xcode/YourGame.xcarchive -exportPath build/YourGame.ipa -exportProvisioningProfile " + provisioningName) | |
) | |
"ios-archive" ==> "ios" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment