我刚开始学习反应-本土化。在尝试运行npx pod-install时,我得到:
Scanning for pods...
1.11.3
> pod install
Auto-linking React Native modules for target `AudioOnlyRN`: RNCAsyncStorage, RNCClipboard, react-native-background-timer, react-native-daily-js, and react-native-webrtc
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
[!] Invalid `Podfile` file: no implicit conversion of nil into String.
# from /.../react-native/ios/Podfile:9
# -------------------------------------------
#
> use_react_native!(:path => config["reactNativePath"])
#
# -------------------------------------------
Couldn't install Pods. Updating the Pods project and trying again...
> pod install --repo-update
Auto-linking React Native modules for target `AudioOnlyRN`: RNCAsyncStorage, RNCClipboard, react-native-background-timer, react-native-daily-js, and react-native-webrtc
[Codegen] Generating ./build/generated/ios/React-Codegen.podspec.json
[!] Invalid `Podfile` file: no implicit conversion of nil into String.
# from /.../react-native/ios/Podfile:9
# -------------------------------------------
#
> use_react_native!(:path => config["reactNativePath"])
#
# -------------------------------------------
Couldn't install Pods. Updating the Pods project and trying again...
Command `pod install` failed.
└─ Cause: Invalid `Podfile` file: no implicit conversion of nil into String.
# from /.../react-native/ios/Podfile:9
# -------------------------------------------
#
> use_react_native!(:path => config["reactNativePath"])
#
# -------------------------------------------你知道我在这里发生了什么错配吗?
我不确定我是否理解节点_模块/Package.json和Podfile之间关系的层次结构。
发布于 2022-11-01 06:08:23
试着改变
use_react_native!(:path => config["reactNativePath"])
^ ^至
use_react_native!(:path => config[:reactNativePath])
^https://stackoverflow.com/questions/74245902
复制相似问题