Comments (4)
I successfully accomplished this recently. The way I did this was in exactly the same way as described here: https://github.com/jverkoey/iOS-Framework/#developing-the-framework-as-a-dependent-project
The key is to make sure that in your public framework's target you:
A) add target dependencies to your private frameworks and
B) link with the private libraries
Both of these can be configured in the Build Phases for your public framework (after you drag-and-drop the private frameworks into your public framework's project). The exact steps are detailed in the above link.
from ios-framework.
Were you able to get your framework created that way? I too would like to package up my framework which has a dependant framework in it. So far, following the steps, I can get it to build and create my public .framework, but if I add it to the app and build, I get an error saying it can't find the dependent header file.
I resolve this by adding the dependant .framework file to the app project folder as well, which removes that error. I would prefer to just have the one .framework file added to the project though.
from ios-framework.
Yes, it worked for me. I don't recall having the problem you mention but the advice I can give is to just try to make sure you've classified your headers correctly (public vs. project vs. private) in both the framework and also in the dependent framework. In my case, I was not attempting to access any headers in the dependent framework directly from my app (I was only using the dependent framework to implement functionality that was exposed in the outer framework that was used by the app). So if you're trying to access interfaces in the dependent framework directly from your app, that's not something I've ever attempted in the past. Hope this helps!
from ios-framework.
Thank you, that was indeed what the problem I was having turned out to be. I had my dependant framework referenced in the public header by app was using. Once I refactored things to remove that I was able to build the framework with dependant framework properly.
Thank you.
from ios-framework.
Related Issues (20)
- Serenity.framework/Serenity (No such file or directory) HOT 2
- nested .bundle's possible? HOT 3
- Can I rename the framework or I need to create new project and target? HOT 2
- Unable to embed a static library in the Framework target HOT 1
- .a is not being created during build HOT 1
- Issue post start up.
- There are xcdatamodel files in frameworks, how can I package the mom files into resource bundle? HOT 1
- Using [NSBundle bundleForClass] gives bad path HOT 1
- Framework is not building for all architecture in Xcode 6.1 HOT 2
- Can I use cocoapods in my framework? HOT 4
- Missing cache file warnings for the framework built in Xcode 7 HOT 2
- Xcode 7 does not have armv7s in $(ARCHS_STANDARD) HOT 1
- XCode 7.1 Archive upload failure
- Error when creating Universal Build HOT 1
- Error when creating Universal Build HOT 1
- Header Files Visiblity
- Show dog breed and dog name in Admin.
- Module compiled with Swift 5.1.2 cannot be imported by the Swift 5.3 Compiler
- Update README to include instructions on how to create a 'pure build' without third party libraries HOT 2
- Will it generate dSYM file?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-framework.