opened
djhr
username_0
podspec
issue
created
yousefhamza
username_1
Those file will be linked to the react native iOS project when you run:
`react-native link instabug-reactnative`
comment
created
djhr
username_0
`react-native link instabug-reactnative` will link the module to the ios/android project, not generate the podspec file. For people linking the modules via cocoapods (instead of `react-native link`) this podspec file is needed. Have a look at other modules and you will see that most of them provide a podspec file, even react native itself provide a podspec (https://github.com/facebook/react-native/blob/master/React.podspec) to link it via cocoapods
comment
created
djhr
username_0
@username_1 any update on this?
comment
created
djhr
username_0
@DevHossamHassan can you have a look at this PR, I think @username_1 didn't understand the value/purpose of it so it was closed. Linking modules via cocoapods is very common, and I think would be great this module to support it too.
comment
created
yousefhamza
username_1
@username_0 I'm afraid it doesn't work for us.

The React Pod you refer to is now deprecated and it's version doesn't satisfy our minimum requirement for React, also adding it in a pod cause name conflicts between React in Pods directory and React in node_modules directory
comment
created
djhr
username_0
My guess is you mixed `react-native link` with podspec. When you opt for podspec as your installation method you need to do it for everything, including react native lib itself, e.g.

```
platform :ios, '8.0'

target 'Sample' do
  use_frameworks!

  # Pods for Sample
  pod 'React', :path => '../node_modules/react-native', :subspecs => [
    'Core',
    'DevSupport',
    'RCTActionSheet',
    'RCTAnimation',
    'RCTGeolocation',
    'RCTImage',
    'RCTLinkingIOS',
    'RCTPushNotification',
    'RCTNetwork',
    'RCTSettings',
    'RCTText',
    'RCTVibration',
    'RCTWebSocket'
  ]
  pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
  pod 'instabug-reactnative', :path => '../node_modules/instabug-reactnative'

  target 'SampleTests' do
    inherit! :search_paths
    pod 'React', :path => '../node_modules/react-native', :subspecs => [
      'Core',
      'DevSupport',
      'RCTActionSheet',
      'RCTAnimation',
      'RCTGeolocation',
      'RCTImage',
      'RCTLinkingIOS',
      'RCTPushNotification',
      'RCTNetwork',
      'RCTSettings',
      'RCTText',
      'RCTVibration',
      'RCTWebSocket'
    ]
  end

end
```

Also important, after you do `pod init` you should start using the .xcworkspace file to open the project on xcode instead of .xcodeproj file

Some helpful resources:
http://facebook.github.io/react-native/releases/0.47/docs/integration-with-existing-apps.html#configuring-cocoapods-dependencies

As last note, I have it working on a project, so it has to be a matter of configuration/steps
comment
created
salmatarzi
username_2
In the podspec file, you cannot specify the path as shown in your example, this could be done in the Podfile itself.
comment