I am have quite the issue in diagnosing the cause of why my iOS react native build is failing. After diagnosing a few other errors, the issue im facing right now is that no matter what i try, the error React/RCTEventEmitter.h not found plagues me and my app. This is just a basic react-native app created by react-native init.
I tried just about every combination of the following below:
- changing the "Header Search paths"
- Deleting the xcode/DeriveData folder created
- "Deintegrating" pods
- pod install
- draging/dropping react-native-code-push xcodeproject/library directly to my app in xbox in Libraries
- xcode clean
- react-native link
- react-native link code-push
- removing codepush from Podfile
- removing the ios/Pods folder
- removing the ios/Podfile.lock file
- building the app manually with xcodebuild (same error)
/usr/bin/xcodebuild -sdk iphoneos -workspace ios/myApp.xcworkspace -scheme myApp archive -archivePath myApp.xcarchive -UseModernBuildSystem=NO CODE_SIGNING_ALLOWED=NO
My react info is as follows(its a macOS VM):
System:
OS: macOS High Sierra 10.13.1
CPU: (4) x64 AMD Ryzen 7 1700X Eight-Core Processor
Memory: 102.70 MB / 4.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.11.0 - ~/.nvm/versions/node/v11.11.0/bin/node
Yarn: 1.13.0 - ~/.nvm/versions/node/v11.11.0/bin/yarn
npm: 6.7.0 - ~/.nvm/versions/node/v11.11.0/bin/npm
SDKs:
iOS SDK:
Platforms: iOS 11.2, macOS 10.13, tvOS 11.2, watchOS 4.2
IDEs:
Xcode: 9.2/9C40b - /usr/bin/xcodebuild
npmPackages:
react: 16.4.1 => 16.4.1
react-native: 0.57.0-rc.0 => 0.57.0-rc.0
npmGlobalPackages:
react-native-cli: 2.0.1
react-native: 0.58.6
My Podfile is:
target 'myApp' do
# Pods for AppCenter
pod 'AppCenter/Crashes', '~> 1.13.0'
pod 'AppCenter/Analytics', '~> 1.13.0'
pod 'AppCenterReactNativeShared', '~> 1.12.0'
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for myApp
platform :ios, '9.0'
pod 'CodePush', :path => '../node_modules/react-native-code-push'
end
The exact error im facing is:
/Users/administrator/Desktop/BUILD/myApp/node_modules/react-native-code-push/ios/CodePush/CodePush.h:6:9: fatal error: 'React/RCTEventEmitter.h' file not found
#import "React/RCTEventEmitter.h" // Required when used as a Pod in a Swift project
Although im pretty new to iOS development, it seems like the things i did above should fix the issue but it did not. The error seems pretty obvious but i dont know what else to do.
I know there is many articles on this issue but most the articles/issues i seen where resolvable but for some reason, the specific case im facing seems extraordinarily. I was wondering if anyone has any other tips or faced a issue like this? Any help is massively appreciated!
from React/RCTEventEmitter.h not found with codepush and cocoapods
No comments:
Post a Comment