Add a custom framework in a custom framework
NickName:jomafer Ask DateTime:2013-01-23T18:17:57

Add a custom framework in a custom framework

I am developing an iOS Real Framework with XCode. This Framework (A) needs an external framework (B) to compile. For example:

A FRAMEWORK
+Frameworks
 -B FRAMEWORK

It is imported in A by using:

#import<BFRAMEWORK/bframework.h>

I create the A.framework to be linked in a project.

The problem is when I link this A Framework in a project. The project returns "BFRAMEWORK/bframework.h" not found.

I want to include B framework in A.framework so not to need to add B framework also in my project. For example:

MY PROJECT
+Frameworks
 -A.Framework (with B Framework included inside).

Do you know how to do this? or another way to do this?

Thank you!

Copyright Notice:Content Author:「jomafer」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/14477236/add-a-custom-framework-in-a-custom-framework

Answers
BCBlanka 2014-09-12T14:30:24

I was able to create this structure with iOS-Universal-Framework: https://github.com/kstenerud/iOS-Universal-Framework.\n\nI created a Static iOS Framework 'FrameworkB' with 1 method, which is imported in a second Static iOS Framework 'Framework A' with 1 method that's calling FrameworkB's method. I then created an iPad app which imports FrameworkA and calls the method. Code runs fine and prints from FrameworkA (which fetches from FrameworkB) and of course FrameworkB is not imported. Please note that all frameworks have to be built for the same profile (i used iPad), otherwise you'll get linker errors.",


changtung 2014-09-18T19:39:06

Maybe you add BFramework in compile sources?\nOr add headers in header search paths?\nor set dependency in build settings.",


More about “Add a custom framework in a custom framework” related questions

Cordova add custom framework - Link errors

I'm trying to add a custom framework to the plugin I'm building. The issue is that the header file has dependencies to my framework folder If I do it like this, I have an issue because it can't fi...

Show Detail

Custom font in framework for SwiftUI

I am creating a framework for iOS apps. It will contain some Label, Button, Lists, ... all as SwiftUI views, but in a special design. In the framework I've added a SwiftUI view called &quot;Content...

Show Detail

Can I add Pods in Custom framework?

I have the custom created framework. I want to use CryptoSwift Pods in this framework. First, I create a custom framework and I can use this framework(From Frameworks folder Example.framework) from

Show Detail

Add custom Icons to Ionic Framework on Intel XDK

Please, looking for a tutorial or explanation that can guide me how to add custom icons to ionic framework. Tried a lot to use custom icons however couldn't understand how the framework make use of...

Show Detail

Framework for custom maps

I want to develop a journey planning app that will use the customer's own custom created map tiles, custom configuration file, custom coordinate system etc. My question: Is osmdroid framework suit...

Show Detail

How to add spotify framework to an custom pod

I try to add the Spotify framework to my custom cocoaPod project but i got an error : ld: framework not found Spotify clang: error: linker command failed with exit code 1 (use -v to see invocation...

Show Detail

Add a custom framework in a custom framework

I am developing an iOS Real Framework with XCode. This Framework (A) needs an external framework (B) to compile. For example: A FRAMEWORK +Frameworks -B FRAMEWORK It is imported in A by using: #

Show Detail

How to add Cocoa pod dependency to custom framework swift

I am using GVRSDK library pod in my custom framework but if i add this some other project target its not getting import. I am using module map because the library was not getting import in custom

Show Detail

How to archive an app that includes a custom framework?

I have an xcode framework project that I've created, which I can compile into a myframework.framework file. After compiling, I drag this framework into the Frameworks project folder of my applicati...

Show Detail

Cocoapods with custom framework

I want to generate an podspec-file which has an custom framework, one class and a third party framework as dependency. The single class refers to the custom framework by including one header of t...

Show Detail