From a78f1903eaafe3f84b06fb0fd5d92ee70956ac36 Mon Sep 17 00:00:00 2001 From: Drew Volz Date: Fri, 18 Nov 2022 19:43:31 -0800 Subject: [PATCH] Post adding support for Xcode 14 and macOS Ventura in #6573, the iOS build pipeline struggles to produce a build and dies in the last bit of the fastlane pipeline. It looks like the suggested solution is to turn off signing for resource bundles. An official fix is provided in release v0.70.3 of react native in commit 967de03f304404ac8817936da37ca39514a09e33. We can adopt a version of it from the CocoaPods repo into our Podfile and should be able to remove this once Cocoapods catches up. https://github.com/CocoaPods/CocoaPods/issues/11402#issuecomment-1201464693 --- ios/Podfile | 10 ++++++++++ ios/Podfile.lock | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ios/Podfile b/ios/Podfile index 69a7129bd1..464797742b 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -50,6 +50,16 @@ target 'AllAboutOlaf' do config.build_settings["CXX"] = "clang++" config.build_settings["LDPLUSPLUS"] = "clang++" end + + # Workaround for cli builds failing on Xcode 14 + # We should be able to remove this once CocoaPods catches up to it + # react-native issue: https://github.com/facebook/react-native/issues/34673 + # cocoapods issue: https://github.com/CocoaPods/CocoaPods/issues/11402 + if target.respond_to?(:product_type) and target.product_type == "com.apple.product-type.bundle" + target.build_configurations.each do |config| + config.build_settings['CODE_SIGNING_ALLOWED'] = 'NO' + end + end end end end diff --git a/ios/Podfile.lock b/ios/Podfile.lock index 83c5d6e943..896543b4e1 100644 --- a/ios/Podfile.lock +++ b/ios/Podfile.lock @@ -707,6 +707,6 @@ SPEC CHECKSUMS: Yoga: 2f6a78c58dcc2963bd8e34d96a4246d9dff2e3a7 YogaKit: f782866e155069a2cca2517aafea43200b01fd5a -PODFILE CHECKSUM: beadf17ef4e816508151c3d09fd800f19958dddc +PODFILE CHECKSUM: 38ee0eeef55ab8c2665f634e3bb69c4ef965e110 COCOAPODS: 1.11.3