This is a clean repository, and I get some problem.
Can anyone help me?
same
+1
+1
+1
Just in case this help anyone, my version of cocoapods was 1.1.1 and not 1.2.0, I had to uninstall cocoapods and reinstall it again:
@assitaliroma me too!
@assitaliroma do well
I get the error too in a brand new react-native init. I dont have any use of pod in the project.
same here trying to build an example project and get :
RCTSamplingProfilerPackagerMethod.mm:14:9: 'jschelpers/JavaScriptCore.h' file not found
Build failed
+1
Nope, cannot confirm your findings. I just included the Javascript.framework explicitly in build phases as you recommend but with no success as to the build still fails with the exact same error
+1
add JavaScriptCore.framework it work for me.
I fixed this in my project with a simple change.
See screenshot:
Just had to explicitly include libjschelpers.a to my build phases, under "Link Binary with Libraries"
@playma Have you solve the problem? I also have this problem and do't know how to deal with.
@armenr Tried your solution but no luck. Are you using swift or Objective-C? What is your Xcode version?
armenr solution worked for me.
I'm using RN 0.43.2, Xcode 8.3.1
These are the steps that I took:
cocoapods
1.1.1 ng
1.2.1 ok
@hrk-ys Confirm.
Cocoapods 1.1.1
not good, 1.2.0
OK
Any solution is working for me.
RN 0.42.3, Xcode 8.2.1
@assitaliroma it works for me, thanks
@assitaliroma thanks for your solution
Just upgraded from RN 0.44 to 0.45.0-rc.0, using CocoaPods, I got the jschelpers/JavaScriptCore.h
import error.
In case you get the same error, you now have to add BatchedBridge
in the React subspecs list in your Podfile.
See https://github.com/facebook/react-native/commit/5aca739cc25949eebc04a0309c2944f92b5b5391
You can also try CxxBridge
instead of BatchedBridge
but the shipped npm version doesn't yet contain the third-party-podspecs
folder with Folly.podspec
, GLog.podspec
and DoubleConversion.podspec
.
i have this problem , the version of cocoapods is 1.1.1 。i reinstall the cocoapods(1.2.1) and solve the problem
I was update to cocoapods version: 1.2.1. It still not working.
Still error with include jschelpers/JavaScriptCore.h
For those of you who still get error, try jeanregisser's method and include BatchedBridge
or CxxBridge
in pod React
@yanush I did not see the libjschelpers.a file!
@bosung90 It works for me! Thank you a lot!
@jeanregisser It works for me! Thank you a lot!
@jeanregisser It works for me! Thank you a lot!
Using a Podfile
based on the suggested https://github.com/mhorowitz/native-navigation-boilerplate/blob/master/ios/Podfile. With pod install
I got
Analyzing dependencies
Fetching podspec for `DoubleConversion` from `../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec`
Fetching podspec for `Folly` from `../node_modules/react-native/third-party-podspecs/Folly.podspec`
Fetching podspec for `GLog` from `../node_modules/react-native/third-party-podspecs/GLog.podspec`
Fetching podspec for `React` from `../node_modules/react-native`
Fetching podspec for `Yoga` from `../node_modules/react-native/ReactCommon/yoga`
Downloading dependencies
Installing DoubleConversion (1.1.5)
Using Firebase (4.0.2)
Using FirebaseAnalytics (4.0.1)
Using FirebaseCore (4.0.2)
Using FirebaseInstanceID (2.0.0)
Using FirebaseMessaging (2.0.0)
Installing Folly (2016.09.26.00)
Installing GLog (0.3.4)
Installing GoogleMaps 2.3.0 (was 2.1.1)
Using GoogleToolboxForMac (2.1.1)
Using Protobuf (3.3.0)
Installing React 0.45.1 (was 0.45.1)
Using Yoga (0.45.1.React)
Installing boost (1.59.0)
[!] Error installing boost
[!] /usr/bin/tar xfz /var/folders/_g/jhvwjlrn4q16j_npb_r5z90m0000gn/T/d20170619-49969-1fhjcem/file.tgz -C /var/folders/_g/jhvwjlrn4q16j_npb_r5z90m0000gn/T/d20170619-49969-1fhjcem
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
My Podfile
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '8.0'
target 'myproject' do
use_frameworks!
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
# Third party deps
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'GLog', :podspec => '../node_modules/react-native/third-party-podspecs/GLog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
pod 'React', path: '../node_modules/react-native', :subspecs => [
'Core',
'RCTActionSheet',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
# 'CxxBridge',
# 'BatchedBridge',
'DevSupport'
]
pod 'GoogleMaps' # <~~ remove this line if you do not want to support GoogleMaps on iOS
# installing Firebase
pod 'Firebase/Messaging'
pod 'Firebase/Core'
end
the problem seems to be the redirect on the download page which is not handled correctly. Thing is I have seen boost is depended by Folly but I don't know why it's getting this _old_ version
@bosung90 it works for me! Thank you a lot!
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'DevSupport',
'RCTText',
'RCTNetwork',
'RCTWebSocket',
'BatchedBridge',# 加上这个
# 在这里继续添加你所需要的模块
]
@ BatchedBridge this is worked to me
can't find libjschelpers.a
BatchedBridge
is worked to me
@jaimeagudo i am facing same problem here is my podfile
`# Uncomment the next line to define a global platform for your project
target 'FINGERBOWL' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for FINGERBOWL
pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga/Yoga.podspec'
pod 'React', path: '../node_modules/react-native', :subspecs => [
'Core',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
'RCTWebSocket',
'DevSupport'
]
pod 'GoogleMaps' # <~~ remove this line if you do not want to support GoogleMaps on iOS
pod 'react-native-maps', :path => '../node_modules/react-native-maps'
pod 'react-native-google-maps', :path => '../node_modules/react-native-maps'
target 'FINGERBOWLTests' do
inherit! :search_paths
# Pods for testing
end
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "react-native-google-maps"
target.build_configurations.each do |config|
config.build_settings['CLANG_ENABLE_MODULES'] = 'No'
end
end
end
end
target 'FINGERBOWL-tvOS' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
# Pods for FINGERBOWL-tvOS
target 'FINGERBOWL-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
`
still i am getting the error like this schelpers/JavaScriptCore.h file not found
After adding 'BatchedBridge', I end up with 'Linker command failed with exit code 1 (use -v to see invocation)'
@sajidcosmo Delete Derived data folder
It didn't help man. Any other solution?
@sajidcosmo That could be CocoaPods' problem!
@sajidcosmo Please do pod update
to get latest libs version.
Do remove existing your_project.xcworkspace, Podfile.lock and Pods folder,
then do pod install
again
PS: (inside you ios folder ;))
@sajidcosmo I am having the same issue right now. Were you able to solve that linking issue?
The issue has disappeared on its own without giving me a clue.
Faced same issue, I did fix by removing derived data and unnecessary linked framework under build phases.
to remove dervide data - click on Xcode->Prefrences->Location->Derived Data->Delete All existing files. Good luck!
BatchedBridge is worked to me in podfile @shaikhussian thanks
after update Cocoapods 1.1.1 to 1.2.0
If anyone solves this issue, kindly replies.
anyone solves ? all solution dosent work still
add BatchedBridge
solved the problem.
for those who sill have this issue, here is the checklist
For everyone responding about cocoa pods: this is NOT a cocoa-pods specific problem. It may turn up with cocoa pods, and updating magic with cocoapods may help you, but it ALSO occurs in projects that do not use cocoa pods in any way.
The issue is not fixed/closed/resolved by fixes that address only cocoa pods solutions.
I have this issue in my React Native project, which involves zero use of cocoa pods anywhere. Others have said the same.
@billpatterson Have you found a resolution? I'm having cocoapodless problems as well.
Most helpful comment
Just upgraded from RN 0.44 to 0.45.0-rc.0, using CocoaPods, I got the
jschelpers/JavaScriptCore.h
import error.In case you get the same error, you now have to add
BatchedBridge
in the React subspecs list in your Podfile.See https://github.com/facebook/react-native/commit/5aca739cc25949eebc04a0309c2944f92b5b5391
You can also try
CxxBridge
instead ofBatchedBridge
but the shipped npm version doesn't yet contain thethird-party-podspecs
folder withFolly.podspec
,GLog.podspec
andDoubleConversion.podspec
.