Skip to content

Commit

Permalink
add xcode 14 workaround
Browse files Browse the repository at this point in the history
  • Loading branch information
kelset committed Oct 5, 2022
1 parent b56d709 commit 4860792
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions scripts/react_native_pods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,19 @@ def use_flipper!(versions = {}, configurations: ['Debug'])
def react_native_post_install(installer, react_native_path = "../node_modules/react-native", mac_catalyst_enabled: false)
ReactNativePodsUtils.apply_mac_catalyst_patches(installer) if mac_catalyst_enabled

# This is necessary for Xcode 14, because it signs resource bundles by default
# when building for devices.
# addressess https://github.com/facebook/react-native/issues/34673
# while we wait for a fix in CocoaPods, see https://github.com/CocoaPods/CocoaPods/issues/11402
installer.target_installation_results.pod_target_installation_results
.each do |pod_name, target_installation_result|
target_installation_result.resource_bundle_targets.each do |resource_bundle_target|
resource_bundle_target.build_configurations.each do |config|
config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO'
end
end
end

if ReactNativePodsUtils.has_pod(installer, 'Flipper')
flipper_post_install(installer)
end
Expand Down

0 comments on commit 4860792

Please sign in to comment.