Closed ethyaan closed 3 years ago
Okay,
I figured out what is the cause and how to solve it.
when you enter pod install
it will try to connect to a repository and fetch some data specs
and for some reason that repository is not available or it sneds the wrong response format and this will cause the failure.
how to solve it? after a day googling about it, I found the answer here https://github.com/CocoaPods/CocoaPods/issues/9303
since that repository doesn't work, your pod install
will fail.
but there is a solution, all of those specs are available under a git repository.
by adding the following line to your Podfile
source 'https://github.com/CocoaPods/Specs.git'
this will tell the pod to use that git repository instead of the pod default repo and that will clone the repository(which is about 800MB) into your system and the will use that. this solved the issue. It's better to mention this in development documentation where it's just mention to run commands.
š Bug Report
Hi, I tried to run the project, based on DEV documentation, everything is fine till I reach to
pod install
inside ios directory, It fails with below information. on MacOS mojave.Based on the Error, I find out this needs to have Flutter installed? why this needs flutter? I installed flutter and still fails.
To Reproduce
Detected React Native module pods for RNCMaskedView, RNDeviceInfo, RNGestureHandler, RNReanimated, RNSVG, RNScreens, react-native-appearance, react-native-safari-view, and react-native-safe-area-context Analyzing dependencies Fetching podspec for
DoubleConversion
from../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec
Fetching podspec forFolly
from../node_modules/react-native/third-party-podspecs/Folly.podspec
Fetching podspec forglog
from../node_modules/react-native/third-party-podspecs/glog.podspec
āāā MARKDOWN TEMPLATE āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
Command
Report
What did you do?
What did you expect to happen?
What happened instead?
Stack
Plugins
Podfile
Error
āāā TEMPLATE END āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours: https://github.com/CocoaPods/CocoaPods/search?q=undefined+method+%60strip%27+for+nil%3ANilClass&type=Issues
If none exists, create a ticket, with the template displayed above, on: https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket: https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
NoMethodError - undefined method `recursive_predecessors' for nil:NilClass in Flutter App https://github.com/CocoaPods/CocoaPods/issues/9286 [closed] [6 comments] 20 hours ago
Can't seem to run pod install on a fresh version of react native https://github.com/CocoaPods/CocoaPods/issues/9585 [closed] [1 comment] 6 weeks ago
Pod install returning error https://github.com/CocoaPods/CocoaPods/issues/2944 [closed] [5 comments] 20 Nov 2019
and 4 more at: https://github.com/cocoapods/cocoapods/search?q=undefined%20method%20%60strip%27%20for%20nil&type=Issues&utf8=ā
Expected behavior
It should work but it fails to install.
Link to runnable example or repository (highly encouraged)
UI Kitten and Eva version
Environment information
npx envinfo --preset react-native
System: OS: macOS Mojave 10.14.6 CPU: (4) x64 Intel(R) Core(TM) i5-5250U CPU @ 1.60GHz Binaries: Node: 12.16.1 - ~/.nvm/versions/node/v12.16.1/bin/node npm: 6.13.4 - ~/.nvm/versions/node/v12.16.1/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3 Android SDK: API Levels: 26, 29 Build Tools: 27.0.1 IDEs: Android Studio: 3.0 AI-171.4408382 Xcode: 10.3/10G8 - /usr/bin/xcodebuild