react-native-orientation-locker icon indicating copy to clipboard operation
react-native-orientation-locker copied to clipboard

Cannot find 'Orientation' in scope

Open devudr opened this issue 3 months ago • 5 comments

after adding below line

  • // required for react-native-orientation-locker
  • func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
  • return Orientation.getOrientation()
  • }

devudr avatar Oct 07 '25 11:10 devudr

kindly update over this

devudr avatar Oct 10 '25 09:10 devudr

In the new version of RN, if you're use AppDelegate.swift file, instead of import in that file, you can import #import "Orientation.h" in your briding header file [project_name]-Bridging-Header.h

minhchienwikipedia avatar Oct 23 '25 05:10 minhchienwikipedia

@minhchienwikipedia ITS NOT WORKING

Abdullo-0901 avatar Oct 26 '25 08:10 Abdullo-0901

error no such module 'Orientation' error Failed to build ios project. "xcodebuild" exited with error code '65'. To debug build logs further, consider building your app with Xcode.app

"react-native": "0.82.1", "react-native-orientation-locker": "^1.7.0",

I'm having the same problem. How can I solve it?

yurun0731 avatar Nov 07 '25 03:11 yurun0731

+1

tpm-scraven avatar Dec 05 '25 16:12 tpm-scraven

Make sure the bridging file is referenced in XCode (Objective-C Bridging Header): The path to the bridging file is [PROJECT_NAME]/[project_name]-Bridging-Header.h PROJECT_NAME is just the folder name inside the IOS folder

Image

ArielAlvaradoAtahuichi avatar Dec 17 '25 15:12 ArielAlvaradoAtahuichi