diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 401a0b64d6..90b2f01fc3 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -51,10 +51,20 @@ lane :build_xcframeworks do ) sh('../Scripts/removeUnneededSymbols.sh', sdk, output_directory) codesign << lane_context[SharedValues::XCFRAMEWORK_OUTPUT_PATH] + resolve_swiftui_xcframework_issue if sdk == 'StreamChatUI' end sh(codesign.join(' ')) # We need to sign all frameworks at once end +desc 'https://linear.app/stream/issue/IOS-630' +private_lane :resolve_swiftui_xcframework_issue do + Dir.glob("#{lane_context[SharedValues::XCFRAMEWORK_OUTPUT_PATH]}/**/*.swiftinterface").each do |file| + old_text = File.read(file) + new_text = old_text.gsub(/SwiftUICore.View/, 'View') + File.open(file, 'w') { |f| f.puts(new_text) } if old_text != new_text + end +end + desc 'Start a new release' lane :release do |options| previous_version_number = last_git_tag