'Orientation.h' file not found
Resolve path error report
$(SRCROOT)/node_modules/react-native-orientation/iOS/RCTOrientation
===>
$(SRCROOT)/../node_modules/react-native-orientation/iOS/RCTOrientation
any update on this
Had the same issue
cd ios
pod install
and it is solved
If you guys are using auto linking, you should use #import <Orientation.h> at the AppDelegate.m and ignore the manual configuration settings.
I'm having problems when i try to archive iOS to publish. it's saying that Orientation.h file not found.
I'm having problems when i try to archive iOS to publish. it's saying that Orientation.h file not found.
Greetings Juan,
Probably you are not using Pods, in which case you need to reference this way:
Hope it helps.
Hi Bruno
i'm using React 0.62 that have Pods installed and autolink im trying with
it compile but it doesn't archive for production.
Hi Juan!!
Please, provide the Xcode build output log.
@BrunoVillanova
Same case here with Juan
react-native: 0.62.2
npx pod-install
But build error when archiving.
It's just saying "Use of undeclared identifier: 'Orientation'" in AppDelegate.m.
No other build logs.
Same issue here. Did you fixed it @seniordev32 ?
Sorry the delay.Try to put the node_modules library path to Search Header Paths Build Settings on Xcode.
Bruno Villanova
[email protected]
(11) 99855-5588
Digimundi | Soluções Criativas
Acesse digimundi.com.br
On 8 Sep 2020 17:18 -0300, shuhikari notifications@github.com, wrote:
Same issue here. Did you fixed it @seniordev32 ?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
I found a way to get it working. I was finding weird the Debug build was completely fine, but this errors were only showing on the release version.
So I copied this line to the import section above #if DEBUGstatement, like this:
#import "AppDelegate.h"
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import "Orientation.h"
#import <GoogleMaps/GoogleMaps.h>
#if DEBUG
#import <FlipperKit/FlipperClient.h>
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
#import "Orientation.h"
#import <GoogleMaps/GoogleMaps.h>
I wasn't so sure about changing the library, so I hope it helps
have you tested if this works with release builds also?
@BrunoVillanova yes, the statement #if DEBUG was preventing the app from executing the imports for the release version.
That's why the debug version was compiling with no issues.
@shuhikari I stuck here also. Which part you change? Could you add more details? Should I add this lines to top?
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import "Orientation.h"
Guys already solved.
Just put your import #import "Orientation.h"
before the line #if DEBUG
That's the reason that doesn't work when Archive.
Like this.
#import "AppDelegate.h"
#import <React/RCTBridge.h>
#import <React/RCTBundleURLProvider.h>
#import <React/RCTRootView.h>
#import "Orientation.h"
#if DEBUG
#import <FlipperKit/FlipperClient.h>
#import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h>
#import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h>
#import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h>
#import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h>
#import <FlipperKitReactPlugin/FlipperKitReactPlugin.h>
#import "Orientation.h"
#import <GoogleMaps/GoogleMaps.h>
Guys already solved.
Just put your import
#import "Orientation.h"
before the line#if DEBUG
That's the reason that doesn't work when Archive.Like this.
#import "AppDelegate.h" #import <React/RCTBridge.h> #import <React/RCTBundleURLProvider.h> #import <React/RCTRootView.h> #import "Orientation.h" #if DEBUG #import <FlipperKit/FlipperClient.h> #import <FlipperKitLayoutPlugin/FlipperKitLayoutPlugin.h> #import <FlipperKitUserDefaultsPlugin/FKUserDefaultsPlugin.h> #import <FlipperKitNetworkPlugin/FlipperKitNetworkPlugin.h> #import <SKIOSNetworkPlugin/SKIOSNetworkAdapter.h> #import <FlipperKitReactPlugin/FlipperKitReactPlugin.h> #import "Orientation.h" #import <GoogleMaps/GoogleMaps.h>
Juan,
Please check your package.json dependency version, mine is:
` "react-native-orientation": "^3.1.3"
In AppDelegate.m header:
Install pod with npx pod-install and you are good to go.
Most helpful comment
Had the same issue
cd ios
pod install
and it is solved