正在处理一个需要添加
react-native-device-info
最初,我应用了我在网上找到的一个列表中的所有podspec:
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'DevSupport',
'Core',
'RCTActionSheet',
'RCTAnimation',
'RCTGeolocation',
'RCTImage',
'RCTLinkingIOS',
'RCTNetwork',
'RCTSettings',
'RCTText',
'RCTVibration',
'RCTWebSocket'
]
但我意识到其中一些可能是不必要的,通过反复试验,我把它缩减为:
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'DevSupport',
'Core',
'RCTAnimation',
'RCTImage',
'RCTLinkingIOS',
'RCTSettings',
'RCTText'
]
我的问题是
也希望这个问题的答案能让我更好地理解使用subsecs时发生的事情。