I’ve been unsuccessful making an attempt to get my venture to construct all week on xCode.
It was working high quality on the earlier OS with xCode 15, however now – I’m having all kinds of construct points. I’ve tried every part within the e book.
My RN model is 0.72.17.
I’m working a M3 Macbook.
My cocoapods model is 1.14.3 (I attempted 1.16.x, no luck), and I’ve not had any construct errors particular to any of my dependencies. They’ve all made no sense, particularly this final one I have been caught on:
My podfile at present seems like this, I’ve flipper disabled:
# Resolve react_native_pods.rb with node to permit for hoisting
require Pod::Executable.execute_command('node', ['-p',
'require.resolve(
"react-native/scripts/react_native_pods.rb",
{paths: [process.argv[1]]},
)', __dir__]).strip
platform :ios, '13.4'
# platform :ios, min_ios_version_supported
prepare_react_native_project!
use_modular_headers!
# If you're utilizing a `react-native-flipper` your iOS construct will fail when `NO_FLIPPER=1` is ready.
# as a result of `react-native-flipper` is dependent upon (FlipperKit,...) that will probably be excluded
#
# To repair this you can too exclude `react-native-flipper` utilizing a `react-native.config.js`
# ```js
# module.exports = {
# dependencies: {
# ...(course of.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
# flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
Pod::UI.places "Configuring Pod with #{linkage}ally linked Frameworks".inexperienced
use_frameworks! :linkage => linkage.to_sym
finish
goal 'buds' do
config = use_native_modules!
# Flags change relying on the env values.
flags = get_default_flags()
use_frameworks! :linkage => :static
$RNFirebaseAsStaticFramework = true
use_react_native!(
:path => config[:reactNativePath],
# Hermes is now enabled by default. Disable by setting this flag to false.
:hermes_enabled => flags[:hermes_enabled],
:fabric_enabled => flags[:fabric_enabled],
# Permits Flipper.
#
# Observe that when you have use_frameworks! enabled, Flipper is not going to work and
# it is best to disable the following line.
# :flipper_configuration => flipper_config,
# An absolute path to your utility root.
:app_path => "#{Pod::Config.occasion.installation_root}/.."
)
goal 'budsTests' do
inherit! :full
# Pods for testing
finish
post_install do |installer|
# https://github.com/fb/react-native/blob/essential/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false
)
# __apply_Xcode_12_5_M1_post_install_workaround(installer)
finish
finish
I admire any recommendation I can get right here at this level.
Cheers!