Skip to content

Conversation

@mokagio
Copy link
Contributor

@mokagio mokagio commented Mar 27, 2025

Somehow, switching to Xcode synchronized folders broke Fastlane's ability to generate the export_options automatically.

As a workaround, we can specify them manually for the time being.

See:


For the record, I also tried removing the PROVISIONING_PROFILE_SPECIFIER definition in Enterprise.xcconfig. The release xcconfig overrides it, but I thought that maybe the new Xcode setup interfered with Fastlane.

// Fastlane match uses a common pattern to name provisioning profiles, which allows us use this top-level, centralized definition.
// Each target + build configuration combination will interpolate its bundle id value in here.
//
// Note: This setting works in Xcode and it seems like xcodebuild can also resolve it.
// But once we add Fastlane's build_app (gym) into the pipeline, the resulting provisioning profile value is not interpolated.
// As such, we have to re-define the value explicitly in each target.
//
// Leaving it here for reference in case the Fastlane will be resolved...
PROVISIONING_PROFILE_SPECIFIER = match InHouse $PRODUCT_BUNDLE_IDENTIFIER

Unfortunately, it did not change the build outcome.

@mokagio mokagio force-pushed the mokagio/xcconfig-fix-attempt branch from 473aa49 to 063ab27 Compare March 27, 2025 04:33
@mokagio mokagio requested review from a team and andrewdmontgomery March 27, 2025 04:33

desc 'Builds the Gravatar-Demo project with a specific scheme'
lane :build_demo do |scheme: 'Gravatar-Demo'|
lane :build_demo do |scheme: 'Gravatar Demo'|
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated, but I noticed the scheme name here was outdated.

@wpmobilebot
Copy link

wpmobilebot commented Mar 27, 2025

Gravatar Prototype Build📲 You can test the changes from this Pull Request in Gravatar Prototype Build by scanning the QR code below to install the corresponding build.
App NameGravatar Prototype Build Gravatar Prototype Build
Build Number2146
Version1.0
Bundle IDcom.automattic.gravatar-sdk-demo-uikit.prototype-build
Commitc796623
App Center BuildGravatar SDK Demo - UIKit #614
Automatticians: You can use our internal self-serve MC tool to give yourself access to App Center if needed.

Copy link
Contributor

@AliSoftware AliSoftware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some more links to fastlane issue and Xcodeproj PR to document this even more. Otherwise LGTM.

I'm hoping I'll be able to find some time next week to work on the fastlane codebase and fix that (either land PRs that might fix it already, or fix it myself otherwise + look at other Xcode 16-related PRs…) before doing a new version of fastlane.

No promises about the timeline though, so in the meantime I'm all good with going with this workaround.

@andrewdmontgomery
Copy link
Contributor

Thank you for sorting this!

I am more than happy to merge this and then follow up later with an update to fastlane + removing this workaround.

@andrewdmontgomery
Copy link
Contributor

For posterity, we can revert these commits when fastlane is updated to handle this properly.

We can leave commit 68cb0bfc50590ad0311cc7609920545aa2d3fa0a, as it fixes a scheme name.

@andrewdmontgomery andrewdmontgomery merged commit 2bffa51 into andrewdmontgomery/Demo-convert-groups-to-folders Mar 27, 2025
8 checks passed
@andrewdmontgomery andrewdmontgomery deleted the mokagio/xcconfig-fix-attempt branch March 27, 2025 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants