Skip to content

Commit

Permalink
ci: fix build (react-native-webrtc#1562)
Browse files Browse the repository at this point in the history
* ci: fix build

* Update Podfile ios version

* Update Podfile
  • Loading branch information
davidliu authored May 3, 2024
1 parent 822cac7 commit 495658d
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion examples/GumTestApp/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,25 @@ target 'GumTestApp' do
:mac_catalyst_enabled => false
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)

# NOTE: Change IPHONEOS_DEPLOYMENT_TARGET to 12.4.
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.4'
end
end

installer.pods_project.build_configurations.each do |config|
installer.pods_project.targets.each do |target|
if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle"
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end

# Set the preprocessing macro for the whole Pods project
existing_flags = config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)']
existing_flags << '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION'
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] = existing_flags
end
end
end
end

0 comments on commit 495658d

Please sign in to comment.