<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: davidgvf_</title>
    <description>The latest articles on DEV Community by davidgvf_ (@davidgvf).</description>
    <link>https://dev.to/davidgvf</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1102659%2F1eff1414-1080-4e83-927c-ea17a2607431.png</url>
      <title>DEV Community: davidgvf_</title>
      <link>https://dev.to/davidgvf</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/davidgvf"/>
    <language>en</language>
    <item>
      <title>I need help please, Error when build in xcode app react native - RCTAppDelegate.h' file not found</title>
      <dc:creator>davidgvf_</dc:creator>
      <pubDate>Fri, 16 Jun 2023 12:04:21 +0000</pubDate>
      <link>https://dev.to/davidgvf/i-need-help-please-error-when-build-in-xcode-app-react-native-13ib</link>
      <guid>https://dev.to/davidgvf/i-need-help-please-error-when-build-in-xcode-app-react-native-13ib</guid>
      <description>&lt;p&gt;The error is : RCTAppDelegate.h' file not found&lt;/p&gt;

&lt;p&gt;My AppDelegate.h:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#import &amp;lt;RCTAppDelegate.h&amp;gt;
#import &amp;lt;UIKit/UIKit.h&amp;gt;

@interface AppDelegate : RCTAppDelegate

@end

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My AppDelegate.mm&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;#import "AppDelegate.h"

#import &amp;lt;Firebase.h&amp;gt;
#import &amp;lt;FirebaseCrashlytics.h&amp;gt;
#import &amp;lt;React/RCTLinkingManager.h&amp;gt;



#import &amp;lt;React/RCTBundleURLProvider.h&amp;gt;

@implementation AppDelegate

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
  [FIRApp configure];
  self.moduleName = @"KubikApp";
  // You can add your custom initial props in the dictionary below.
  // They will be passed down to the ViewController used by React Native.
  self.initialProps = @{};

  return [super application:application didFinishLaunchingWithOptions:launchOptions];
}

- (NSURL *)sourceURLForBridge:(RCTBridge *)bridge
{
#if DEBUG
  return [[RCTBundleURLProvider sharedSettings] jsBundleURLForBundleRoot:@"index"];
#else
  return [[NSBundle mainBundle] URLForResource:@"main" withExtension:@"jsbundle"];
#endif
}

/// This method controls whether the `concurrentRoot`feature of React18 is turned on or off.
///
/// @see: https://reactjs.org/blog/2022/03/29/react-v18.html
/// @note: This requires to be rendering on Fabric (i.e. on the New Architecture).
/// @return: `true` if the `concurrentRoot` feature is enabled. Otherwise, it returns `false`.
- (BOOL)concurrentRootEnabled
{
  return true;
}

- (BOOL)application:(UIApplication *)application
   openURL:(NSURL *)url
   options:(NSDictionary&amp;lt;UIApplicationOpenURLOptionsKey,id&amp;gt; *)options
{
  return [RCTLinkingManager application:application openURL:url options:options];
}

- (BOOL)application:(UIApplication *)application continueUserActivity:(nonnull NSUserActivity *)userActivity
 restorationHandler:(nonnull void (^)(NSArray&amp;lt;id&amp;lt;UIUserActivityRestoring&amp;gt;&amp;gt; * _Nullable))restorationHandler
{
 return [RCTLinkingManager application:application
                  continueUserActivity:userActivity
                    restorationHandler:restorationHandler];
}

@end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;My podfile:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
$RNFirebaseAsStaticFramework = true
$RNFirebaseAnalyticsWithoutAdIdSupport = true

platform :ios, '13.0'
use_frameworks! :linkage =&amp;gt; :static
use_modular_headers!
prepare_react_native_project!


flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled

linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
  Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  use_frameworks! :linkage =&amp;gt; linkage.to_sym
end

target 'KubikApp' do
  config = use_native_modules!

  # Flags change depending on the env values.
  flags = get_default_flags()

  use_react_native!(
    :path =&amp;gt; config[:reactNativePath],
    :hermes_enabled =&amp;gt; flags[:hermes_enabled],
    :fabric_enabled =&amp;gt; flags[:fabric_enabled],
    # An absolute path to your application root.
    :app_path =&amp;gt; "#{Pod::Config.instance.installation_root}/.."
  )

  target 'KubikAppTests' do
    inherit! :complete
    # Pods for testing
  end

  post_install do |installer|
    react_native_post_install(
      installer,
      # Set `mac_catalyst_enabled` to `true` in order to apply patches
      # necessary for Mac Catalyst builds
      :mac_catalyst_enabled =&amp;gt; false
    )
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end
end
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>reactnative</category>
    </item>
  </channel>
</rss>
