Skip to content

Commit

Permalink
fix: pods
Browse files Browse the repository at this point in the history
  • Loading branch information
sdip15fa committed May 1, 2024
1 parent 305491c commit 518822e
Show file tree
Hide file tree
Showing 3 changed files with 1,102 additions and 444 deletions.
8 changes: 6 additions & 2 deletions ios/Podfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
require File.join(File.dirname(`node --print "require.resolve('expo/package.json')"`), "scripts/autolinking")
require File.join(File.dirname(`node --print "require.resolve('react-native/package.json')"`), "scripts/react_native_pods")

min_ios_versions_supported = ['13.0', min_ios_version_supported]
index_of_max = min_ios_versions_supported.each_with_index.max_by { |number, _| number.to_f }[1]
platform :ios, min_ios_versions_supported[index_of_max]

require 'json'
podfile_properties = JSON.parse(File.read(File.join(__dir__, 'Podfile.properties.json'))) rescue {}

ENV['RCT_NEW_ARCH_ENABLED'] = podfile_properties['newArchEnabled'] == 'true' ? '1' : '0'
ENV['EX_DEV_CLIENT_NETWORK_INSPECTOR'] = podfile_properties['EX_DEV_CLIENT_NETWORK_INSPECTOR']

platform :ios, podfile_properties['ios.deploymentTarget'] || '13.0'
# platform :ios, podfile_properties['ios.deploymentTarget'] || '13.0'
install! 'cocoapods',
:deterministic_uuids => false

Expand Down Expand Up @@ -63,7 +67,7 @@ target 'safecantoneseai' do
config[:reactNativePath],
:mac_catalyst_enabled => false
)
__apply_Xcode_12_5_M1_post_install_workaround(installer)
# __apply_Xcode_12_5_M1_post_install_workaround(installer)

# This is necessary for Xcode 14, because it signs resource bundles by default
# when building for devices.
Expand Down
Loading

0 comments on commit 518822e

Please sign in to comment.