如何解决RNN Pod尚未添加到Podfile
我正在尝试将React本机导航添加到开箱即用的世界,您好世界React Native应用。我正在按照本文档中的步骤进行操作。
https://wix.github.io/react-native-navigation/docs/installing
运行脚本后,我会遇到此输出。
Running Android postlink script.
Linking MainApplication...
Extending NavigationApplication
Changing host implementation to NavigationReactNativeHost
Removing call to SOLoader.init()
MainApplication.java linked successfully!
Linking MainActivity...
Extending NavigationActivity
Removing getMainComponentName function
MainActivity linked successfully!
Linking root build.gradle...
Adding RNNKotlinVersion to extension block
Adding Kotlin plugin
Updating minSdkVersion to 19
Root build.gradle linked successfully!
Running iOS postlink script.
Linking AppDelegate...
Removing Unneeded imports
All imports have been removed
Importing ReactNativeNavigation.h
Bootstrapping Navigation
Removing Application launch content
Application Launch content has been removed
AppDelegate linked successfully!
Updating Podfile...
RNN Pod has not been added to Podfile
React Native Navigation link is completed. Check the logs above for more information.
If any of the steps failed,check the installation docs and go through the necessary steps manually:
https://wix.github.io/react-native-navigation/docs/installing#manual-installation
When you're done,don't forget to update the index.js file as mentioned in docs!
Thank you for using React Native Navigation!
我尝试手动添加广告连播,我明白了。
[!] There are multiple dependencies with different sources for `ReactNativeNavigation` in `Podfile`:
- ReactNativeNavigation (from `../node_modules/react-native-navigation`)
- ReactNativeNavigation (from `../node_modules/react-native-navigation/ReactNativeNavigation.podspec`)
我只是想添加反应导航来反应本机应用程序。这就对了。我如何解决这个问题?
我已经在https://github.com/wix/react-native-navigation/issues/6470这里提出了这个问题,但是如果有人可以帮助的话,也要在这里发布。
解决方法
在上面链接的GitHub问题上对此进行了简短的讨论,并提供了解决方案。
在这里发布一个简短的解决方案以使他人受益。
第1步-将以下内容添加到您的pod文件中。
target 'baribasicreact' do
pod 'ReactNativeNavigation',:podspec => '../node_modules/react-native-navigation'
第2步-安装吊舱。
cd iOS & pod install
问题中链接的GitHub问题的更多详细信息。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。