Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'folly/Portability.h' file not found #24192

Closed
ankitgauravapporio opened this issue Mar 29, 2019 · 35 comments
Closed

'folly/Portability.h' file not found #24192

ankitgauravapporio opened this issue Mar 29, 2019 · 35 comments
Labels
Bug Priority: Mid Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@ankitgauravapporio
Copy link

Screenshot 2019-03-29 at 11 54 51 AM

🐛 Bug Report

To Reproduce

Expected Behavior

Code Example

Environment

@react-native-bot
Copy link
Collaborator

Can you run react-native info and edit your issue to include these results under the Environment section?

If you believe this information is irrelevant to the reported issue, you may write `[skip envinfo]` alongside an explanation in your Environment: section.

@gunduzcihat
Copy link

same problem still goin for me.
'folly/Portability.h' file not found

@khachik
Copy link

khachik commented Mar 31, 2019

  React Native Environment Info:
    System:
      OS: macOS Sierra 10.12.6
      CPU: (4) x64 Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz
      Memory: 162.34 MB / 8.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 8.12.0 - ~/.nvm/versions/node/v8.12.0/bin/node
      npm: 6.4.1 - ~/.nvm/versions/node/v8.12.0/bin/npm
    SDKs:
      iOS SDK:
        Platforms: iOS 11.2, macOS 10.13, tvOS 11.2, watchOS 4.2
      Android SDK:
        API Levels: 28
        Build Tools: 28.0.3
        System Images: android-23 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.3 AI-182.5107.16.33.5264788
      Xcode: 9.2/9C40b - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3 
      react-native: 0.59.1 => 0.59.1 
    npmGlobalPackages:
      react-native-cli: 2.0.1```
The same problem. 

@buicong20
Copy link

buicong20 commented Mar 31, 2019

React Native Environment Info:
System:
OS: macOS 10.14.3
CPU: (8) x64 Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz
Memory: 3.37 GB / 16.00 GB
Shell: 3.2.57 - /bin/bash
Binaries:
Node: 11.12.0 - /usr/local/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.7.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
Android SDK:
API Levels: 22, 23, 25, 26, 27, 28
Build Tools: 27.0.3, 28.0.0, 28.0.2, 28.0.3
System Images: android-27 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5314842
Xcode: 10.1/10B61 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.3 => 16.8.3
react-native: 0.59.2 => 0.59.2
npmGlobalPackages:
react-native-cli: 2.0.1

@racingDeveloper
Copy link

racingDeveloper commented Apr 1, 2019

same here:

React Native Environment Info:
System:
OS: macOS 10.14.4
CPU: (8) x64 Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz
Memory: 45.75 MB / 16.00 GB
Shell: 5.3 - /bin/zsh
Binaries:
Node: 11.13.0 - /usr/local/bin/node
Yarn: 1.15.2 - /usr/local/bin/yarn
npm: 6.7.0 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
Android SDK:
API Levels: 23, 25, 26, 27
Build Tools: 23.0.1, 25.0.2, 26.0.1, 26.0.2, 27.0.3, 28.0.3
System Images: android-22 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-28 | Google APIs Intel x86 Atom, android-28 | Google Play Intel x86 Atom
IDEs:
Android Studio: 3.3 AI-182.5107.16.33.5199772
Xcode: 10.2/10E125 - /usr/bin/xcodebuild
npmPackages:
react: 16.8.6 => 16.8.6
react-native: 0.59.2 => 0.59.2
npmGlobalPackages:
create-react-native-app: 2.0.2
react-native-cli: 2.0.1
react-native: 0.55.2

@kelset
Copy link
Contributor

kelset commented Apr 1, 2019

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 🤗

@kelset kelset closed this as completed Apr 1, 2019
@khachik
Copy link

khachik commented Apr 1, 2019 via email

@gunduzcihat
Copy link

I changed react-native to previous version and this error went away.

@racingDeveloper
Copy link

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.

@khachik
Copy link

khachik commented Apr 2, 2019

@GabrieleTondi I don't have any of those. Added podspec for Folly, didn't help. Tried react-native 0.59.2, 0.59.3, no luck.

@bartolkaruza
Copy link

I have a reliable Repro for this, it is not (only?) related to upgrading:

https://github.com/bartolkaruza/issue-24192-repro

Steps:

  1. react-native init
  2. Add Podfile & pod install
  3. Open workspace in Xcode & build
    "react": "16.8.3",
    "react-native": "0.59.3",

Podfile

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'test' do
  # Uncomment the next line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Flexbox Layout Manager Used By React Native
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'

  # React Native
  pod 'React', path: '../node_modules/react-native', subspecs: [
    # Comment out any unneeded subspecs to reduce bundle size.
    'Core',
    'DevSupport',
    'RCTActionSheet',
    'RCTAnimation',
    'RCTBlob',
    'RCTCameraRoll',
    'RCTGeolocation',
    'RCTImage',
    'RCTNetwork',
    'RCTPushNotification',
    'RCTSettings',
    'RCTTest',
    'RCTText',
    'RCTVibration',
    'RCTWebSocket',
    'RCTLinkingIOS'
  ]

end

Adding or removing this section in the Podfile had no effect

# 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'

@racingDeveloper
Copy link

This is my current podfile

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

@bartolkaruza
Copy link

Adding the post_install is a confirmed workaround:

post_install do |installer|
    installer.pods_project.targets.each do |target|
      if target.name == "React"
        target.remove_from_project
      end
    end
  end

Leaving the issue open until we resolve the root cause (or update the doc to recommend this workaround 😄 ).

Thanks @GabrieleTondi !

@racingDeveloper
Copy link

That's interesting. I've got this working without the post_install.
I had to add it because archiving was not working... 😮

@smol-honk
Copy link

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?

@khachik
Copy link

khachik commented Apr 4, 2019

@amphithere when I do it, it starts complaining about a missing "folly" pod.

@smol-honk
Copy link

smol-honk commented Apr 4, 2019

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'

@khachik
Copy link

khachik commented Apr 5, 2019

Thanks @amphithere, will try it if encounter this again. For now, just confirming that the solution by @GabrieleTondi worked for me as well.
Thanks!

@issacnitin
Copy link

issacnitin commented Apr 9, 2019

Encountered when I upgraded to 0.59.3

 post_install do |installer|
    installer.pods_project.targets.each do |target|
      if target.name == "React"
        target.remove_from_project
      end
    end
  end

This worked! Thanks @GabrieleTondi

@dokutoshi
Copy link

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?

I was able to eliminate the React post install script after adding the CXXBridge to the subspec.

Good find @amphithere

If others are looking for a solution to the duplicate UUID messages as a consequence of the post install script removing React, remove the post install script and CXXBridge to the subspec.

[!] [Xcodeproj] Generated duplicate UUIDs:

XCBuildConfiguration --
XCBuildConfiguration --
XCBuildConfiguration --
PBXBuildFile --
PBXBuildFile --
PBXBuildFile --

@cristianPerez
Copy link

cristianPerez commented Apr 24, 2019

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:

    System:
      OS: macOS 10.14.4
      CPU: (4) x64 Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz
      Memory: 165.95 MB / 16.00 GB
      Shell: 3.2.57 - /bin/bash
    Binaries:
      Node: 8.15.0 - ~/.nvm/versions/node/v8.15.0/bin/node
      Yarn: 1.13.0 - ~/.nvm/versions/node/v8.15.0/bin/yarn
      npm: 6.4.1 - ~/.nvm/versions/node/v8.15.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
      Android SDK:
        API Levels: 22, 24, 25, 26, 27, 28
        Build Tools: 25.0.0, 27.0.3, 28.0.2, 28.0.3
        System Images: android-22 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-28 | Google APIs Intel x86 Atom
    IDEs:
      Android Studio: 3.2 AI-181.5540.7.32.5056338
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react: ^16.8.6 => 16.8.6 
      react-native: ^0.59.3 => 0.59.3 
    npmGlobalPackages:
      react-native-cli: 2.0.1

When run react-native run-ios this is the output.

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' 

Please let me know if anyone knows what can I do?

@smol-honk
Copy link

@cristianPerez I had an issue with iOS too when I upgraded to 0.59.3 and I essentially had to completely regenerate my iOS project by using the react-native eject command.

It's not very fun, but after doing that my project worked well with pods. I'm currently using React Native Firebase and it's running with Crashlytics. Here's my podfile just in case that helps.

# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'KidengaRN' do
  # Comment the next line if you don't want to use dynamic frameworks
  # use_frameworks!
   # Your 'node_modules' directory is probably in the root of your project,
  # but if not, adjust the `:path` accordingly
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'CxxBridge', # Include this for RN >= 0.47
    'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
    'RCTText',
    'RCTNetwork',
    'RCTWebSocket', # Needed for debugging
    'RCTAnimation', # Needed for FlatList and animations running on native UI thread
    # Add any other subspecs you want to use in your project
    'RCTBlob',
    'RCTGeolocation',
    'RCTImage',
    'RCTPushNotification',
    'RCTVibration',
    'RCTSettings'
  ]
  # 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'


  # Pods for KidengaRN

  pod 'Firebase/Core', '~> 5.15.0'
  pod 'Firebase/Auth', '~> 5.15.0'
  pod 'Firebase/Firestore', '~> 5.15.0'
  pod 'Firebase/Functions', '~> 5.15.0'
  pod 'Firebase/Messaging', '~> 5.15.0'
  pod 'Firebase/DynamicLinks', '~> 5.15.0'
  pod 'Firebase/RemoteConfig', '~> 5.15.0'
  pod 'Fabric', '~> 1.7.13'
  pod 'Crashlytics', '~> 3.10.7'
  pod 'Firebase/Performance', '~> 5.15.0'

  pod 'FBSDKCoreKit',  '~> 4.42.0'
  pod 'FBSDKLoginKit',  '~> 4.42.0'
  pod 'FBSDKShareKit' , '~> 4.42.0'
  pod 'react-native-fbsdk', :path => '../node_modules/react-native-fbsdk'

  pod 'RNGoogleSignin', :path => '../node_modules/react-native-google-signin'


  target 'KidengaRNTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

target 'KidengaRN-tvOS' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  # Pods for KidengaRN-tvOS

  target 'KidengaRN-tvOSTests' do
    inherit! :search_paths
    # Pods for testing
  end

end

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

@SwiftyWang
Copy link

Adding the post_install is a confirmed workaround:

post_install do |installer|
    installer.pods_project.targets.each do |target|
      if target.name == "React"
        target.remove_from_project
      end
    end
  end

Leaving the issue open until we resolve the root cause (or update the doc to recommend this workaround 😄 ).

Thanks @GabrieleTondi !

Still waiting for an official solution.

@KumariShalini
Copy link

KumariShalini commented Apr 30, 2019

i have cleaned by :-
watchman watch-del-all && rm -rf ~/.rncache/* && rm -rf /tmp/metro-bundler-cache-* && rm -rf /tmp/haste-map-react-native-packager-* && rm -rf node_modules/ && npm install

still i am getting error in xcode 10 'folly/Portability.h' file not found, also cleaned the folder in xcode...

can anyone help for this...? thanx

@santiblanko
Copy link

same error here :( in iOS.

@marlosirapuan
Copy link

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:

  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"  
  
  # Project libs
  # pod 'RNCAsyncStorage', path: '../node_modules/@react-native-community/async-storage'

  post_install do |installer|
    installer.pods_project.targets.each do |target|
      if target.name == "React"
        target.remove_from_project
      end
    end
  end  

@grkml
Copy link

grkml commented May 18, 2019

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:

[!] [Xcodeproj] Generated duplicate UUIDs:

XCBuildConfiguration -- 
XCBuildConfiguration -- 
PBXBuildFile -- 
PBXBuildFile -- 
PBXBuildFile -- 
PBXBuildFile -- 

Is this anything to be worried about?
The projects runs perfectly on android and ios, but just want to take precautions going forward.

@hopewise
Copy link

In my case the problem occurred when I tried to link @react-native-community/async-storage in Podfile it was installing react 0.11.0 version, then I tried to keep the current version of react by:

  pod 'React', :path => '../node_modules/react-native'
  pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
  pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'

and that was the start of the issue, wasted two days.

I've deleted Pods folder and pod install
and
rm -rf node_modules
npm start -- --reset-cache

and then I can work again.. for the meantime, I decided not to use that library

@mhadam
Copy link

mhadam commented May 22, 2019

I found these answers only worked for me if I enabled the legacy build system.
After that I just needed the post_install bit for React.

@mi-mazouz
Copy link

I tried all of the solutions mentioned here but still not working for me

@alanfagner
Copy link

me too

@ruslanzharkov
Copy link

This is my current podfile

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

Awesome! This helped me, thanks a lot!

@yuanfux
Copy link

yuanfux commented Jun 21, 2019

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

@stale
Copy link

stale bot commented Oct 22, 2019

Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions.

@stale stale bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label Oct 22, 2019
@stale
Copy link

stale bot commented Oct 29, 2019

Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information.

@stale stale bot closed this as completed Oct 29, 2019
@facebook facebook locked as resolved and limited conversation to collaborators Oct 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug Priority: Mid Stale There has been a lack of activity on this issue and it may be closed soon.
Projects
None yet
Development

No branches or pull requests