facebook / react-native

A framework for building native applications using React
https://reactnative.dev
MIT License
119.23k stars 24.34k forks source link

Building failed when try to compile the RCTRequired Pod Lib #27705

Closed zyangSir closed 4 years ago

zyangSir commented 4 years ago

React Native version:

System:
OS: macOS 10.15.2
CPU: (8) x64 Intel(R) Core(TM) i7-4770HQ CPU @ 2.20GHz
Memory: 4.42 GB / 16.00 GB
Shell: 5.7.1 - /bin/zsh
Binaries:
Node: 10.0.0 - /usr/local/bin/node
Yarn: 1.21.1 - ~/.yarn/bin/yarn
npm: 6.10.3 - /usr/local/bin/npm
Watchman: 4.9.0 - /usr/local/bin/watchman
SDKs:
iOS SDK:
Platforms: iOS 13.2, DriverKit 19.0, macOS 10.15, tvOS 13.2, watchOS 6.1
IDEs:
Xcode: 11.3/11C29 - /usr/bin/xcodebuild
npmPackages:
react: 15.4.0 => 15.4.0
react-native: 0.61.0 => 0.61.0
npmGlobalPackages:
react-native-cli: 2.0.1
react-native-git-upgrade: 0.2.7

Steps To Reproduce

  1. upgrade an existing iOS project's RN codebase to version 0.61.0 manually(change the packge.json file, then yarn, then modify some components code to let it compliance with the lastes RN requirements, such as delete @providesModule syntax...)

  2. edit the podfile(specific code see as below) , pod install, so far so good.

  3. when I try to run the project, it failed when try to build the RCTRequired PodLib , and compiler told me:

     `RCTRequired 2 issues`    

    Lexical or Preprocessor Issue
    'React/RCTBridgeDelegate.h' file not found
    AppDelegate.h
    'react/components/view/AccessibilityPrimitives.h' file not found
    AccessibilityProps.h

Describe what you expected to happen:

Build all RN's relevant pod libs(esspecially RCTRequired) successfully, no error.

Snack, code example, screenshot, or link to a repository:

My pod file is as below:
*# Uncomment this line to define a global platform for your project
platform :ios, '9.0'

*# Uncomment the next line to activate CDN boost up!
source 'https://github.com/CocoaPods/Specs.git'

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

*#RN Core Code
pod 'React', :path => '../RN/node_modules/react-native/'
pod 'React-Core', :path => '../RN/node_modules/react-native/'
pod 'React-CoreModules', :path => '../RN/node_modules/react-native/React/CoreModules/'
pod 'React-Core/DevSupport', :path => '../RN/node_modules/react-native/'

end

zyangSir commented 4 years ago

any one heard me?

damoncoo commented 4 years ago

New to RN, same issue here

stale[bot] commented 4 years ago

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[bot] commented 4 years ago

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.