platform :ios, '9.0'
target 'MyCoolProj' do
# Uncomment the next line if you're using Swift or would like to use dynamic frameworks
# use_frameworks!
rn_path = '../node_modules/react-native'
pod 'yoga', path: "#{rn_path}/ReactCommon/yoga"
pod 'React', path: rn_path, subspecs: [
'Core',
'CxxBridge',
'DevSupport',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket',
]
pod 'Folly', :podspec => "#{rn_path}/third-party-podspecs/Folly.podspec"
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
end
Hello there đ this issue seems to be related to your experience upgrading between versions. We know this has been a long lasting pain for the community so starting v0.59 we have introduced a new flow via the new CLI.
To upgrade to that version, you may still need to do some manual steps â we suggest you use rn-diff-repo to accomplish this.
Given that this is not strictly a bug with the library itself Iâll close this, but if someone can create a repro that has this issue with a freshly created react-native init project we can reopen it and discuss it further đ¤
I had this issue and it seemed to resolve when I added âCxxBridgeâ to the React subspecs. I then removed my Podfile.lock and Pods folder and pod installed. I hope maybe this helps?
Do confirm a fix without the post install script by adding CxxBridge to subspecs.
Using RN0.59.8.
target 'app' do
# use_frameworks!
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge'
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
# Third party deps podspec link
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
end
Sorry if this is a bit messy but this is my react native pod setup and it seems to be building successfully.
# Pods for React
pod 'React', :path => '../node_modules/react-native', subspecs: [
'Core',
'CxxBridge',
'DevSupport',
'RCTText',
'RCTNetwork',
'RCTWebSocket',
'RCTAnimation',
'RCTActionSheet',
'RCTBlob',
'RCTCameraRoll',
'RCTGeolocation',
'RCTImage',
'RCTPushNotification',
'RCTSettings',
'RCTTest',
'RCTVibration',
'RCTLinkingIOS'
]
# Explicitly include Yoga if you are using RN >= 0.42.0
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
# Third party deps podspec link
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'
I resolved (on both 0.59.2 and 0.59.3) my removing from the Podfile:
pod âDoubleConversionâ, :podspec => â#{rn_path}/third-party-podspecs/DoubleConversion.podspecâ
pod âglogâ, :podspec => â#{rn_path}/third-party-podspecs/glog.podspecâ
Now I have only:
rn_path = ââŚ/node_modules/react-nativeâ
pod âyogaâ, path: â#{rn_path}/ReactCommon/yogaâ
pod âReactâ, path: rn_path, subspecs: [
âCoreâ,
âCxxBridgeâ,
âDevSupportâ,
âRCTActionSheetâ,
âRCTAnimationâ,
âRCTGeolocationâ,
âRCTImageâ,
âRCTLinkingIOSâ,
âRCTNetworkâ,
âRCTSettingsâ,
âRCTTextâ,
âRCTVibrationâ,
âRCTWebSocketâ,
]
pod âFollyâ, :podspec => â#{rn_path}/third-party-podspecs/Folly.podspecâ
So far using the workaround. This fixed the podfile issue on react native 0.59.8 allowing me to consume @mapbox/react-native-mapbox-gl
I am curious about the difference between
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
and
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
if target.name == "yoga"
target.remove_from_project
end
end
end
Should yoga be included for the workaround?
Also after the workaround I am getting an error regarding duplicate UUIDs in the xcodeproject:
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening goingTubeApp.xcworkspace
Also using the @amphithere solution is not working.
PODFILE
platform :ios, '9.0'
target 'gtApp' do
pod 'React', :path => '../node_modules/react-native', subspecs: [
'Core',
'CxxBridge',
'DevSupport',
'RCTText',
'RCTNetwork',
'RCTWebSocket',
'RCTAnimation',
'RCTActionSheet',
'RCTBlob',
'RCTCameraRoll',
'RCTGeolocation',
'RCTImage',
'RCTPushNotification',
'RCTSettings',
'RCTTest',
'RCTVibration',
'RCTLinkingIOS'
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
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 'Firebase/Core', '~> 5.20.1'
pod 'Firebase/Firestore', '~> 5.20.1'
pod 'Firebase/Messaging', '~> 5.20.1'
pod 'Firebase/Analytics', '~> 5.20.1'
pod 'GoogleAppMeasurement', '~> 5.8.0'
pod 'GoogleSignIn'
pod 'Fabric', '~> 1.9.0'
pod 'Crashlytics', '~> 3.12.0'
target 'goingTubeApp-tvOSTests' do
inherit! :search_paths
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
end
target 'goingTubeAppTests' do
inherit! :search_paths
end
post_install do |installer|
installer.pods_project.targets.each do |target|
if target.name == "React"
target.remove_from_project
end
end
end
end
Iâve already updated my Xcode, to 10.2.1 and now itâs not working, my last RN was 0.57.7, so I need to fix this problem.
The problem starts when Iâve installed Crashlytics on IOS because on Android is on production.
pod 'Fabric', '~> 1.9.0'
pod 'Crashlytics', '~> 3.12.0'
This is my current podfile
Adding the post_install is a confirmed workaround:
Leaving the issue open until we resolve the root cause (or update the doc to recommend this workaround đ ).
Thanks @gabrieletondi !
Hello there đ this issue seems to be related to your experience upgrading between versions. We know this has been a long lasting pain for the community so starting v0.59 we have introduced a new flow via the new CLI.
To upgrade to that version, you may still need to do some manual steps â we suggest you use rn-diff-repo to accomplish this.
Given that this is not strictly a bug with the library itself Iâll close this, but if someone can create a repro that has this issue with a freshly created
react-native init
project we can reopen it and discuss it further đ¤same problem still goin for me. âfolly/Portability.hâ file not found
Encountered when I upgraded to 0.59.3
This worked! Thanks @gabrieletondi
I had this issue and it seemed to resolve when I added âCxxBridgeâ to the React subspecs. I then removed my Podfile.lock and Pods folder and pod installed. I hope maybe this helps?
Do confirm a fix without the post install script by adding CxxBridge to subspecs. Using RN0.59.8.
Sorry if this is a bit messy but this is my react native pod setup and it seems to be building successfully.
Thatâs interesting. Iâve got this working without the post_install. I had to add it because archiving was not working⌠đŽ
I resolved (on both 0.59.2 and 0.59.3) my removing from the Podfile:
pod âDoubleConversionâ, :podspec => â#{rn_path}/third-party-podspecs/DoubleConversion.podspecâ pod âglogâ, :podspec => â#{rn_path}/third-party-podspecs/glog.podspecâ
Now I have only:
rn_path = ââŚ/node_modules/react-nativeâ
pod âyogaâ, path: â#{rn_path}/ReactCommon/yogaâ pod âReactâ, path: rn_path, subspecs: [ âCoreâ, âCxxBridgeâ, âDevSupportâ, âRCTActionSheetâ, âRCTAnimationâ, âRCTGeolocationâ, âRCTImageâ, âRCTLinkingIOSâ, âRCTNetworkâ, âRCTSettingsâ, âRCTTextâ, âRCTVibrationâ, âRCTWebSocketâ, ] pod âFollyâ, :podspec => â#{rn_path}/third-party-podspecs/Folly.podspecâ
and my other custom dependencies.
So far using the workaround. This fixed the podfile issue on react native 0.59.8 allowing me to consume @mapbox/react-native-mapbox-gl
I am curious about the difference between
and
Should yoga be included for the workaround?
Also after the workaround I am getting an error regarding duplicate UUIDs in the xcodeproject:
Is this anything to be worried about? The projects runs perfectly on android and ios, but just want to take precautions going forward.
Worked for me like this:
In Xcode -> File -> Workspaces settings -> Build System changed to âLegacy Build Systemâ (both, shared and per-user)
and following what they have already put:
Hey guys, I got the same issue, but Iâm not sure whatâs wrong, Iâm using RN + RNFirebase.
Iâve already tried the @gabrieletondi solution and is not working using RN 0.59.3 or 0.59.6 the same result.
this is my config:
When run
react-native run-ios
this is the output.Also using the @amphithere solution is not working.
PODFILE
Iâve already updated my Xcode, to 10.2.1 and now itâs not working, my last RN was 0.57.7, so I need to fix this problem.
The problem starts when Iâve installed Crashlytics on IOS because on Android is on production.
Please let me know if anyone knows what can I do?