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

after upgrading to xcode 12.0 getting 'folly/json_pointer.h' file not found #30000

Closed
nataliepan opened this issue Sep 21, 2020 · 5 comments
Closed
Labels
Needs: Author Feedback Platform: iOS iOS applications. Stale There has been a lack of activity on this issue and it may be closed soon.

Comments

@nataliepan
Copy link

nataliepan commented Sep 21, 2020

Please provide all the information requested. Issues that do not follow this format are likely to stall.

Description

After upgrading to Xcode 12.0 I am no longer able to build my project and am getting 'folly/json_pointer.h' file not found.

I've also tried building a completely new project to compare, however the new project also gets the same issue

To reproduce:

npx react-native init AwesomeProject
cd AwesomeProject
npx react-native run-ios

I am also getting the same 'folly/json_pointer.h' file not found
fatal error: 'folly/CppAttributes.h' file not found
fatal error: 'folly/Unicode.h' file not found
fatal error: 'folly/concurrency/UnboundedQueue.h' file not found

React Native version: 0.63.2

mac OS 10.15.4
xcode 12.0

I downgraded back to xcode 11.7 and had to try and clean everything and was able to get my build working again:

cd ./guest-app/ios && npx rimraf Pods && pod cache clean --all && npx rimraf build
watchman watch-del-all
yarn cache clean
npx rimraf ~/Library/Developer/Xcode/DerivedData && npx rimraf $TMPDIR/metro-* && npx rimraf $TMPDIR/react-* && npx rimraf $TMPDIR/haste-*
cd ./guest-app && npx rimraf node_modules 

not sure if I had tried the above if I could have got xcode 12.0 to work with my build

@chrisglein chrisglein added Needs: Environment Info Please run `react-native info` and edit your issue with that command's output. Platform: iOS iOS applications. and removed Needs: Triage 🔍 labels Sep 22, 2020
@github-actions
Copy link

⚠️ Missing Environment Information
ℹ️ Your issue may be missing information about your development environment. You can obtain the missing information by running react-native info in a console.

@stale
Copy link

stale bot commented Dec 25, 2020

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 Dec 25, 2020
@clovisrodriguez
Copy link

I have the same issue after upgrading to react native 0.71.1, this is my Podfile

require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'

platform :ios, min_ios_version_supported
prepare_react_native_project!
# If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
# because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
#
# To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
# ```js
# module.exports = {
#   dependencies: {
#     ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
# ```
flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
linkage = ENV['USE_FRAMEWORKS']
if linkage != nil
  Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
  use_frameworks! :linkage => linkage.to_sym
end

install! 'cocoapods', :deterministic_uuids => false
permissions_path = '../node_modules/react-native-permissions/ios'

pod 'Firebase', :modular_headers => true
pod 'FirebaseCore', :modular_headers => true
pod 'FirebaseCoreInternal', :modular_headers => true
pod 'GoogleUtilities', :modular_headers => true


pod 'BVLinearGradient', :path => '../node_modules/react-native-linear-gradient'
#Permissions
pod 'Permission-Camera', :path => "#{permissions_path}/Camera"
pod 'Permission-MediaLibrary', :path => "#{permissions_path}/MediaLibrary"
pod 'Permission-Microphone', :path => "#{permissions_path}/Microphone"
pod 'Permission-Notifications', :path => "#{permissions_path}/Notifications"

target 'Tbit' do
  config = use_native_modules!

  # Flags change depending on the env values.
    flags = get_default_flags()

  use_react_native!(
    :path => config[:reactNativePath],
    # Hermes is now enabled by default. Disable by setting this flag to false.
    # Upcoming versions of React Native may rely on get_default_flags(), but
    # we make it explicit here to aid in the React Native upgrade process.
    :hermes_enabled => flags[:hermes_enabled],
    :fabric_enabled => flags[:fabric_enabled],
    # Enables Flipper.
    #
    # Note that if you have use_frameworks! enabled, Flipper will not work and
    # you should disable the next line.
    :flipper_configuration => flipper_config,
    # An absolute path to your application root.
    :app_path => "#{Pod::Config.instance.installation_root}/.."
  )

  target 'tbitMobileTests' do
    inherit! :complete
    # Pods for testing
  end

  post_install do |installer|
    react_native_post_install(
      installer,
      # Set `mac_catalyst_enabled` to `true` in order to apply patches
      # necessary for Mac Catalyst builds
      :mac_catalyst_enabled => false
    )
    __apply_Xcode_12_5_M1_post_install_workaround(installer)
  end
end

@github-actions github-actions bot removed the Stale There has been a lack of activity on this issue and it may be closed soon. label Apr 10, 2023
@github-actions
Copy link

github-actions bot commented May 4, 2023

This issue is waiting for author's feedback since 24 days. Please provide the requested feedback or this will be closed in 7 days.

@github-actions github-actions bot added the Stale There has been a lack of activity on this issue and it may be closed soon. label May 4, 2023
@github-actions
Copy link

This issue was closed because the author hasn't provided the requested feedback after 7 days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Platform: iOS iOS applications. 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

4 participants