@@ -41,6 +41,8 @@ target 'Flat' do
41
41
pod 'FirebaseCrashlytics'
42
42
pod 'Firebase/AnalyticsWithoutAdIdSupport'
43
43
44
+ ignore_whiteboard_rebuild = ENV [ "ignore_whiteboard_rebuild" ] == "true"
45
+
44
46
post_install do |installer |
45
47
# Fix for XCode 14.3
46
48
installer . generated_projects . each do |project |
@@ -51,22 +53,27 @@ target 'Flat' do
51
53
end
52
54
end
53
55
54
- # Rebuild whiteboard bridge with injected code.
55
- system ( 'sh rebuild_whiteboard_bridge.sh $(pwd)' )
56
- # Remove the copy resource
57
- installer . pods_project . targets . each do |target |
58
- if target . name == "Whiteboard"
56
+ if !ignore_whiteboard_rebuild
57
+ # Rebuild whiteboard bridge with injected code.
58
+ system ( 'sh rebuild_whiteboard_bridge.sh $(pwd)' )
59
+
60
+ # Remove the copy resource
61
+ installer . pods_project . targets . each do |target |
62
+ if target . name == "Whiteboard"
59
63
puts "===================> Find Whiteboard Target"
60
64
build_phase = target . build_phases . find { |bp | bp . display_name == 'Resources' }
61
65
build_phase . clear ( )
62
66
puts "===================> Clear copy original Whiteboard Resources"
63
- end
64
-
65
- # Remove the original whitebaord resource target
66
- if target . name == 'Whiteboard-Whiteboard'
67
+ end
68
+
69
+ # Remove the original whitebaord resource target
70
+ if target . name == 'Whiteboard-Whiteboard'
67
71
target . remove_from_project
72
+ end
68
73
end
69
-
74
+ end
75
+
76
+ installer . pods_project . targets . each do |target |
70
77
if target . respond_to? ( :product_type ) and target . product_type == "com.apple.product-type.bundle"
71
78
target . build_configurations . each do |config |
72
79
config . build_settings [ 'CODE_SIGNING_ALLOWED' ] = 'NO'
0 commit comments