-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Introduce Mergeable Library Support #127
Conversation
- [Configuring your project to use mergeable libraries | Apple Developer Documentation](https://developer.apple.com/documentation/xcode/configuring-your-project-to-use-mergeable-libraries) | ||
- [Meet mergeable libraries - WWDC23 - Videos - Apple Developer](https://developer.apple.com/videos/play/wwdc2023/10268/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thank you for the links
Mergeable frameworks have `LC_ATOM_INFO` load command in the binary. You can check it by `otool` command. | ||
|
||
```shell | ||
echo $(otool -l path/to/binary) | grep "LC_ATOM_INFO" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q.path/to/binary
means frameworkName.framework/frameworkName
?
| -\-configuration, -c | Build configuration for generated frameworks (debug / release) | release | | ||
| -\-output, -o | Path indicates a XCFrameworks output directory | $PACKAGE_ROOT/XCFrameworks | | ||
| -\-embed-debug-symbols | Whether embed debug symbols to frameworks or not | - | | ||
| -\-framework-type | Framework type to generate Available: dynamic, static or mergeable) | dynamic | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q. Default is dynamic
, correct?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, third column is the default value
I added the test case |
Introduce a new framework type,
mergeable,
to build a Mergeable Library.--static
flag is deprecated. Use--framework-type static
instead.