2

ios noob here. I have a react-native app and I wrote a native module (private).

now I want to use it. in my app's podfile I've defined the module to be taken from node_modules, but in the module's podspec file I need to define source so I've wrote : s.source = {:path => "./ios"}.

Apparently this is not supported in cocoapods for a long time. this fails with Unsupported download strategy '{:path=>"./ios"}'.

Any help for how can I make this work will be appreciated. Thanks

Rotem Slootzky
  • 648
  • 9
  • 20

2 Answers2

0

This works for me: s.source = { :git => 'file:///Users/MyName/path' } My pod version is 1.7.4

xT_Tx
  • 1
0

You may refer to this answer under Local Dependencies I describe how you can locate your file. At the early part, I also shared how we can create the podfile. Hope it helps

TommyLeong
  • 1,789
  • 3
  • 22
  • 46