Questions tagged [swift-custom-framework]

26 questions
50
votes
3 answers

public struct in framework init is inaccessible due to 'internal' protection level in compiler

I have a struct in a framework called "MyFramework" public struct ShipmentPackage:Encodable { let package_code:String let weight:Float } Then when I try to create a ShipmentPackage in another project/framework import MyFramework let onePackage…
Qiquan Lu
  • 615
  • 1
  • 5
  • 10
19
votes
2 answers

Error ITMS-90206 Invalid bundle contains disallowed file 'Frameworks'

I have a problem uploading my application into the Store via Xcode, this one in particular. I saw a lot of post about this error, but all are talking about Extension App, that I do not use. I'm using a Custom framework and Cocoapods. You can see…
Kevin Machado
  • 4,141
  • 3
  • 29
  • 54
7
votes
0 answers

No such module error when importing Swift custom framework

I have a large and old Xcode project with a lot of mixed Objective C/Swift code. On wanting to add an iMessages extension I found I have to start with a framework to share code between the app and the extension. I tested this in a new project by…
Adam Carter
  • 4,741
  • 5
  • 42
  • 103
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
2 answers

Library not loaded @rpath/AFNetworking iOS

I've facing very strange issue while installing my app onto device using custom (my own created) framework. MyFramework uses AFNetworking, Dropbox and Google drive from pods, and I just dragged MyFramework into my app and just build(which is fine)…
Aleem
  • 3,173
  • 5
  • 33
  • 71
3
votes
2 answers

How to convert a swift project with storyboards and xibs into a custom sdk/framework

I'm creating a sdk in which I want to use all the functionality and storyboards and xibs of my swift application. So that if I want import my application into some other application, then i can directly import my sdk into other application and…
anirudh
  • 49
  • 1
  • 5
3
votes
1 answer

'result' is inaccessible due to 'internal' protection level

I want to create custom framework for universal API request using URLSession. So I have used this link. I will be using this project as a custom framework. So to use that I have changed its access specifier by open .And using thislink I have…
ki123
  • 31
  • 1
  • 4
3
votes
0 answers

Adding Custom Framework in to playground - swift 3.0

I am facing issues while importing my custom framework in to the playground. It always says 'No such module'. I have tried adding playground to workspace as well as to the project target but found no luck. In swift files it is working perfectly…
2
votes
1 answer

Facing issue when simpling runing the build and not pressing cleaning issue

I have created a custom framework and made the framework universal-framework for simulator and iphone using following code echo "project" #open "${PROJECT_DIR}" if [ "true" == ${ALREADYINVOKED:-false} ] then echo "RECURSION: Detected,…
bThakkar
  • 23
  • 4
2
votes
3 answers

How to set multiple background colors in iOS Chart Graph Framework

I want to set multiple background colors in a chart view. A single color can be set in a background of the chart view but there is no way to set multiple colors. Percentage-wise wants to add background color 0% to 20% - Red color, 21% to 60% -…
RahulSalvikar
  • 658
  • 1
  • 10
  • 31
2
votes
1 answer

Custom Xcode Build Configurations with Custom Frameworks and Cocoapods

I have a project with a main iOS target, some custom frameworks whose source files are in the same project, and CocoaPods. I recently changed my Xcode build configuration names and added two more in order to cover two environments (staging,…
2
votes
0 answers

How to add a custom framework to "Linked Frameworks and Libraries" with cordova?

I'm including a custom framework in my Cordova plugin. I already can include manually on Xcode but I would like to include automatically after run: cordova platform add ios my current plugin.xml is :
2
votes
1 answer

Create iOS framework using swift

I am trying to create an iOS framework using swift. I follow this blog and also few others but the output is not the way I want. Below is my original source file public class TestClass: NSObject { // publicVar description public var…
Tapas Pal
  • 7,073
  • 8
  • 39
  • 86
1
vote
0 answers

Xcode 11.6 having error while importing custom framework: Module compiled with Swift 5.3 cannot be imported by the Swift 5.2.4

Module compiled with Swift 5.3 cannot be imported by the Swift 5.2.4 compiler: /Users/myMac/Desktop/SampleAdopter_1/SampleAdopter_1/Custom.framework/Modules/Custom.swiftmodule/armv7-apple-ios.swiftmodule We are creating a custom framework using CI…
hd007
  • 11
  • 3
1
vote
1 answer

Error While Exporting With Bitcode Enable Using Custom Framework

Error While Exporting. All i386 architectures have been already removed.
1
2