Xcode 9.2 Archive Fails looking for Entitlements

Description of the issue

When using Xcode 9.2 to build a Mac application, xcode-archive-mac@1.6.1 fails with the following error message:

Failed to parse archive, error: entitlements not exists at: /var/folders/90/5stft2v13fb_m_gv3c8x9nwc0000gn/T/bitrise-xcarchive425439296/StaffPad Editor.xcarchive/Products/Applications/StaffPad Editor.app/Contents/Resources/archived-expanded-entitlements.xcent

Environment:

Where did the issue happen?

Bitrise Mac OS 10.12 with Xcode 9.2

Which build Step causes the issue and which version of the step?

xcode-archive-mac@1.6.1

Reproducibility

  • A rebuild does not help.
  • The issue happens every time
  • No build steps to upgrade
  • Issue has been happening forever

Local reproduction

I cannot reproduce the issue on my local machine.

Build log

Hi @thermogl,

Thanks for reporting!

It seems this is an issue in the Xcode Archive (Mac) step.
Can you please enable Support Access for this app on bitrise.io?
We’ll look into it ASAP!

Done! Thanks.

Thanks, we’ll try to look into it ASAP!

If you’d have time for debugging in the meantime it might help if you VNC/Screen Share into the Build VM and check it there. We have a “beta” solution for this, related guide: https://gist.github.com/viktorbenei/c6d4fe1e68de739dbb5f4f15de76b9db

And of course if you’d have any questions just let us know! :wink:

Hi @thermogl,
we released the new xcode archive mac: 1.6.2 Could you please update your step and let me know how does it work for you?

Done. All working. Thanks!

1 Like