Questions tagged [ios-library]

Library or framework for developing iOS apps

36 questions
11
votes
3 answers

Module not found error when importing Swift pod into Objective-C project

I have an existing project which is written in Objective-C. I want to use the iOS Charts library by Daniel Gindi, which is in Swift, in that project. How can I achieve this? importing swift framework into a objective-c project is related, but in my…
Rohan Sanap
  • 2,773
  • 2
  • 21
  • 39
7
votes
1 answer

How to make an universal iOS library for both Objective-C and Swift?

I need to make an library for iOS (either Framework or static library - I haven't decided yet) that can be used in both Objective-C and Swift projects. What is the best way of doing this? The way I see it I have three options: Write the library in…
pajevic
  • 4,607
  • 4
  • 39
  • 73
4
votes
0 answers

Difference between manually file import and pod installation in Xcode?

I want to know what is exact process behind the xcode, when we add thirdparty library or framework using directly drag & drop the folder into out xcode project, which is manually process. and we use the command prompt to install the pod of…
3
votes
1 answer

Is iOS state restoration possible in iOS library? -- Could not find a storyboard named

I have a library with a storyboard and controller classes that implement iOS state preservation. To launch the library from the main app's delegate, I use the following: - (BOOL)application:(UIApplication *)application…
ScottyB
  • 2,167
  • 1
  • 30
  • 46
2
votes
0 answers

How to distribute iOS swift framework without the source code using pods?

I have been trying to create a git repo with my framework and trying to distribute it using pods. I have written a podspec which downloads all the dependencies as well as my framework. The pod functions properly. I even imported the framework to the…
1
vote
0 answers

Building static library with Swift package

I tried to build static library this way: swift build -c release -Xswiftc "-sdk" -Xswiftc "`xcrun --sdk iphoneos --show-sdk-path`" -Xswiftc "-target" -Xswiftc "arm64-apple-ios14.0" But I can't import any classes from the .a file after linking it to…
badadin
  • 507
  • 1
  • 5
  • 18
1
vote
0 answers

How to add custom subclass in cocoa framework

I have just started making a custom library for reusing. I have multiple files which I want to put in that reusable file and am able to do that. But the problem is that I while importing all files are getting imported, I am want to import specific…
arinjay
  • 83
  • 7
1
vote
1 answer

How to import standalone Xcode Project as a module to another project?

Both projects use same frameworks. both have appdelegates. Successfully added both projects in workspace. but can not access each others controllers. making a static library of one project did not help. making a framework of one project?? which way…
Suraj
  • 71
  • 8
1
vote
1 answer

My .framework doesn't seem to be generated

I'm currently trying to maintain a library that was written internally in order to update our cocoaPods repository. In order to do that I've got to be able to get the .framework that's supposed to be generated when i build the library (I guess, I'm…
bottus
  • 883
  • 2
  • 13
  • 32
1
vote
0 answers

How to Create XIB/StoryBoard in Framework

I am creating Framework so i want to create some view in framework itself but i am unable access created XIB/StoryBoard in Framework to any project. If anybody worked on please help me to solve out. Thanks..
1
vote
1 answer

iOS Aggregate Shell Script for Static Framework to support Both Device and All Simulator Architecture

I am creating Framework, I used aggregate target in that framework where we can write shell script to Build the framework for device as well as simulator based on script based on that i will have executable framework that can be imported in any…
1
vote
0 answers

sound receiving Not working in Coredova Related app is having ios Framework

sound receiving Not working in Coredova Related app is having ios Framework(supports Sending and Receiving Tone)? i have framework, that will supports Sending and receiving the Sound When I integrated same framework in native app ,its receiving…
Priya
  • 199
  • 2
  • 16
1
vote
3 answers

Bridging Header File can't find an imported Objective-C project

I'm trying to import this library (SCRecorder) into my Swift project using the "Bridging Header File" method. But I really can't make it work. When I try to build the project, I get the following error : error: 'SCRecorder/SCRecorder.h' file not…
fraxool
  • 3,199
  • 4
  • 31
  • 57
1
vote
1 answer

UrabanAirship on carthage

Trying to use carthage for UrbanAirship using this command github "urbanairship/ios-library" I get this error *** Skipped building ios-library due to the error: Dependency "ios-library" has no shared framework schemes Anyone know how to resolve…
Tim Walsh
  • 1,089
  • 11
  • 27
1
vote
1 answer

Use library classes written in Objective-c inside Swift project

I have a Swift project in which i want to use an sdk which is in a form of library files .a and .h files (written in Objective-C) How do i use the code inside my swift project? When i add the files to my project it dont give the option to create an…
Michael A
  • 5,770
  • 16
  • 75
  • 127
1
2 3