简体   繁体   English

use_native_modules! 跳过了 react-native 依赖项“react-native-beacons-manager”。 未找到 podspec 文件

[英]use_native_modules! skipped the react-native dependency 'react-native-beacons-manager'. No podspec file was found

Android works perfect but ios get an error. Android 运行完美,但 ios 出现错误。

Version : "react": "16.9.0", "react-native": "0.61.5", Steps Followed :版本:“react”:“16.9.0”,“react-native”:“0.61.5”,步骤如下:

  • npm install react-native-beacons-manager --save
  • cd ios && pod install

Getting the following error :收到以下错误:

    use_native_modules! skipped the react-native dependency 'react-native-beacons-manager'. No podspec file was found.  
    - Check to see if there is an updated version that contains the necessary podspec file
    - Contact the library maintainers or send them a PR to add a podspec. The react-native-webview podspec is a good example of a package.json driven podspec. See
    https://github.com/react-native-community/react-native-webview/blob/master/react-native-webview.podspec
    - If necessary, you can disable auto-linking for the dependency and link it manually. See
    https://github.com/react-native-community/cli/blob/master/docs/autolinking.md#how-can-i-disable-autolinking-for-unsupported-library

Looks like react-native-beacons-manager doesn't support auto linking看起来 react-native-beacons-manager 不支持自动链接

react-native.config.js (create this file at the root of project) react-native.config.js (在项目根目录创建这个文件)

module.exports = {
  dependencies: {
    'react-native-beacons-manager': {
      platforms: {
        ios: null
      },
    },
  },
};

and manually link the package using并使用手动链接包

react-native link react-native-beacons-manager

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM