Questions tagged [swift-framework]

62 questions
19
votes
3 answers

CocoaPods "target has transitive dependencies that include static binaries"

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…
Satish
  • 325
  • 1
  • 3
  • 12
10
votes
1 answer

Hide source code in swift framework when distributing

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…
EmirC
  • 468
  • 5
  • 14
9
votes
0 answers

Swift Version Conflict: this SDK is not supported by the compiler - using BUILD_LIBRARY_FOR_DISTRIBUTION setting. What could be the issue?

I'm building a Swift static library with: Xcode 13.2 (Swift compiler 5.5.2) iOS Deployment target 12.0 Build library for distribution YES Skip install NO Swift language version 5 and tried with 4.2 Dependency managed with CocoaPods: Japx…
7
votes
1 answer

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

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…
Mando
  • 11,414
  • 17
  • 86
  • 167
7
votes
1 answer

Converting Swift project into an easy-to-use framework for Cocoapods

So I need a bit of help since I can't really figure it out and have spent a lot of time on it already without any results. Most of the things I find on the internet are on how to convert a swift project into a framework, but my issue isn't the…
JoniVR
  • 1,839
  • 1
  • 22
  • 36
7
votes
0 answers

Swift private Framework with backward xcode version compatibility

This is my first framework using Swift language and it's private framework. It's worked as expected until new Xcode 9.3 release. After upgrading newer Xcode got an issue like this Module compiled with Swift 4.0.3 cannot be imported in Swift…
6
votes
2 answers

Custom Framework : dyld: Symbol not found: _$s11CryptoSwift7PaddingO5pkcs7yA2CmFWC

I am using a custom framework created using 3 different cocoapods. I am using this custom framework in a client app by dropping the xc framework created. As soon as the client app launches it crashes with below crash logs. I have seen this issue…
Max
  • 5,380
  • 6
  • 42
  • 66
5
votes
0 answers

SwiftUI Preview not finding image of used framework

My project consists of a main iOS app project and three additional frameworks for Presentation, Domain and Data layers. My own frameworks are embedded in the main target. Third party frameworks are managed by CocoaPods and linked dynamically. Now if…
5
votes
0 answers

Create Umbrella framework using Carthage or CocoaPods

I have created Umbrella framework by adding sub-framework manually. I wanted to know how to manage dependency of this sub-frameworks using Carthage or Cocoapods. I know that creating Umbrella framework is highly discouraged by Apple. I also wanted…
Jarvis The Avenger
  • 2,750
  • 1
  • 19
  • 37
5
votes
2 answers

Adding swift framework extracted from IPA

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…
Ivo
  • 8,172
  • 5
  • 27
  • 42
5
votes
0 answers

Using Swift Framework inside Objective C Project

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…
Yanay Hollander
  • 327
  • 1
  • 5
  • 19
4
votes
0 answers

Unable to load module map in Swift Dynamic Framework

I'm working on a Swift dynamic framework which has some Objective-C code in it. I need to use some legacy Objective-C code without exposing the code to it. I came to know that I can use a module map to avoid adding the headers as public in the…
ebby94
  • 3,131
  • 2
  • 23
  • 31
4
votes
1 answer

How to create a framework with Objectivec files and Swift files

I have a Xcode project with Obiective-c files and swift files, Now i want to create a framework with both classes, Is this possible ?
Mohamed Raffi
  • 1,165
  • 1
  • 7
  • 15
3
votes
1 answer

Create a Swift framework with submodules

I have an Xcode project with a main app and a Swift Framework called Networking. Now I'd like to split that Networking module into a submodule with only some utility classes so that they are available to the main app only when explicitly imported.…
Jan
  • 7,444
  • 9
  • 50
  • 74
3
votes
1 answer

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

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…
1
2 3 4 5