question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

version@3.14.0 ios build error: RNSScreenViewEvent.h:2:9: 'React/RCTEventDispatcherProtocol.h' file not found

See original GitHub issue

Description

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

  1. 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:closed
  • Created a year ago
  • Reactions:1
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
kkafarcommented, Jul 1, 2022

Hi @cengit! I dived into it and discovered that React/RCTEventDispatcherProtocol.h header before react-native@0.64.x had different name: React/RCTEventDispatcher.h. This causes incompatibility with react-native-screens@3.14.0. Will have it fixed soon.

For now your solutions might be:

or

  • Downgrade version of react-native-screens to 3.13.1. If you don’t use newest react-native versions & don’t plan to play with new architecture - Fabric, then 3.13.1 is as good for you as 3.14.0

Let me know if it worked for you!

2reactions
noumantahircommented, Aug 18, 2022

Downgrade version of react-native-screens to 3.13.1. If you don’t use newest react-native versions & don’t plan to play with new architecture - Fabric, then 3.13.1 is as good for you as 3.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,

"react": "16.13.1",
"react-native": "0.63.4",
"react-native-screens": "3.13.1",
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found