Cli: No podspec exists at path `packages/app/node_modules/react-native-app-auth/.podspec`

Created on 31 May 2019  路  3Comments  路  Source: react-native-community/cli

Environment

info 
  React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (4) x64 Intel(R) Core(TM) i7-5557U CPU @ 3.10GHz
      Memory: 710.30 MB / 16.00 GB
      Shell: 5.0.7 - /usr/local/bin/bash
    Binaries:
      Node: 10.15.0 - ~/.nvm/versions/node/v10.15.0/bin/node
      Yarn: 1.16.0 - /usr/local/bin/yarn
      npm: 6.9.0 - ~/.nvm/versions/node/v10.15.0/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
      Android SDK:
        API Levels: 22, 23, 24, 25, 26, 27, 28
        Build Tools: 23.0.1, 23.0.2, 23.0.3, 24.0.0, 24.0.2, 24.0.3, 25.0.0, 25.0.1, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 27.0.3, 28.0.0, 28.0.3
        System Images: android-25 | Android TV Intel x86 Atom, android-25 | Google APIs Intel x86 Atom, android-25 | Google APIs Intel x86 Atom_64, android-26 | Google APIs Intel x86 Atom, android-27 | Google APIs Intel x86 Atom, android-27 | Google Play Intel x86 Atom, android-N | Android TV Intel x86 Atom, android-N | Android Wear ARM EABI v7a, android-N | Android Wear Intel x86 Atom, android-N | Intel x86 Atom, android-N | Intel x86 Atom_64, android-P | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.4 AI-183.6156.11.34.5522156
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react-native: 0.59.8 => 0.59.8 
    npmGlobalPackages:
      react-native-cli: 2.0.1
      react-native-git-upgrade: 0.2.7
      react-native-rename: 2.4.1

Description


when running pod install it throws an error

No podspec exists at path `myapp/packages/app/node_modules/react-native-app-auth/.podspec`

Reproducible Demo

npx @react-native-community/cli@next init --template=@react-native-firebase/template@alpha Awesome

yarn add react-native-app-auth

cd ios
pod install

It throws the same error both on single repo and on monorepo

bug

Most helpful comment

I think that should do in your react-native.config.js:

module.exports = {
  dependencies: {
    'react-native-app-auth': {
      platforms: {
        ios: {
          podspec: './path/to/podspec'
        }
      }
    }
  }
};

You can also send them PR with this configuration added:

module.exports = {
  dependency: {
    platforms: {
      ios: {
        podspec: './path/to/podspec'
      }
    }
  }
};

You'll also find the docs on configuration helpful: https://github.com/react-native-community/cli/blob/master/docs/configuration.md

All 3 comments

Please file this issue in the https://github.com/FormidableLabs/react-native-app-auth repo, or better, send a PR with a podspec, ideally similar to this one https://github.com/react-native-community/react-native-webview/blob/master/react-native-webview.podspec :)

they have a .podspec in a different location

https://github.com/FormidableLabs/react-native-app-auth/blob/master/ios/RNAppAuth.podspec

how can I let cli knows about this?

I think that should do in your react-native.config.js:

module.exports = {
  dependencies: {
    'react-native-app-auth': {
      platforms: {
        ios: {
          podspec: './path/to/podspec'
        }
      }
    }
  }
};

You can also send them PR with this configuration added:

module.exports = {
  dependency: {
    platforms: {
      ios: {
        podspec: './path/to/podspec'
      }
    }
  }
};

You'll also find the docs on configuration helpful: https://github.com/react-native-community/cli/blob/master/docs/configuration.md

Was this page helpful?
0 / 5 - 0 ratings