How to reproduce:
Strictly follow formal document: Clone the repo, go to the Example/ folder and run: yarn install. Then run react-native run-ios "
Error message:
The following build commands failed:
CompileC build/Build/Intermediates.noindex/RNGestureHandler.build/Debug-iphonesimulator/RNGestureHandler.build/Objects-normal/x86_64/RNGestureHandlerButton.o RNGestureHandlerButton.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/Build/Intermediates.noindex/RNGestureHandler.build/Debug-iphonesimulator/RNGestureHandler.build/Objects-normal/x86_64/RNGestureHandlerEvents.o RNGestureHandlerEvents.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler
(2 failures)
❌ /Users/liang.wang/Documents/Project/react-native-gesture-handler/ios/RNGestureHandlerEvents.h:1:9: 'React/RCTEventDispatcher.h' file not found
#import <React/RCTEventDispatcher.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
▸ Compiling RNTapHandler.m
❌ /Users/liang.wang/Documents/Project/react-native-gesture-handler/ios/RNGestureHandlerEvents.h:1:9: 'React/RCTEventDispatcher.h' file not found
#import <React/RCTEventDispatcher.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Installing build/Build/Products/Debug-iphonesimulator/RNGestureHandler.app
An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2):
Failed to install the requested application
An application bundle was not found at the provided path.
Provide a valid path to the desired application bundle.
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/RNGestureHandler.app/Info.plist
Print: Entry, ":CFBundleIdentifier", Does Not Exist
Hi, @ikzjfr0
I followed you step and didn't manage to repro it. Frakly speaking, I do not normally use this command (react-native run-ios) as I got used to run it via Xcode. I strongly advise you do it also and "clean product" with cmd+shift+option+K
As I am not able to repro it, I decided to close the issue, but if you still face the problem, don't hesitate to write ot reopen the issue
I had the same problem
How to reproduce:
Strictly follow formal document: Clone the repo, go to the Example/ folder and run:yarn install. Then run react-native run-ios "Error message:
The following build commands failed: CompileC build/Build/Intermediates.noindex/RNGestureHandler.build/Debug-iphonesimulator/RNGestureHandler.build/Objects-normal/x86_64/RNGestureHandlerButton.o RNGestureHandlerButton.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler CompileC build/Build/Intermediates.noindex/RNGestureHandler.build/Debug-iphonesimulator/RNGestureHandler.build/Objects-normal/x86_64/RNGestureHandlerEvents.o RNGestureHandlerEvents.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler (2 failures) ❌ /Users/liang.wang/Documents/Project/react-native-gesture-handler/ios/RNGestureHandlerEvents.h:1:9: 'React/RCTEventDispatcher.h' file not found #import <React/RCTEventDispatcher.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ▸ Compiling RNTapHandler.m ❌ /Users/liang.wang/Documents/Project/react-native-gesture-handler/ios/RNGestureHandlerEvents.h:1:9: 'React/RCTEventDispatcher.h' file not found #import <React/RCTEventDispatcher.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ Installing build/Build/Products/Debug-iphonesimulator/RNGestureHandler.app An error was encountered processing the command (domain=NSPOSIXErrorDomain, code=2): Failed to install the requested application An application bundle was not found at the provided path. Provide a valid path to the desired application bundle. Print: Entry, ":CFBundleIdentifier", Does Not Exist Command failed: /usr/libexec/PlistBuddy -c Print:CFBundleIdentifier build/Build/Products/Debug-iphonesimulator/RNGestureHandler.app/Info.plist Print: Entry, ":CFBundleIdentifier", Does Not Exist
Have you solved it?
Same pb here. Running react-native 0.53.
I have no such file React/RCTEventDispatcher.h but I have React/Base/RCTEventDispatcher.h under node_modules/react-native
Also running into this issue.
"react-native": "0.57.8",
"react-native-gesture-handler": "^1.0.12"
Anyone solved this yet? Ran into this after some package name changes.
Anyone solved this yet?
Most helpful comment
Same pb here. Running react-native 0.53.
I have no such file React/RCTEventDispatcher.h but I have React/Base/RCTEventDispatcher.h under node_modules/react-native