对于React native
0.62版本
所以我想出来了
替换播客文件中的以下行
pod 'ReactCommon/jscallinvoker', :path => "../node_modules/react-native/ReactCommon"
具有
pod 'ReactCommon/callinvoker', :path => "../node_modules/react-native/ReactCommon"
Edit:
如果您已更新到React Native
版本0.63
从iOS文件夹中删除Podfile.lock
.
从iOS文件夹打开podfile
删除所有内容并复制以下内容
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
require_relative '../node_modules/react-native/scripts/react_native_pods'
platform :ios, '10.0'
target 'RNTodo' do
config = use_native_modules!
use_react_native!(:path => config["reactNativePath"])
target 'RNTodoTests' do
inherit! :complete
# Pods for testing
end
# Enables Flipper.
#
# Note that if you have use_frameworks! enabled, Flipper will not work and
# you should disable these next few lines.
use_flipper!
post_install do |installer|
flipper_post_install(installer)
end
end
target 'RNTodo-tvOS' do
# Pods for RNTodo-tvOS
target 'RNTodo-tvOSTests' do
inherit! :search_paths
# Pods for testing
end
end
Replace RNTodo
具有 your own project name, cd to iOS folder in the terminal and do pod install
and everything should work
此外,RN
0.63已经放弃了对iOS 9的支持