File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -50,10 +50,21 @@ lane :build_xcframeworks do
50
50
codesign << lane_context [ SharedValues ::XCFRAMEWORK_OUTPUT_PATH ]
51
51
end
52
52
53
+ remove_swiftui_core_module_shadow ( output_directory : output_directory )
53
54
remove_stream_chat_module_shadow ( output_directory : output_directory )
54
55
sh ( codesign . join ( ' ' ) ) # We need to sign all frameworks at once
55
56
end
56
57
58
+ # https://linear.app/stream/issue/IOS-630
59
+ private_lane :remove_swiftui_core_module_shadow do |options |
60
+ Dir . glob ( "#{ options [ :output_directory ] } /**/*.swiftinterface" ) . each do |file |
61
+ if File . file? ( file )
62
+ UI . important ( "Removing the SwiftUICore module's shadow at: #{ file } ..." )
63
+ File . write ( file , File . read ( file ) . gsub ( 'SwiftUICore.' , '' ) )
64
+ end
65
+ end
66
+ end
67
+
57
68
# 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
58
69
private_lane :remove_stream_chat_module_shadow do |options |
59
70
Dir . glob ( "#{ options [ :output_directory ] } /**/*.swiftinterface" ) do |file |
You can’t perform that action at this time.
0 commit comments