我刚开始学习本地反应。在尝试运行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"])
#
# -------------------------------------------
你知道我这里有什么错配吗?
我不确定我是否理解node_modules/package.json和Podfile之间关系的层次结构。
尝试更改
use_react_native!(:path => config["reactNativePath"])
^ ^
至
use_react_native!(:path => config[:reactNativePath])
^