Skip to content

Can't Build project on iOS 15, throws "RCT_ENABLE_INSPECTOR needs to be set to fulfill RCT_REMOTE_PROFILE" #8485

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
gaurav-vij opened this issue Apr 23, 2025 · 3 comments
Labels

Comments

@gaurav-vij
Copy link

We facing a strange issue in latest react-native 0.79 and firebase.

a. if we remove use_frameworks! :linkage => :static, we get FirebaseAuth not found error.
b. If we add "use_frameworks! :linkage => :static", we get "RCT_ENABLE_INSPECTOR needs to be set to fulfill RCT_REMOTE_PROFILE"
c. if we enable that in Podfile, we get "'RCTDevLoadingViewProtocol.h' file not found".

Please share the solution. seems use_frameworks is not working. if we remove that, Firebase is not working.

Our POD File is provided below.

@gaurav-vij
Copy link
Author

Podfile.pdf

@AsurNikul
Copy link

same issue here. Please solve this asap

@AsurNikul
Copy link

My pod file

def node_require(script)

Resolve script with node to allow for hoisting

require Pod::Executable.execute_command('node', ['-p',
"require.resolve(
'#{script}',
{paths: [process.argv[1]]},
)", dir]).strip
end

node_require('react-native/scripts/react_native_pods.rb')
node_require('react-native-permissions/scripts/setup.rb')

platform :ios, min_ios_version_supported
prepare_react_native_project!

use_frameworks! :linkage => :static
$RNFirebaseAsStaticFramework = true

setup_permissions([
'Camera', 'PhotoLibrary', 'PhotoLibraryAddOnly'
])

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

pod 'react-native-maps-generated', :path => '../node_modules/react-native-maps/react-native-maps-generated.podspec'
pod 'react-native-maps', :path => '../node_modules/react-native-maps'

target 'TravelTeacherPartner' do
config = use_native_modules!

use_react_native!(
:path => config[:reactNativePath],
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/..",
:hermes_enabled => true # ✅ Enable Hermes
)

post_install do |installer|
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
react_native_post_install(
installer,
config[:reactNativePath],
:mac_catalyst_enabled => false,
# :ccache_enabled => true
)
end
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants