-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
51 lines (35 loc) · 1 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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