Create an account

Very important

  • To access the important data of the forums, you must be active in each forum and especially in the leaks and database leaks section, send data and after sending the data and activity, data and important content will be opened and visible for you.
  • You will only see chat messages from people who are at or below your level.
  • More than 500,000 database leaks and millions of account leaks are waiting for you, so access and view with more activity.
  • Many important data are inactive and inaccessible for you, so open them with activity. (This will be done automatically)


Thread Rating:
  • 346 Vote(s) - 3.53 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to Include Cocoapods dependencies when exporting .framework?

#1
I have an Xcode workspace where I am building a framework, `MainFramework`. This framework uses Cocoapods with two dependencies, `SubFrameworkA` and `SubFrameworkB`.

I would like to provide `MainFramework.framework` to other apps, without needing them to manually include `SubFrameworkA` and `SubFrameworkB` - or even better (but not necessary), also without them knowing that I've used these sub frameworks. I currently use [this post-archive script][1] to create a universal framework for simulators and devices.

When I drag `MainFramework.framework` to a brand new `SampleApp` Xcode project, add it to "Frameworks, Libraries, and Embedded Content", and make sure it is set to "Embed & Sign", the app crashes when it launches with this error:

dyld: Library not loaded: @rpath/SubFrameworkA.framework/SubFrameworkA
Referenced from: /Users/dgcko/Library/Developer/CoreSimulator/Devices/092DD076-BB48-42B7-8D2A-166EE3A1F0D5/data/Containers/Bundle/Application/E1BA51D7-5F2F-4E0F-B88F-D3244AA934EB/SampleApp.app/Frameworks/MainFramework.framework/MainFramework
Reason: image not found


What I've read:

- Creating an Umbrella framework is not recommended by Apple, as I do not own the sub frameworks. And if SampleApp wants to use one of the SubFrameworks, there will be clashes as there will be two versions of the sub frameworks in their project (theirs and the one in MainFramework).

- [According to this issue][2], it doesn't seem possible as the SubFrameworks are dynamically linked.

- [This answer][3] also seems to suggest the same - SampleApp needs to also manually include the sub frameworks.

Does anybody know if what I am trying to do is possible, somehow? Any help would be much appreciated.

[1]:

[To see links please register here]

[2]:

[To see links please register here]

[3]:

[To see links please register here]

Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

©0Day  2016 - 2023 | All Rights Reserved.  Made with    for the community. Connected through