bitrise-steplib/steps-xcode-archive

Failed to parse archive, error: profile not exists

soshman opened this issue · 10 comments

I'm trying to build workflow for our app.
We have same code to support many clients, so we generate our cordova projects during build time.

Everything seem to be set correctly, but during iOS archive I get Error Code: 1
And code message: Failed to parse archive, error: profile not exists at ...

Build link: https://app.bitrise.io/build/6cec9699b64db1a3
Xcode Archive & Export for iOS: latest version (2.4.15)

bitce commented

Hi @soshman sorry to hear about the issue, and thanks for contacting us!

We are looking into it and will reply here as soon as we have something!

This error seems to be connected to the new release of XCode. I encountered this problem with my local environment after update. Cordova projects are not compatible with XCode 10.

Statement:
apache/cordova-ios#407

In short, it is caused by new build system, which became default after update. Workaround for this is adding new flag to xcodebuild: -UseModernBuildSystem=0.

bitce commented

Hi there!

Glad to hear you've found this, we've been experimenting with this (UseModernBuildSystem=0) option for the last few days but it's hard to say what portion of actual issues did this solve, in case it was a compatibility issue alone, I'd say this is a solution as opposed to a workaround.

Anyhow, I hope things will be running smoothly from now! 🤞

Has there been any solution to this yet? Ive been dealing with this issue for a while and not really sure if there has been any progress. Changing the BuildSystem works locally but how do I change it on bitrise?

bitce commented

Hey @pjwelcome! Please insert a " -UseModernBuildSystem=NO " flag to the “Additional options for xcodebuild to call” input in the “Debug” section of the related Xcode step and run the build that way

Thanks so much @bitce . This was helpful.

I am getting this error when running codesigndoc - is there a way to force codesigndoc to use -UseModernBuildSystem=NO

Hy @gabeosx codesigndoc should be used locally after you export an appropriate ipa, not in the build 🤔

Hello there, I'm a bot. On behalf of the community I thank you for opening this issue.

To help our human contributors focus on the most relevant reports, I check up on old issues to see if they're still relevant.
This issue has had no activity for 90 days, so I marked it as stale.

The community would appreciate if you could check if the issue still persists. If it isn't, please close it.
If the issue persists, and you'd like to remove the stale label, you simply need to leave a comment. Your comment can be as simple as "still important to me".

If no comment left within 21 days, this issue will be closed.

I'll close this issue as it doesn't seem to be relevant anymore.
We believe an old issue probably has a bunch of context that's no longer relevant, therefore, if the problem still persists, please open a new issue.