version@3.14.0 ios build error: RNSScreenViewEvent.h:2:9: 'React/RCTEventDispatcherProtocol.h' file not found
See original GitHub issueDescription
version@3.14.0 ios build error:
❌ /Users/runner/work/1/s/node_modules/react-native-screens/ios/RNSScreenViewEvent.h:2:9: 'React/RCTEventDispatcherProtocol.h' file not found
#import <React/RCTEventDispatcherProtocol.h>
^
▸ Compiling RNSScreenStackHeaderSubview.mm
Skipping duplicate build file in Copy Bundle Resources build phase: /Users/runner/work/1/s/node_modules/performance_frontend/src/font/Montserrat-SemiBold.ttf (in target 'eBriefcase' from project 'eBriefcase')
** ARCHIVE FAILED **
The following build commands failed:
CompileC /Users/runner/Library/Developer/Xcode/DerivedData/eBriefcase-fpyythrpiwdiswbagvblncwborcj/Build/Intermediates.noindex/ArchiveIntermediates/eBriefcase/IntermediateBuildFilesPath/Pods.build/Release-iphoneos/RNScreens.build/Objects-normal/arm64/RNSScreenViewEvent.o /Users/runner/work/1/s/node_modules/react-native-screens/ios/RNSScreenViewEvent.mm normal arm64 objective-c++ com.apple.compilers.llvm.clang.1_0.compiler (in target 'RNScreens' from project 'Pods')
(1 failure)
I guess this may be library version not matched, but don’t know which library. can you please give some advice.
Screenshots
Steps To Reproduce
- use react-native-screens version@3.14.0
Platform
- iOS
Architecture
- Paper
- Fabric
Workflow
- Managed workflow
- Bare workflow
Package versions
package | version |
---|---|
react-native | 0.63 |
@react-navigation/native | 3.8.4 |
@react-navigation/native-stack | 5.0.4 |
react-native-screens | 3.14.0 |
react-native-safe-area-context | 3.4.1 |
react-native-gesture-handler | 1.10.3 |
react-native-reanimated | 1.13.4 |
Issue Analytics
- State:
- Created a year ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top Results From Across the Web
This operation can fail if the version of the OS on the device ...
I have Xcode version 13.2.1 and when I try to run the app on iPhone I get this error: ... On 9/13/22 updated...
Read more >Integrating existing app iOS 'React/RCTEventDispatcher.h ...
4- open Xcode and go to Menu -> Product -> Clean Build Folder and then run the app in Xcode. 5- link manually...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi @cengit! I dived into it and discovered that
React/RCTEventDispatcherProtocol.h
header beforereact-native@0.64.x
had different name:React/RCTEventDispatcher.h
. This causes incompatibility withreact-native-screens@3.14.0
. Will have it fixed soon.For now your solutions might be:
react-native
to at least0.64.x
(if you have trouble updating, take advantage of react-native upgrade helper).or
react-native-screens
to3.13.1
. If you don’t use newest react-native versions & don’t plan to play with new architecture - Fabric, then3.13.1
is as good for you as3.14.0
Let me know if it worked for you!
Using hardcoded 3.13.1 version worked well for my case as I am using rn 0.63,