ReactNativeNavigation.h file not found after updating react native version
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 38/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- react-native
- Lĩnh vực
- build-system, mobile
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi build iOS và kiểm tra import trong AppDelegate.m cùng với cấu hình Podfile. So sánh các điểm tích hợp của React Native 0.74.3 và 0.78 được đề cập trong báo cáo; hoàn thành khi header ReactNativeNavigation được resolve và ứng dụng build thành công cho iOS.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What happened?
I've been tasked and I am working on updating the react native version of my application. After updating it all and making sure there are no other errors, when trying to build the app for iOS I am getting 'ReactNativeNavigation/ReactNativeNavigation.h' file not found in AppDelegate.m
I've looked around the github issues here and tried changing the podfile as suggested, but to no avail.
Heres the podfile:
# 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
#Use it to require both react-native's and this package's scripts:
node_require('react-native/scripts/react_native_pods.rb')
node_require('react-native-permissions/scripts/setup.rb')
platform :ios, '18.0'
prepare_react_native_project!
setup_permissions([
'AppTrackingTransparency',
# 'Bluetooth',
# 'Calendars',
# 'CalendarsWriteOnly',
'Camera',
# 'Contacts',
# 'FaceID',
# 'LocationAccuracy',
# 'LocationAlways',
# 'LocationWhenInUse',
'MediaLibrary',
'Microphone',
# 'Motion',
'Notifications',
'PhotoLibrary',
# 'PhotoLibraryAddOnly',
# 'Reminders',
# 'Siri',
# 'SpeechRecognition',
# 'StoreKit',
])
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
static_frameworks = [
'FirebaseCore',
'FirebaseCoreExtension',
'GoogleUtilities',
'FirebaseCoreInternal',
'FirebaseInstallations',
'GoogleDataTransport',
'FirebaseFirestoreInternal',
'FirebaseMessagingInternal',
'FirebaseAuth',
]
pre_install do |installer|
installer.pod_targets.each do |pod|
if static_frameworks.include?(pod.name)
puts "Configuring #{pod.name} as static framework"
def pod.build_type
Pod::BuildType.new(:linkage => :static, :packaging => :framework)
end
end
end
end
target 'myapp' do
config = use_native_modules!
$RNFirebaseAsStaticFramework = true
pod 'GoogleAnalytics'
pod 'FirebaseDatabase', :modular_headers => true
pod 'FirebaseABTesting', :modular_headers => true
pod 'FirebaseAppCheckInterop', :modular_headers => true
pod 'leveldb-library', :modular_headers => true
pod 'nanopb', :modular_headers => true
config = use_native_modules!
use_react_native!(
:path => config[:reactNativePath],
:hermes_enabled => true,
# An absolute path to your application root.
:app_path => "#{Pod::Config.instance.installation_root}/.."
)
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
What was the expected behaviour?
That the app correctly builds for iOS.
Was it tested on latest react-native-navigation?
- I have tested this issue on the latest react-native-navigation release and it still reproduces.
Help us reproduce this issue!
Started happening after updating from react-native 0.74.3 to 0.78
In what environment did this happen?
React Native Navigation version: 8.7.5
React Native version: 0.78
Has Fabric (React Native's new rendering system) enabled: (yes/no) No
Node version: 18.20.8
Device model: iPhone 17 Pro (emulator)
iOS version: 26.2
- Ngôn ngữ chính
- MDX
- Star
- 13.2k
- Fork
- 2.6k
- Merge trung bình
- 2 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 6
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của wix/react-native-navigation
-
needs triage triage: documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
wix/react-native-navigation#8343 · 1 bình luận ·
-
[Fix] searchBar `focus:` true ignored on mergeOptions when searchController already existsCó thể đã có người làm @IsaacIsrael đã nhận 160 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
wix/react-native-navigation#8318 ·
-
Build Failed with RN 0.87Đang mởneeds triage type: accepted/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
wix/react-native-navigation#8365 · 2 bình luận ·
-
`showOverlay` creates a scene-less `UIWindow`, so overlays never appear under UIScene lifecycleCó thể đã có người làm @yedidyak đã nhận 5 ngày trước. Đang mởplatform: iOS type: accepted/bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 68/100
wix/react-native-navigation#8345 · 2 bình luận · 2 reaction ·
-
platform: iOS type: accepted/bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
wix/react-native-navigation#8340 ·
Tất cả issue của wix/react-native-navigation
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
NousResearch/hermes-agent#151165 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
NVIDIA windows
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
web-infra-dev/rslib#2014 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add CMake export targetĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
tree-sitter/tree-sitter#6111 ·
Maintainer thường phản hồi trong vòng 1 ngày