swift-framework

Adding swift framework extracted from IPA

风流意气都作罢 提交于 2021-02-07 08:25:30
问题 I'm trying to run an IOS app created by another dev that is using a cocoapod from a private repository I have no access to. I managed to extract the .framework bundle from the IPA and add it to the xcode project but it is not being recognized (I get "No such module"). Is it possible to do what I'm trying to achieve? So far, what I've tried: build it in release as I guess the framework in the IPA is in release add the .framework as embedded binary add the .framework as Linked Framework and

Adding swift framework extracted from IPA

♀尐吖头ヾ 提交于 2021-02-07 08:23:28
问题 I'm trying to run an IOS app created by another dev that is using a cocoapod from a private repository I have no access to. I managed to extract the .framework bundle from the IPA and add it to the xcode project but it is not being recognized (I get "No such module"). Is it possible to do what I'm trying to achieve? So far, what I've tried: build it in release as I guess the framework in the IPA is in release add the .framework as embedded binary add the .framework as Linked Framework and

Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.2.4 compiler

萝らか妹 提交于 2021-01-28 23:44:41
问题 After updating to Xcode 11.5, I cannot import My Universal framework. Basically, I have created one framework and also generated the universal framework. The framework was compiled in the lower version of Swift (Swift 5.1). It worked fine previously. While importing the same framework in the same project in XCode 11.5 (Swift 5.2), it throws the following error. Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.2.4 compiler I have already marked the Build Libraries for

How to add a thirdparty SDK (multiple .framework files) to react native library module?

蓝咒 提交于 2020-12-13 03:59:08
问题 I have built a react native library module (with RN 0.63). This module depends on some thirdparty SDKs. When integrated with Android (using .aar files) it works just fine. In case of iOS, I have been able to get the library module working without the SDK (using swift hence with the bridging header). On adding the SDK, I am getting errors such as .h is not avaialble. This is my directory My directory structure: react-native-lib --android --ios ----MyCls.swift ----MyCls.m ----react-native-lib

How to add a thirdparty SDK (multiple .framework files) to react native library module?

ぃ、小莉子 提交于 2020-12-13 03:58:07
问题 I have built a react native library module (with RN 0.63). This module depends on some thirdparty SDKs. When integrated with Android (using .aar files) it works just fine. In case of iOS, I have been able to get the library module working without the SDK (using swift hence with the bridging header). On adding the SDK, I am getting errors such as .h is not avaialble. This is my directory My directory structure: react-native-lib --android --ios ----MyCls.swift ----MyCls.m ----react-native-lib

Swift build settings in Xcode to use lower 4.0.3 version instead of 5.0.1 are not enforced

*爱你&永不变心* 提交于 2020-02-19 12:34:08
问题 I'm creating a simple Swift framework in Xcode 10.3 and trying to use a lower Swift 4.0.3 version. I went to the Xcode build settings and switch from 5.0.1 to 4.0.3 and then build the project. I ran otool against resulted framework to make sure it's built using correct Swift version but the libraries included are still from Swift 5.0.1 (corresponds to 1001.0.82 from the output below): otool -l SwiftyHello.framework/SwiftyHello cmd LC_LOAD_DYLIB cmdsize 56 name @rpath/libswiftCore.dylib

My Swift framework not working in ObjectiveC but works fine in Swift

我们两清 提交于 2020-01-16 18:08:07
问题 I have created a Swift framework that creating a button programmatically, and the action of the button is showing a webView and close it, my framework works fine in Swift project but in Objective C it just create button but it is not taking action and does not show my webView, Note: I am getting the button configuration from server via JSON using SwiftyJSON below is the my Swift Class in addition to SwiftyJSON in the framework project import Foundation import UIKit import WebKit @objc public

Using Swift Framework inside Objective C Project

廉价感情. 提交于 2019-12-22 08:24:16
问题 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

Hide source code in swift framework when distributing

≡放荡痞女 提交于 2019-12-21 12:29:53
问题 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