Skip to content

jsloop42/xcframework-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

xcframework-build
-----------------

A build script to generate universal xcframework with code signing for iOS and
macOS platforms. Other platforms can be added as required easily.

In order for generating the framework for a platform it should be added under
"Supported Destinations" for the framework target in Xcode.

Set the variables specific to the project before running build.

The bundle will have the following slices.

$ ls Frameworks/framework-name.xcframework/
Info.plist
_CodeSignature
ios-arm64
ios-arm64_x86_64-maccatalyst
ios-arm64_x86_64-simulator
macos-arm64_x86_64

Build
-----

./build

Building individually
---------------------

Make sure the required directories are created.

# Create archive
./build archive

# Create xcframework
./build framework

# Code sign
./build sign

# Delete existing archives, frameworks
./build clean

# Delete existing frameworks
./build clean-framework

# Generate xcframework for iOS only project
./build ios

# Generate xcframework for macOS only project
./build macos

About

Build script to generate multiplatform universal framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages