File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 31
31
32
32
lane :build_xcframeworks do
33
33
match_me
34
- output_directory = "#{ Dir . pwd } /../Products"
34
+ output_directory = File . absolute_path ( "#{ Dir . pwd } /../Products" )
35
35
team_id = File . read ( 'Matchfile' ) . match ( /team_id\( "(.*)"\) / ) [ 1 ]
36
36
codesign = [ "codesign --timestamp -v --sign 'Apple Distribution: Stream.io Inc (#{ team_id } )'" ]
37
37
sdk_names . each do |sdk |
@@ -47,9 +47,21 @@ lane :build_xcframeworks do
47
47
sh ( '../Scripts/removeUnneededSymbols.sh' , sdk , output_directory )
48
48
codesign << lane_context [ SharedValues ::XCFRAMEWORK_OUTPUT_PATH ]
49
49
end
50
+
51
+ remove_stream_chat_module_shadow ( output_directory : output_directory )
50
52
sh ( codesign . join ( ' ' ) ) # We need to sign all frameworks at once
51
53
end
52
54
55
+ # Swift emits an invalid module interface when a public type has the same name as a module, see https://github.com/swiftlang/swift/issues/56573
56
+ private_lane :remove_stream_chat_module_shadow do |options |
57
+ Dir . glob ( "#{ options [ :output_directory ] } /**/*.swiftinterface" ) do |file |
58
+ if File . file? ( file )
59
+ UI . important ( "Removing the StreamChat module's shadow at: #{ file } ..." )
60
+ File . write ( file , File . read ( file ) . gsub ( 'StreamChat.' , '' ) )
61
+ end
62
+ end
63
+ end
64
+
53
65
desc 'Release a new version'
54
66
lane :release do |options |
55
67
previous_version_number = last_git_tag
You can’t perform that action at this time.
0 commit comments