Posts

Post not yet marked as solved
0 Replies
772 Views
The requirement is to have a framework (FrameworkA) that adds several other custom modules as dependencies (Module1, Module2, etc.) and then create an xcframework for FrameworkA. To be more precise, I am currently adding the dependencies to FrameworkA using Cocoapods and consequently it generates and links a single framework named Pods_FrameworkA.framework. If I then create an xcframework for FrameworkA and embed it in an app, during link time it gives me a dyld: Library not loaded: Image not found: Module1 error. No wonder, as the rpath really does not include Module1 framework per se. It instead includes Pods_FrameworkA.framework. Any clues how to achieve this with xcframeworks. The requirement is to generate xcframework on a framework that has other frameworks embedded in it (well, via Coaocoapods). PS - I did try to get hold of all the dependency frameworks manually and embed them myself, and it did work on sim but then I started running into code signing issues on device. Besides, that did not look like a very good approach. Please let me know if something is not clear and you'd want me to explain it better.
Posted Last updated
.