I’m making construct for my react native venture. I’ve tried operating it on totally different simulators with totally different ios variations. Minimal 15.5
Construct solely succeeds on My mac (Designed for iphone) Choice
What I’ve tried
Deleting podfile.lock
pod set up
operating on particular simulators
My Podfile
venture 'app.xcodeproj'
# 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, '15.5'
prepare_react_native_project!
# In case you are utilizing a `react-native-flipper` your iOS construct will fail when `NO_FLIPPER=1` is about.
# as a result of `react-native-flipper` relies on (FlipperKit,...) that can be excluded
#
# To repair this you may also 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 => :static
$RNFirebaseAsStaticFramework = true
finish
goal "app" do
config = use_native_modules!
pod "Firebase", :modular_headers => true
pod "FirebaseCoreInternal", :modular_headers => true
pod "GoogleUtilities", :modular_headers => true
pod "FirebaseCore", :modular_headers => true
use_react_native!(
:path => config[:reactNativePath],
# Allows Flipper.
#
# Word that in case you have use_frameworks! enabled, Flipper won't work and
# you must disable the following line.
# :flipper_configuration => flipper_config,
# An absolute path to your software root.
:app_path => "#{Pod::Config.occasion.installation_root}/..",
)
goal "appTests" do
inherit! :full
# Pods for testing
finish
post_install do |installer|
# https://github.com/fb/react-native/blob/foremost/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
)
finish
finish
and my AppDelegate file
#import "AppDelegate.h"
#import <Firebase.h>
#import <IntercomModule.h>
#import <React/RCTBundleURLProvider.h>
@implementation AppDelegate
- (BOOL)software:(UIApplication *)software didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
[FIRApp configure];
self.moduleName = @"app";
// You'll be able to add your customized preliminary props within the dictionary beneath.
// They are going to be handed all the way down to the ViewController utilized by React Native.
self.initialProps = @{};
[IntercomModule initialize:@"ios_sdk-" withAppId:@""];
return [super application:application didFinishLaunchingWithOptions:launchOptions];
}
- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
return [self getBundleURL];
}
- (NSURL *)getBundleURL
{
#if DEBUG
return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
#else
return [[NSBundle mainBundle] URLForResource:@"foremost" withExtension:@"jsbundle"];
#endif
}
@finish
At the moment making an attempt to run it on the right track 15.5 on iphone 13 professional simulator.