I'm using Xcode 11.3.1 (11C504) on macOS Catalina version 10.15.2 (19C57), to create an iOS app.
I want to add a post archive step that will run manipulation on the xcarchive files.
I'm not sure which environment variable provide the archive path.
Thanks
Asked
Active
Viewed 757 times
3

shugigo
- 133
- 1
- 10
-
it's Xcode. Please. – Dominik Bucher Jan 16 '20 at 14:28
-
1And please specify more details... I'd first refer to official documentation https://developer.apple.com/documentation/xcode/notarizing_macos_software_before_distribution/customizing_the_notarization_workflow/customizing_the_xcode_archive_process – Dominik Bucher Jan 16 '20 at 14:30
-
What more details should I provide? – shugigo Jan 16 '20 at 15:09
-
did you check out the link I posted above? – Dominik Bucher Jan 16 '20 at 15:12
-
Yes. I also found this documentation before I asked the question. Still I don't understand from the documentation's example what is the environment variable that provides me with the xcarchive path. – shugigo Jan 16 '20 at 15:30
-
Apparently I missed the "ARCHIVE_PATH" environment variable in the example. Thank @DominikBucher for your help. If you want to make it an answer from that I will accept it. – shugigo Jan 16 '20 at 16:17
1 Answers
2
You can use the $ARCHIVE_PATH
to achieve this.
To debug your script add exec > "/tmp/Xcode.log" 2>&1
to the beginning
You can then view output log in /tmp/Xcode.log
I hope this helps

Paul Doherty
- 31
- 3