Post Build Script Can't Access Archive
| Originator: | ski081 | ||
| Number: | rdar://34688076 | Date Originated: | 2017-09-27 |
| Status: | Open | Resolved: | |
| Product: | Xcode | Product Version: | 9.0 |
| Classification: | Bug | Reproducible: | Always |
Summary:
The build variable XCS_ARCHIVE that is produced from a successful archive results in a path that no longer exists on disk
Steps to Reproduce:
1. Create a new project in Xcode
2. Use manual signing with a new app id and distribution certificate
3. Create a git repository for the project and commit to the remote
4. Do an initial archive of the project, and ensure the exportOptions.plist is created
5. Set up a new build job that performs an archive. Use the exportOption plist file from the previous step in the Export Setting popup list
6. Log the path assigned to the XCS_ARCHIVE variable in a post build trigger using
echo "XCS_ARCHIVE: ${XCS_ARCHIVE}"
7. Run the new build job and go to the logs to get the path emitted from the build variable
8. Confirm that the path does not exist on disk
Expected Results:
The archive should exist at the location specified by the environment variable
Actual Results:
There is no directory at the specified path. This causes post build scripts that rely on this variable to fail. Uses include using this path to get the resulting ipa file for upload to iTunes Connect or for ad-hoc distribution.
Version/Build:
Version 9.0 (9A235)
Configuration:
Comments
Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!