question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CocoaPods is only supported on darwin machines

See original GitHub issue
PS F:\Roma\prog\izigo\ios> npx pod-install
npx: installed 1 in 3.862s
Scanning for pods...
CocoaPods is only supported on darwin machines

No search results for that! Please help! I’ll try to reboot meanwhile.

I updated yarn with npm install -g yarn and tried to install async-storage again:

 yarn add @react-native-community/async-storage
yarn add v1.22.4
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.2.13: The platform "win32" is incompatible with this module.
info "fsevents@1.2.13" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "@react-native-community/eslint-config > @typescript-eslint/eslint-plugin@1.13.0" has incorrect peer dependency "eslint@^5.0.0".
warning "@react-native-community/eslint-config > @typescript-eslint/parser@1.13.0" has incorrect peer dependency "eslint@^5.0.0".
warning "@react-native-community/eslint-config > eslint-plugin-react@7.12.4" has incorrect peer dependency "eslint@^3.0.0 || ^4.0.0 || ^5.0.0".
warning "@react-native-community/eslint-config > eslint-plugin-react-native@3.6.0" has incorrect peer dependency "eslint@^3.17.0 || ^4 || ^5".
warning "@react-native-community/eslint-config > @typescript-eslint/eslint-plugin > tsutils@3.17.1" has unmet peer dependency "typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta".
[4/4] Building fresh packages...
success Saved 1 new dependency.
info Direct dependencies
└─ @react-native-community/async-storage@1.10.3
info All dependencies
└─ @react-native-community/async-storage@1.10.3
Done in 91.20s.

Could those warnings be related to the reason? I installed yarn just today… From https://classic.yarnpkg.com/ with .msi file.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
krizzucommented, May 21, 2020

CocoaPods is only supported on darwin machines

It means that CocoaPods are only available for MacOS. You can use Expo, which has dependencies bundled inside, so you can develop iOS on Windows.

0reactions
tido64commented, Sep 10, 2021

CocoaPods is only supported on darwin machines

It means that CocoaPods are only available for MacOS. You can use Expo, which has dependencies bundled inside, so you can develop iOS on Windows.

Thank you! Just to be sure: Can I use it only for Android now AND later with Mac simply use pod install to make it work for iOS in that project? With no extra actions. Hope the question makes sense 😃

Hi, did you find a solution to this problem? Is it only MacOS that can use pod install? Thanks,

There is no way to pod install on any other platform than macOS. CocoaPods is a dependency manager for apps on Apple platforms. You cannot build an app for Apple platforms without a Mac, unless you use a third-party service like Expo. This is not a “problem”. It is just how things currently are if you want to develop an app for iOS/macOS.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CocoaPods is only supported on darwin machines · Issue #364
It means that CocoaPods are only available for MacOS. You can use Expo, which has dependencies bundled inside, so you can develop iOS...
Read more >
npx pod-install returns "CocoaPods is not supported in this ...
Context: I'm trying to create a React Native App with react-native-video . The iOs installation instruction starts with npx pod-install .
Read more >
pod-install - npm
Why CocoaPods requires a darwin machine. But now you can simply instruct users to run npx pod-install . This package will do the...
Read more >
pod-install | Yarn - Package Manager
Why CocoaPods requires a darwin machine. But now you can simply instruct users to run npx pod-install . This package will do the...
Read more >
pod-install - npm Package Health Analysis - Snyk
Learn more about pod-install: package health score, popularity, security, maintenance, versions and more. ... Why CocoaPods requires a darwin machine. But ...
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