XCFrameworks
• WWDC19ͷηογϣϯ
• What's New in Swift - WWDC 2019 - Videos -
Apple Developer
• Binary Frameworks in Swift - WWDC 2019 -
Videos - Apple Developer
• [New!] ϑϨʔϜϫʔΫͷόΠφϦ༻ͷ৽
ϑΥʔϚοτ
• .xcframework֦ுࢠ
Build Settings
• "Build Libraries for Distribution"
• > Frameworks or libraries bundled in an
XCFramework should be built with the
Build Libraries for Distribution build setting
set to YES.
• "Supports Mac Catalyst"
• "Derive Mac Catalyst Product Bundle
Identifier"
xcodebuild -create-
xcframework
$ xcodebuild -create-xcframework -help
OVERVIEW: Utility for packaging multiple build configurations of a given library or framework into a single xcframework.
USAGE:
xcodebuild -create-xcframework -framework [-framework ...] -output
xcodebuild -create-xcframework -library [-headers ] [-library [-headers ]...] -output
OPTIONS:
-framework Adds a framework from the given .
-library Adds a static or dynamic library from the given .
-headers Adds the headers from the given . Only applicable with -library.
-output The to write the xcframework to.
-allow-internal-distribution
Specifies that the created xcframework contains information not suitable for public distribution.
-help Show this help content.