[ad_1]
I’ve little or no expertise in native iOS growth however my present job is to wrap some particular native iOS framework to make use of it in React Native.
Preliminary information: frequent React Native instruments generate an empty iOS library challenge and an instance iOS app challenge that makes use of this library.
First I’ve tried so as to add the wanted framework on to the instance app utilizing CocoaPods – and it really works positive, the framework turned part of linked libPods.a file, then if I add
@import MyTargetFramework;
to AppDelegate.m I can entry totally different strategies of the framework from it.
Subsequent I switched to my iOS library challenge, utilized the identical setup (created a Podfile, added the identical pod MyTargetFramework to it), then added the identical @import MyTargetFramework to *.m file – however bought a construct error:
Module 'MyTargetFramework' not discovered
Additionally I’ve famous that there isn’t a libPods.a for iOS library challenge, all of the pods are merged to a Pods.framework as a substitute.
So my query is – what am I doing unsuitable? Why does it work for iOS app challenge, however not for iOS library challenge? How can I correctly hyperlink my goal framework to my very own iOS library? I’ve already spent a while googling, however discovered nothing in regards to the distinction between app vs lib from this level.
[ad_2]
