Skip to content

Commit 886143a

Browse files
committed
changed to xc workspace directory
1 parent 685bd73 commit 886143a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Assets/SequenceSDK/Editor/TestflightUploadPostBuildScript.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ public void OnPostprocessBuild(BuildReport report)
1818
Environment.GetEnvironmentVariable("ENABLE_TESTFLIGHT_UPLOAD") != "TRUE")
1919
return;
2020

21-
var exportPath = report.summary.outputPath;
22-
var ipaPath = Path.GetFullPath(Path.Combine(exportPath, "../.build/last/ios-production"));
21+
var workspace = Environment.GetEnvironmentVariable("WORKSPACE") ?? "";
22+
var ipaPath = Path.GetFullPath(Path.Combine(workspace, ".build/last/ios-production"));
2323
var ipaFile = Path.Combine(ipaPath, "build.ipa");
2424

2525
Debug.Log($"Uploading iOS binary to TestFlight from {ipaFile}");
@@ -36,8 +36,6 @@ public void OnPostprocessBuild(BuildReport report)
3636
File.WriteAllText(keyPath, privateKey);
3737

3838
var cmd = $"xcrun altool --upload-app -f \"{ipaFile}\" -t ios --apiKey {keyId} --apiIssuer {issuerId}";
39-
RunCommand("/bin/bash", $"-c \"ls -l {ipaPath}\"");
40-
RunCommand("/bin/bash", $"-c \"find '{exportPath}/..' -name '*.ipa'\"");
4139
RunCommand("/bin/bash", $"-c \"{cmd}\"");
4240
}
4341

0 commit comments

Comments
 (0)