'folly/Portability.h' file not found

See original GitHub issue

Screenshot 2019-03-29 at 11 54 51 AM

๐Ÿ› Bug Report

To Reproduce

Expected Behavior

Code Example

Environment

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:18
  • Comments:35

github_iconTop GitHub Comments

41reactions
racingDevelopercommented, Apr 3, 2019

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

38reactions
bartolkaruzacommented, Apr 3, 2019

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 !

Read more comments on GitHub >

github_iconTop Results From Across the Web

'folly/Portability.h' file not found React library - Stack Overflow
Running into a build failure on Xcode with my react native project. the error is 'folly/Portability.h' file not found.
Read more >
'folly/Portability.h' file not found in JSBundleType.h
React Native Environment Info: System: OS: macOS 10.14.4 CPU: (4) x64 Intel(R) Core(TM) i5-3210M CPU @ 2.50GHz Memory: 180.06 MB / 8.00 GBย ......
Read more >
I have upgraded mac to macOS Ventura V13 - Apple Developer
When I have run npx react-native run-ios I receive the following error that prevents my Application from being compiled: info Found Xcode project...
Read more >
duplicate module name: react-native-vector-icons
'folly/portability.h' file not found. Got the same issue with 'folly/Portability.h' after upgrading from 0.58.4 to 0.59.0 and 0.59.1 What is weird,ย ...
Read more >
React Native with Go Mobile on Mac Catalyst - Daniel Wiese
/ios/Pods/Headers/Private/Flipper-Folly/folly/portability/Time.h:51:17: ... symbol(s) not found for architecture x86_64 clang: error: linkerย ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found