I want do some basic operation with react native on iOS , and upload to cocoapods , when i edit xxx.podspec , I cant Specified version number of react and source link.
**
- this is my podspec :
**
s.ios.deployment_target = '8.0'
s.source_files = 'SCCReactNative/Classes/**/*'
# s.resource_bundles = {
# 'SCCReactNative' => ['SCCReactNative/Assets/*.png']
# }
# s.public_header_files = 'Pod/Classes/**/*.h'
# s.frameworks = 'UIKit', 'MapKit'
# s.dependency 'AFNetworking', '~> 2.3'
s.dependency 'React', :git => 'https://github.com/facebook/react-native.git', :tag => 'v0.31.0', :subspecs => [
'Core',
'RCTImage',
'RCTNetwork',
'RCTText',
'RCTWebSocket',
'ART',
'RCTActionSheet',
'RCTAdSupport',
'RCTCameraRoll',
'RCTGeolocation',
'RCTPushNotification',
'RCTSettings',
'RCTVibration',
'RCTLinkingIOS',
#'RCTTest',
]`enter code here`
**
- and this is error
**
[!] Invalid `SCCReactNative.podspec` file: undefined local variable or method `source' for Pod:Module.
# from /Users/huangcheng/Desktop/Project/SCCReactNative/SCCReactNative.podspec:50
# -------------------------------------------
# s.dependency 'SCCUtil'
> s.dependency 'React', source => 'https://github.com/facebook/react-native.git' ,tag => 'v0.31.0' ,subspecs => [
# 'Core',
#
anyone can help me ?