gpt4 book ai didi

ios - 使用原生模块!跳过了 react-native 依赖项 'react-native-beacons-manager' 。找不到 podspec 文件

转载 作者:行者123 更新时间:2023-12-01 19:35:23 26 4
gpt4 key购买 nike

Android 运行完美,但 ios 出现错误。

版本: “ react ”:“16.9.0”, “ native react ”:“0.61.5”,遵循的步骤:

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

出现以下错误:

    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

最佳答案

看起来 react-native-beacons-manager 不支持自动链接

react-native.config.js(在项目的根目录下创建这个文件)

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

并使用手动链接包

react-native link react-native-beacons-manager

关于ios - 使用原生模块!跳过了 react-native 依赖项 'react-native-beacons-manager' 。找不到 podspec 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60390299/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com