You could weak link against OpenCV then dlopen it at runtime depending on whether it’s already loaded or not. As for packaging, I’d stick them both in a zip with a README telling them where to drag each thing in Xcode.
Saagar Jha > On Apr 5, 2018, at 01:42, Redler Eyal <e...@mellel.com> wrote: > >>>>> We have two issues with the dynamic framework >>>>> 1. It makes it easier to pirate our technology (having our stuff neatly >>>>> packaged seperaterly) >>>> >>>> I may be misunderstanding you, but why does your code need to be separate? >>>> Can’t you statically link against your framework, which dynamically opens >>>> OpenCV (packaged as a framework)? >>> >>> At the moment, we deliver a static framework. This is linked statically to >>> the client's app and delivered inside the main executable to the app store. >>> If we switch to a dynamic library then our library will be a separate >>> component that is delivered as such to the app store. The potential pirate >>> will only have to dig our the library from the application package (and >>> overcome the other protections, of-course) >> >> OK, but is there anything stopping you from having your static library >> dynamically open OpenCV? > > Perhaps not but I'm wondering > a. Will it actually solve the issue (the conflict with the clients OpenCV)? > b. Is it possible to package a static framework with a dynamic library in one > package? > > > _______________________________________________ > > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) > > Please do not post admin requests or moderator comments to the list. > Contact the moderators at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/cocoa-dev/saagar%40saagarjha.com > > This email sent to saa...@saagarjha.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com