因此,在我的阅读中经常建议最小的本机Podfile看起来像这样:
target 'App' do
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
'CxxBridge', # Include this for RN >= 0.47
'DevSupport', # Include this to enable In-App Devmenu if RN >= 0.43
'RCTText',
'RCTNetwork',
'RCTWebSocket', # Needed for debugging
'RCTAnimation', # Needed for FlatList and animations running on native UI thread
]
pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'DoubleConversion', :podspec => '../node_modules/react-native/third-party-podspecs/DoubleConversion.podspec'
pod 'glog', :podspec => '../node_modules/react-native/third-party-podspecs/glog.podspec'
pod 'Folly', :podspec => '../node_modules/react-native/third-party-podspecs/Folly.podspec'
end
在React
块中,我还看到了更多子荚。
另一方面,我有一个看起来像这样的Podfile:
target 'App' do
pod 'Firebase/Analytics'
end
我的应用程序编译正常。
所以我想知道,为什么在我的基本xcode项目中已经包含和链接了React
和yoga
等之后?