Parametric bundle identifier works locally and on Jenkins. Doesn't on bitrise

Hi,

I’m trying to setup my CI process on bitrise. I’m trying to reuse the fastlane configuration that is already working locally and on our local Jenkins machine.

Our app has a parametric identifier in the form of

com.my_app${BUNDLE_SUFFIX}

the ${BUNDLE_SUFFIX} is defined in the project and changes for different schemes. We do this on order to have two bundle identifiers. One for the daily experimental build and on for the production RC builds

With the same project, fastlane and overall configuration I see bitrise failing at this step

[09:47:01]: Successfully stored the archive. You can find it in the Xcode Organizer.
[09:47:01]: Generated plist file with the following values:
[09:47:01]: ▸ -----------------------------------------
[09:47:01]: ▸ {
[09:47:01]: ▸   "provisioningProfiles": {
[09:47:01]: ▸     "com.my_app${BUNDLE_SUFFIX}": "match AppStore com.my_app",
[09:47:01]: ▸     "com.my_app${BUNDLE_SUFFIX}.$(PRODUCT_NAME:rfc1034identifier)": "match AppStore com.my_app.GetMeHome",
[09:47:01]: ▸     "com.my_app${BUNDLE_SUFFIX}.watchapp": "match AppStore com.my_app.watchapp",
[09:47:01]: ▸     "com.my_app${BUNDLE_SUFFIX}.watchapp.watchkitextension": "match AppStore com.my_app.watchapp.watchkitextension",
[09:47:01]: ▸     "com.my_app${BUNDLE_SUFFIX}.FavoriteStops": "match AppStore com.my_app.FavoriteStops",
[09:47:01]: ▸     "com.my_app${BUNDLE_SUFFIX}.NearbyStops": "match AppStore com.my_app.NearbyStops",
[09:47:01]: ▸     "com.my_app${BUNDLE_SUFFIX}.messagesExtension": "match AppStore com.my_app.messagesExtension",
[09:47:01]: ▸     "com.my_app${BUNDLE_SUFFIX}.CompassWidget": "match AppStore com.my_app.CompassWidget"
[09:47:01]: ▸   },
[09:47:01]: ▸   "method": "ad-hoc"
[09:47:01]: ▸ }
[09:47:01]: ▸ -----------------------------------------

While running locally or on our Jenkins machine at that step I see the following correct output:

[19:41:48]: e[32mSuccessfully stored the archive. You can find it in the Xcode Organizer.e[0m
[19:41:48]: e[33mGenerated plist file with the following values:e[0m
[19:41:48]: ▸ e[35m-----------------------------------------e[0m
[19:41:48]: ▸ e[35m{e[0m
[19:41:48]: ▸ e[35m  "teamID": "UQP7LV7UMT",e[0m
[19:41:48]: ▸ e[35m  "method": "ad-hoc",e[0m
[19:41:48]: ▸ e[35m  "compileBitcode": false,e[0m
[19:41:48]: ▸ e[35m  "provisioningProfiles": {e[0m
[19:41:48]: ▸ e[35m    "com.my_app.daily": "match AdHoc com.my_app.daily",e[0m
[19:41:48]: ▸ e[35m    "com.my_app.daily.CompassWidget": "match AdHoc com.my_app.daily.CompassWidget",e[0m
[19:41:48]: ▸ e[35m    "com.my_app.daily.FavoriteStops": "match AdHoc com.my_app.daily.FavoriteStops",e[0m
[19:41:48]: ▸ e[35m    "com.my_app.daily.GetMeHome": "match AdHoc com.my_app.daily.GetMeHome",e[0m
[19:41:48]: ▸ e[35m    "com.my_app.daily.NearbyStops": "match AdHoc com.my_app.daily.NearbyStops",e[0m
[19:41:48]: ▸ e[35m    "com.my_app.daily.messagesExtension": "match AdHoc com.my_app.daily.messagesExtension",e[0m
[19:41:48]: ▸ e[35m    "com.my_app.daily.watchapp": "match AdHoc com.my_app.daily.watchapp",e[0m
[19:41:48]: ▸ e[35m    "com.my_app.daily.watchapp.watchkitextension": "match AdHoc com.my_app.daily.watchapp.watchkitextension"e[0m
[19:41:48]: ▸ e[35m  },e[0m
[19:41:48]: ▸ e[35m  "signingCertificate": "iPhone Distribution",e[0m
[19:41:48]: ▸ e[35m  "signingStyle": "manual",e[0m
[19:41:48]: ▸ e[35m  "stripSwiftSymbols": true,e[0m
[19:41:48]: ▸ e[35m  "thinning": "<none>"e[0m
[19:41:48]: ▸ e[35m}e[0m
[19:41:48]: ▸ e[35m-----------------------------------------e[0m
[19:43:19]: e[32mSuccessfully exported and compressed dSYM filee[0m
[19:43:19]: e[32mSuccessfully exported and signed the ipa file:e[0m

I guess there is a difference somewhere in the bitrise toolchain but I can’t find it. As far I can see the build uses same fast lane version and same Xcode version.

Hi @lucabartoletti,
could you please write us on the on-site chat and please attach your full build log file?

1 Like

@godreikrisztian thanks for the reply. I sent the log in the chat