You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Frameworks inside framework in Swift

I am developing a framework in iOS, that has a nested structure as given in the attached diagram

Mainly it contains


1)Main Framework - It holds the reference of both "service framework 1" and "service framework 2" and it offers both features to my framework users. I only wanted to distribute Main Framework to my framework users.

2)Service Framework 1 - Uses the "support framework" to complete its activities

3)Service Framework 2 - Uses the "support framework" and another 3rd party framework to support a BLE hardware device.

4)Support Framework- It uses the alarmofire using the pod file.



But when we tried to inlcude Main framework in an iOS application, we started getting the linker issue" Library not loaded: @rpath against the "service framework 1" and "service framework2" .

I understand that this creates a nested framework references, what is the best approach to resolve this issue.


When we tried to add the "Service framework1" and "Service framework 2" in the iOS application along with "Main Framework", then it started working fine.


I undestand about Umbrella framework, but since Apple is discouraging that approach I would like to know whether any other challenges going ahead with Umbrella framework in my case?

iPhone 15

Posted on Dec 7, 2023 12:10 AM

Reply
1 reply

Dec 7, 2023 8:58 AM in response to vshrulez1

vshrulez1 wrote:

I undestand about Umbrella framework, but since Apple is discouraging that approach I would like to know whether any other challenges going ahead with Umbrella framework in my case?

I don't understand your question. You've just described how trying to use an umbrella framework doesn't work. And you know that Apple doesn't support it. Are you trying to ask how to do it anyway? Why not just do all this correctly?


Frameworks can depend on other frameworks. That's no big deal. You just don't embed any frameworks unless your target is an app.

Frameworks inside framework in Swift

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.