Hi everyone!
I’m struggling with Manage iOS Code Signing step. It doesn’t pick up proper bundle id (staging) and tries to sign with production one. Bundle id in my app is set using xcconfig files. The step has proper configuration (Release-Staging). In logs I can see it builds first using proper config:
[14:13:25] $ xcodebuild "-project" "/Users/[REDACTED]/git/[REDACTED]/[REDACTED]/[REDACTED].xcodeproj" "-target" "[REDACTED]" "-configuration" "Release-Staging" "-showBuildSettings"
but then tries to use default bundle ids:
Local code signing assets not found for:
Archivable targets (2)
- com.company.app
- com.company.app.AppExtension
I tried to add “Replaces Xcode’s project PRODUCT_BUNDLE_IDENTIFIER” step before Signing step. It helped a but but crashed because entitlements still must be replaced with staging ones.
Also switching this step to “Xcode Archive & Export for iOS” doesn’t help (configuration is not applied)
How can I dynamically pick proper bundleId, entitlements based on configuration?