lime icon indicating copy to clipboard operation
lime copied to clipboard

IOS embed a dynamic framework xcode project changes

Open lcsatchell opened this issue 6 months ago • 0 comments

This pull request updates the generated Xcode project when using embed=true with an iOS framework dependency. Specifically, it: Adds a "Copy Files" build phase Updates the Runpath Search Paths

These changes ensure that dynamic framework dependencies are correctly embedded and included in the final app bundle. Note: You’ll need to rebuild Lime tools after applying these changes.

Why this is needed: Dynamic frameworks aren’t automatically embedded in the same way static frameworks are. This becomes particularly important when working with Swift code, which must be included in a dynamic framework.

Use case: To include Swift code in an extension, it was added to a custom dynamic framework. That framework was then included in the extension using embed=true. Without these changes, the framework wouldn't be properly compiled into the app.

lcsatchell avatar Apr 14 '25 11:04 lcsatchell