【发布时间】:2020-06-24 23:17:30
【问题描述】:
我是 ios 开发的新手,我从另一个开发人员那里获得了一个用于 ios 项目的 zip 文件。当我运行 pod install 时,终端显示此错误:
[!] Invalid `Podfile` file: cannot load such file -- /Users/abc/Desktop/node_modules/@react-native-community/cli-platform-ios/native_modules.
# from /Users/abc/Desktop/ios/Podfile:2
# -----------------------------------------
# platform :ios, '9.0'
> require_relative '../node_modules/@react-
native-community/cli-platform-
ios/native_modules'
#
# -----------------------------------------
目录是这样的
~/桌面/ios
ls
GoogleService-Info.plist ISApp.xcodeproj
Podfile.lock
ISApp ISApp.xcworkspace
Pods
ISApp-tvOS ISAppTests
instrumentscli0.trace
ISApp-tvOSTests Podfile
我查看了下面的主题,但它根本没有帮助。任何输入表示赞赏。
react-native ios Podfile issue with "use_native_modules!"
【问题讨论】:
-
我想这可以回答你的问题stackoverflow.com/questions/56917963/…
-
在提问之前我已经看过帖子了。但是,我被困在第 2 步。我尝试安装 package.js、cli-platform-ios/native_modules,并运行了 yarn install,但错误仍然存在。我错过了什么吗?
标签: ios react-native