swift-framework

Swift Framework with OpenCV Dynamic Framework, Library not loaded

泪湿孤枕 提交于 2019-12-07 22:55:26
问题 Im current working on creating a iOS Swift Framework that uses OpenCV. For good practice we don't want to compile OpenCV into our end framework as this can cause collisions and issues for the framework user. We figured out that the opencv2.framework we were downloading/using was a static library, so we worked out how to create a dynamic version of the OpenCV Framework from source (https://github.com/opencv/opencv/tree/3.4) The sources we used to build OpenCV as a Dynamic framework. https:/

CocoaPods “target has transitive dependencies that include static binaries”

假如想象 提交于 2019-12-06 21:41:08
问题 I'm trying to install a swift framework I found on GitHub along with the GoogleMaps, GooglePlaces into my Xcode project but for some reason when I try to install the pod file its giving the following error [!] The 'Pods-project1' target has transitive dependencies that include static binaries: (/Users/user1/Desktop/project1/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework, /Users/user1/Desktop/project1/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework, and /Users/user1/Desktop

Swift Framework with OpenCV Dynamic Framework, Library not loaded

眉间皱痕 提交于 2019-12-06 13:31:28
Im current working on creating a iOS Swift Framework that uses OpenCV. For good practice we don't want to compile OpenCV into our end framework as this can cause collisions and issues for the framework user. We figured out that the opencv2.framework we were downloading/using was a static library, so we worked out how to create a dynamic version of the OpenCV Framework from source ( https://github.com/opencv/opencv/tree/3.4 ) The sources we used to build OpenCV as a Dynamic framework. https://docs.opencv.org/3.4.3/d5/da3/tutorial_ios_install.html https://github.com/opencv/opencv/pull/8009 In

Using Swift Framework inside Objective C Project

牧云@^-^@ 提交于 2019-12-05 16:42:02
I have an Swift Framework which works perfectly inside Swift Projects. Now I am trying to use it inside of Objective-C project. Iv'e Change the Class to looks like: @objc public class Test : NSObject {} I imported the framework to the Objective-C project, added it to the Embedded Binaries and to the Linked Frameworks and Libraries . In the ViewController.m I imported the framework like this: #import <SwiftFramework/SwiftFramework-Swift.h> And I try to create instance of type Test: Test* test = [[Test alloc] init]; Test is recognize but when I try to build it to iPhone it's failed with the

CocoaPods “target has transitive dependencies that include static binaries”

房东的猫 提交于 2019-12-05 02:37:43
I'm trying to install a swift framework I found on GitHub along with the GoogleMaps, GooglePlaces into my Xcode project but for some reason when I try to install the pod file its giving the following error [!] The 'Pods-project1' target has transitive dependencies that include static binaries: (/Users/user1/Desktop/project1/Pods/GoogleMaps/Base/Frameworks/GoogleMapsBase.framework, /Users/user1/Desktop/project1/Pods/GoogleMaps/Maps/Frameworks/GoogleMaps.framework, and /Users/user1/Desktop/project1/Pods/GoogleMaps/Maps/Frameworks/GoogleMapsCore.framework) Here is my Pod File I'm trying to

Hide source code in swift framework when distributing

吃可爱长大的小学妹 提交于 2019-12-04 06:40:39
I have created a swift framework for distribution to private customers and its the first time I have created an iOS framework so I am very clueless about a lot of things. Is it possible that my source codes can be hidden.I have searched everywhere but I can't find a proper answer to this. I'm not sure if Im explaining it thoroughly but to simplify I don't want developers to be able to modify or see the code in my framework. Can't developers just go and edit my code that they embedded in their own app.Is there a way to prohibit this. Thank you. Here is a fantastic tutorial demonstrates how to