Skip to content

Commit

Permalink
ci: Fix version suffix beta issue for app clip (#3130)
Browse files Browse the repository at this point in the history
  • Loading branch information
philipphofmann authored Jul 6, 2023
1 parent 7cd187e commit d9fff0f
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,29 +19,33 @@ platform :ios do
xcodeproj: "./Samples/iOS-Swift/iOS-Swift.xcodeproj",
target: "iOS-Swift"
)
version = version.split("-", -1)[0]
new_version = version.split("-", -1)[0]

# We also need to replace the MARKETING_VERSION otherwise the build will fail with
# error: The CFBundleShortVersionString of an App Clip ('8.9.0-beta.1') must match that of its containing parent app ('8.9.0').
sh "sed -i '' 's/MARKETING_VERSION = #{version}/MARKETING_VERSION = #{new_version}/g' ../Samples/iOS-Swift/iOS-Swift.xcodeproj/project.pbxproj"

set_info_plist_value(
path: ios_swift_infoplist_path,
key: "CFBundleShortVersionString",
value: version
value: new_version
)
set_info_plist_value(
path: ios_swift_clip_infoplist_path,
key: "CFBundleShortVersionString",
value: version
value: new_version
)

sentryInfoPlistPath = "./Sources/Sentry/Info.plist"
set_info_plist_value(
path: sentryInfoPlistPath,
key: "CFBundleShortVersionString",
value: version
value: new_version
)
set_info_plist_value(
path: sentryInfoPlistPath,
key: "CFBundleVersion",
value: version
value: new_version
)
end

Expand Down

0 comments on commit d9fff0f

Please sign in to comment.