facebook / react-native

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

[!] No podspec found for `React-DevSupport` in `../node_modules/react-native/` #31519

Closed gmartpad closed 4 months ago

gmartpad commented 3 years ago

Description

After "npm install", I went to the ios folder and executed "pod install" and this happened:

image

React Native version:

"react-native": "^0.64.0"

Steps To Reproduce

  1. on the project's folder, execute "npm install"

  2. go to the "ios" folder

  3. execute "pod install"

Expected Results

a successful pod install.

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

` { "name": "blandAppName", "version": "0.0.1", "private": true, "scripts": { "start": "node node_modules/react-native/local-cli/cli.js start", "test": "jest" }, "dependencies": { "@react-native-community/async-storage": "^1.12.1", "@react-native-community/masked-view": "^0.1.10", "@react-native-community/progress-bar-android": "^1.0.4", "@react-native-community/progress-view": "^1.2.3", "@react-native-community/viewpager": "^3.3.0", "@react-native-picker/picker": "^1.15.0", "@types/react-navigation": "^2.0.23", "axios": "^0.21.1", "base-64": "^0.1.0", "eslint-plugin-import": "^2.14.0", "eslint-plugin-react-native": "^3.3.0", "he": "^1.2.0", "immutable": "^3.8.2", "linkify-it": "^3.0.2", "moment": "^2.22.2", "native-base": "^2.8.1", "prop-types": "^15.6.2", "react": "^16.12.0", "react-dom": "^15.6.2", "react-native": "^0.64.0", "react-native-calendars": "^1.21.0", "react-native-camera": "3.43.6", "react-native-css-vh-vw": "^1.0.5", "react-native-device-info": "^5.3.1", "react-native-dropdown-picker": "4.0.9", "react-native-fast-image": "^8.3.4", "react-native-firebase": "5.5.6", "react-native-gesture-handler": "^1.4.0", "react-native-hyperlink": "0.0.19", "react-native-keyboard-aware-scroll-view": "^0.8.0", "react-native-masked-text": "^1.9.1", "react-native-pdf": "^5.1.7", "react-native-reanimated": "1.10.1", "react-native-render-html": "^5.1.0", "react-native-safe-area-context": "^3.1.9", "react-native-screens": "2.0.0", "react-native-vector-icons": "6.5.0", "react-native-view-pdf": "^0.10.2", "react-native-webview": "^8.2.1", "react-navigation": "^4.4.3", "react-navigation-drawer": "^2.6.0", "react-navigation-stack": "^2.10.2", "react-number-format": "^4.0.8", "react-redux": "^5.0.7", "react-timer-mixin": "^0.13.4", "redux": "^4.0.0", "redux-saga": "^0.16.0", "rn-fetch-blob": "0.10.15", "styled-components": "^5.2.1" }, "devDependencies": { "@babel/core": "^7.4.5", "@babel/runtime": "^7.4.5", "babel-eslint": "^10.0.1", "babel-jest": "^24.8.0", "eslint": "^5.6.1", "eslint-plugin-babel": "^5.2.1", "eslint-plugin-jsx-a11y": "^6.1.1", "eslint-plugin-react": "^7.11.1", "jest": "^24.8.0", "jetifier": "^1.6.6", "metro-react-native-babel-preset": "^0.54.1", "react-test-renderer": "16.8.3" }, "jest": { "preset": "react-native" } }

`

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

platform :ios, '9.0'

target 'blandAppName' do

config = use_native_modules! use_react_native!( :path => config[:reactNativePath], :hermes_enabled => false )

rn_path = '../node_modules/react-native' rn_maps_path = '../node_modules/react-native-maps'

pod 'React', :path => '../node_modules/react-native/' pod 'React-Core', :path => '../node_modules/react-native/' pod 'React-DevSupport', :path => '../node_modules/react-native/' pod 'React-fishhook', :path => '../node_modules/react-native/Libraries/fishhook' pod 'React-RCTActionSheet', :path => '../node_modules/react-native/Libraries/ActionSheetIOS' pod 'React-RCTAnimation', :path => '../node_modules/react-native/Libraries/NativeAnimation' pod 'React-RCTBlob', :path => '../node_modules/react-native/Libraries/Blob' pod 'React-RCTImage', :path => '../node_modules/react-native/Libraries/Image' pod 'React-RCTLinking', :path => '../node_modules/react-native/Libraries/LinkingIOS' pod 'React-RCTNetwork', :path => '../node_modules/react-native/Libraries/Network' pod 'React-RCTSettings', :path => '../node_modules/react-native/Libraries/Settings' pod 'React-RCTText', :path => '../node_modules/react-native/Libraries/Text' pod 'React-RCTVibration', :path => '../node_modules/react-native/Libraries/Vibration' pod 'React-RCTWebSocket', :path => '../node_modules/react-native/Libraries/WebSocket/'

pod 'React-cxxreact', :path => '../node_modules/react-native/ReactCommon/cxxreact' pod 'React-jsi', :path => '../node_modules/react-native/ReactCommon/jsi' pod 'React-jsiexecutor', :path => '../node_modules/react-native/ReactCommon/jsiexecutor' pod 'React-jsinspector', :path => '../node_modules/react-native/ReactCommon/jsinspector'

pod 'Yoga', path: "#{rn_path}/ReactCommon/yoga" pod 'DoubleConversion', :podspec => "#{rn_path}/third-party-podspecs/DoubleConversion.podspec" pod 'RCT-Folly', :podspec => "#{rn_path}/third-party-podspecs/RCT-Folly.podspec" pod 'glog', :podspec => "#{rn_path}/third-party-podspecs/glog.podspec"

pod 'Firebase' pod 'GoogleAppMeasurement', '= 5.4.0' pod 'FirebaseAnalytics', '= 5.4.0' pod 'Firebase/Core' pod 'Firebase/Database', '= 5.15.0' pod 'Firebase/Messaging' pod 'RNFirebase', :path => '../node_modules/react-native-firebase/ios'

pod 'RNCAsyncStorage', :path => '../node_modules/@react-native-community/async-storage'

pod 'RNCMaskedView', :path => '../node_modules/@react-native-community/masked-view'

pod 'react-native-viewpager', :path => '../node_modules/@react-native-community/viewpager'

pod 'react-native-camera', :path => '../node_modules/react-native-camera'

pod 'RNDeviceInfo', :path => '../node_modules/react-native-device-info'

pod 'RNFastImage', :path => '../node_modules/react-native-fast-image'

pod 'RNGestureHandler', :path => '../node_modules/react-native-gesture-handler'

pod 'react-native-pdf', :path => '../node_modules/react-native-pdf'

pod 'RNReanimated', :path => '../node_modules/react-native-reanimated'

pod 'react-native-safe-area-context', :path => '../node_modules/react-native-safe-area-context'

pod 'RNScreens', :path => '../node_modules/react-native-screens'

pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'

pod 'RNPDF', :path => '../node_modules/react-native-view-pdf'

pod 'react-native-webview', :path => '../node_modules/react-native-webview'

pod 'rn-fetch-blob', :path => '../node_modules/rn-fetch-blob'

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 target.build_configurations.each do |config| config.build_settings['GCC_TREAT_WARNINGS_AS_ERRORS'] = 'NO' config.build_settings['GCC_WARN_64_TO_32_BIT_CONVERSION'] = 'NO' end end end end

end `

` PODS:

DEPENDENCIES:

SPEC REPOS: trunk:

EXTERNAL SOURCES: DoubleConversion: :podspec: "../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec" Folly: :podspec: "../node_modules/react-native/third-party-podspecs/Folly.podspec" glog: :podspec: "../node_modules/react-native/third-party-podspecs/glog.podspec" React: :path: "../node_modules/react-native" react-native-camera: :path: "../node_modules/react-native-camera" react-native-fast-image: :path: "../node_modules/react-native-fast-image" react-native-pdf: :path: "../node_modules/react-native-pdf" react-native-safe-area-context: :path: "../node_modules/react-native-safe-area-context" react-native-viewpager: :path: "../node_modules/@react-native-community/viewpager" react-native-webview: :path: "../node_modules/react-native-webview" rn-fetch-blob: :path: "../node_modules/rn-fetch-blob" RNCAsyncStorage: :path: "../node_modules/@react-native-community/async-storage" RNCMaskedView: :path: "../node_modules/@react-native-community/masked-view" RNDeviceInfo: :path: "../node_modules/react-native-device-info" RNFirebase: :path: "../node_modules/react-native-firebase/ios" RNGestureHandler: :path: "../node_modules/react-native-gesture-handler" RNPDF: :path: "../node_modules/react-native-view-pdf" RNReanimated: :path: "../node_modules/react-native-reanimated" RNScreens: :path: "../node_modules/react-native-screens" RNVectorIcons: :path: "../node_modules/react-native-vector-icons" yoga: :path: "../node_modules/react-native/ReactCommon/yoga"

SPEC CHECKSUMS: boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c DoubleConversion: bb338842f62ab1d708ceb63ec3d999f0f3d98ecd Firebase: 8bb9268bff82374f2cbaaabb143e725743c316ae FirebaseAnalytics: c06f9d70577d79074214700a71fd5d39de5550fb FirebaseAnalyticsInterop: 3f86269c38ae41f47afeb43ebf32a001f58fcdae FirebaseAuthInterop: a0f37ae05833af156e72028f648d313f7e7592e9 FirebaseCore: 35747502d9e8c6ee217385ad04446c7c2aaf9c5c FirebaseDatabase: 0621689f77528d62b47e1c06ca737c4c19275d1a FirebaseInstanceID: e2fa4cb35ef5558c200f7f0ad8a53e212215f93e FirebaseMessaging: b412996f6a09337d232bb3a6676ce4d1f353d024 FLAnimatedImage: 4a0b56255d9b05f18b6dd7ee06871be5d3b89e31 Folly: de497beb10f102453a1afa9edbf8cf8a251890de glog: aefd1eb5dda2ab95ba0938556f34b98e2da3a60d GoogleAppMeasurement: 98b71f5e04142793729a5ef23e5b96651ff4b70f GoogleUtilities: 04fce34bcd5620c1ee76fb79172105c74a4df335 leveldb-library: 55d93ee664b4007aac644a782d11da33fba316f7 libwebp: 946cb3063cea9236285f7e9a8505d806d30e07f3 nanopb: 18003b5e52dab79db540fe93fe9579f399bd1ccd Protobuf: 0cde852566359049847168e51bd1c690e0f70056 React: a86b92f00edbe1873a63e4a212c29b7a7ad5224f react-native-camera: fa20f6aa54ce4a84c47e38a2d63dc0f3c18dccf9 react-native-fast-image: 7278563726f2455ed3ba6e04dea472345173278c react-native-pdf: 4a73d6c72ccbc6317df4726f6892b2404c02ff21 react-native-safe-area-context: 0a52d6d0fd7b5e2250532f648be3d311940f77d0 react-native-viewpager: 118e65d8c65c56fe48d12a35cdcf1fe7e027a366 react-native-webview: d3cf75764f98fd433f1222f5a7ca8e355ada2a15 rn-fetch-blob: 766f85cabd2992300dfa1be2bc9e4e258abc6f04 RNCAsyncStorage: 8539fc80a0075fcc9c8e2dff84cd22dc5bf1dacf RNCMaskedView: f5c7d14d6847b7b44853f7acb6284c1da30a3459 RNDeviceInfo: 54556486cd02538dbef727f39292d096abe0cf0e RNFirebase: d0dfd323dbf52e669dbda8fa86bea8912540f13f RNGestureHandler: 71871d4792db2a73f70204483d30350ec9384cbd RNPDF: 8a40fafbed2714e7e8fe4e7c9f6f9815f52a939c RNReanimated: 347ecd4322f7a5da4c523d289150022433095b9e RNScreens: 7704297930777dae13b88bb9f999db17a39bbdf1 RNVectorIcons: 0bb4def82230be1333ddaeee9fcba45f0b288ed4 SDWebImage: 783af2c3fa36291a250030c4752ee370a9a51d13 yoga: 03ff42a6f223fb88deeaed60249020d80c3091ee

PODFILE CHECKSUM: e50848ee04d0edb9ec28bfb0f35255367acd7fec

COCOAPODS: 1.10.1

`

rdobda-gaia commented 3 years ago

Wow after making like 20 changes of the various tutorials over the last 5 years that have changed over and over to integrate react native into an existing iOS project (starting with the official obsolete doc and moving through various other 3rd party tutorials over the years with differing nuance) , i reached this one and am blocked. Would be nice if there was an up to date tutorial on how to add react native to an existing ios project that was straightforward and actually worked. if you comment out that one, the next error is unable to find 'React-RCTWebSocket'

ThalKod commented 1 year ago

@gmartpad Was you able to fix that error ? i'm having the same issue after trying to update a project to react nnative 0.70...

MrAdeelBaig commented 10 months ago

delete podfile.lock and then again run yarn and then cd ios && pod install

github-actions[bot] commented 4 months ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 4 months ago

This issue was closed because it has been stalled for 7 days with no activity.