-
-
Notifications
You must be signed in to change notification settings - Fork 58
Expand file tree
/
Copy pathcompile-xcode-project.ps1
More file actions
36 lines (31 loc) · 968 Bytes
/
compile-xcode-project.ps1
File metadata and controls
36 lines (31 loc) · 968 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
param (
[string] $iOSMinVersion = ""
)
. $PSScriptRoot/../test/Scripts.Integration.Test/common.ps1
$ProjectName = "Unity-iPhone"
$XcodeArtifactPath = "samples/IntegrationTest/Build"
$ArchivePath = "$XcodeArtifactPath/archive"
MakeExecutable "$XcodeArtifactPath/MapFileParser.sh"
MakeExecutable "$XcodeArtifactPath/sentry-cli-Darwin-universal"
If (-not $IsMacOS)
{
Write-Log "This script should only be run on a MacOS." -ForegroundColor Yellow
}
Write-Host "::group::Building iOS project"
try
{
xcodebuild `
-project "$XcodeArtifactPath/$ProjectName.xcodeproj" `
-scheme "Unity-iPhone" `
-configuration "Release" `
-sdk "iphonesimulator" `
-destination "platform=iOS Simulator,OS=$iOSMinVersion" `
-destination "platform=iOS Simulator,OS=latest" `
-parallel-testing-enabled YES `
-derivedDataPath "$ArchivePath/$ProjectName" `
| Write-Host
}
finally
{
Write-Host "::endgroup::"
}