Xcode Archive & Export for iOS v2.8.0

Set destination flag on the xcodebuild command based on the project SDKROOT build settings.

This step started failing my build. Version 2.7.2 was working fine. Could you please advise?

Successful build with version 2.7.2: https://app.bitrise.io/build/bdfde0aa40aa1576#?tab=log

Failed build with version 2.8.0 from same commit in my repo: https://app.bitrise.io/build/b32492075e95b177#?tab=log

Error: Failed to read project platform: /Users/vagrant/git/Dialpad.xcworkspace: failed to get SDKROOT: key: string(“SDKROOT”) not found in: serialized.Object(serialized.Object{“PRODUCT_NAME”:“Dialpad”})

To add some more info, I’m using xcconfig files in my project, and that’s where SDKROOT is set. Maybe that’s why version 2.8.0 is failing.

Hello @cmonteirodialpad , :wave:

We are sorry to hear about the issue! I notified our Tooling team and they are looking into this.
Could you please send us the .xcodeproj and .xcworkspace files? It would help us resolve the issue. If you don’t want to attach the files here, you can email us at support@bitrise.io or submit a ticket here. Thank you!

Ticket submitted, thanks!

1 Like

we have the same issue and other people is having it as well (see https://github.com/bitrise-steplib/steps-xcode-archive/issues). Is there a way to have a centralised response from support? or if there is one @cskata could you point me/us to where

Hello @eduardo.miranda , :wave:

We are sorry to hear this! Our Tooling team is aware of this issue with the latest version of the step and is currently looking into this.

Other users are reporting that downgrading to step version 2.7 resolves the issue, so in the meantime, as a workaround, I would kindly suggest using this version. We’ll update you here as soon as the issue is resolved. Thank you!

Hello @eduardo.miranda, @cmonteirodialpad ,

First of all, thank your for your patience! I have some good news: our team fixed the issue and I’d like to provide some context and details about it.

Since version 2.8.0, we add the -destination flag to the xcodebuild call, to make sure the step builds an iOS or tvOS project.

The root-cause was that the step built a macOS archive, which has slightly different file structure from an iOS archive.

This change also solves this issue partially: #180 - Catalyst app can’t be correctly parsed

Version 2.8.0 parses the given project and determines the destination flag value, based on the SDKROOT build settings.

This new version introduced an issue, by the invalid expectation of having SDKROOT build settings as a project level build settings:

In version 2.8.1, we use the target build settings returned by xcodebuild -showBuildSettings to get the SDKROOT value.

I close this issue as the latest release should fix it. If you need more info or help, just open a new issue or get in touch with our Support Team.

Thanks and happy building! :rocket:

This topic was automatically closed after 90 days. New replies are no longer allowed.