You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+53-16
Original file line number
Diff line number
Diff line change
@@ -1,9 +1,10 @@
1
-
# Boost C++ for iOS, visionOS, macOS (Intel & Apple Silicon M1) & Catalyst - arm64 / x86_64
1
+
# Boost C++ for iOS, watchOS, tvOS, visionOS, macOS, Catalyst, Simulators - Intel(x86_64) / Apple Silicon(arm64)
2
2
3
3
Supported version: 1.85.0 (use the appropriate tag to select the version)
4
4
5
-
This repo provides a universal script for building static Boost C++ libraries for use in iOS and Mac OS X & Catalyst applications.
6
-
The latest supported Boost version is taken from: https://boostorg.jfrog.io/artifactory/main/release/1.85.0/source/boost_1_85_0.tar.bz2
5
+
This repo provides a universal script for building static Boost C++ libraries for use in iOS, watchOS, tvOS, visionOS, and macOS & Catalyst applications.
6
+
7
+
Since the Boost distribution URLs are often broken and change, the script tries to download it from the links specified in the LOCATIONS file in the master branch. Only after the SHA256 hash of the downloaded archive is verified, the libraries are unpacked and compiled.
2)```xcode-select -p``` must point to Xcode app developer directory (by default e.g. /Applications/Xcode.app/Contents/Developer). If it points to CommandLineTools directory you should execute:
17
18
```sudo xcode-select --reset``` or ```sudo xcode-select -s /Applications/Xcode.app/Contents/Developer```
18
19
3) You should not have your own user-config.jam file in your home directory!
19
-
4)For the creation of visionOS related artifacts and their integration into the resulting xcframeworks, XROS.platform and XRSimulator.platform should be available in the folder: /Applications/Xcode.app/Contents/Developer/Platforms
20
+
4)Building for tvOS, watchOS, visionOS and their simulators requires the appropriate SDKs to be installed in the folder /Applications/Xcode.app/Contents/Developer/Platforms
20
21
21
22
## Building notes
22
-
1) The 'locale' and 'regex' libraries are built using the ICU backend. ICU build scripts are taken from https://github.com/apotocki/icu4c-iosx and run using the 'pod' utility.
23
-
2) The 'test' library is built for iOS with the BOOST_TEST_NO_MAIN flag.
23
+
1) The 'locale' and 'regex' libraries are built using the ICU backend. There are two ways to get it. The first (default) is when the ICU libraries are automatically built before Boost is built using the build script from https://github.com/apotocki/icu4c-iosx . The second is by specifying the ICU4C_RELEASE_LINK environment variable where prebuit binaries can be downloaded from.
24
+
2) The 'test' library is built for iOS and visionOS with the BOOST_TEST_NO_MAIN flag.
25
+
3) The 'test' library is built for watchOS and tvOS with the BOOST_TEST_NO_MAIN and BOOST_TEST_DISABLE_ALT_STACK flags.
# have fun, the result artifacts will be located in 'frameworks' folder.
36
-
# Then you can add desirable xcframewors in your XCode project. The process is described, e.g., at https://www.simpleswiftguide.com/how-to-add-xcframework-to-xcode-project/
37
-
```
38
-
- Use cocoapods. Add the following lines into your project's Podfile:
40
+
# Then you can add desirable xcframeworks in your XCode project. The process is described, e.g., at https://www.simpleswiftguide.com/how-to-add-xcframework-to-xcode-project/
41
+
```
42
+
# Selecting Platforms and Architectures
43
+
build.sh without arguments builds xcframeworks for iOS, macOS, Catalyst and also for watchOS, tvOS, visionOS if their SDKs are installed on the system. It also builds xcframeworks for their simulators with the architecture (arm64 or x86_64) depending on the current host.
44
+
If you are interested in a specific set of platforms and architectures, you can specify them explicitly using the -p argument, for example:
45
+
```
46
+
scripts/build.sh -p=ios,iossim-x86_64
47
+
# builts xcframeworks only for iOS and iOS Simulator with x86_64 architecture
48
+
```
49
+
Here is a list of all possible values for '-p' option:
Suffix '-both' means that xcframeworks will be built for both arm64 and x86_64 architectures.
54
+
The platform names for macosx and simulators without an architecture suffix (e.g. macosx, iossim, tvossim) mean that xcframeworks are only built for the current host architecture.
55
+
56
+
## Selecting Libraries
57
+
If you want to build specific boost libraries, specify them with the -l option:
58
+
```
59
+
scripts/build.sh -l=log,program_options
60
+
# Note: Some libraries depend on other Boost libraries. In this case, you should explicitly add them all in the -l option.
61
+
```
62
+
## Rebuild ICU option
63
+
To rebuild the ICU library, which is used when building some Boost libraries (locale and regex), use the --rebuildicu option.
Copy file name to clipboardexpand all lines: boost-iosx.podspec
+13-4
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,26 @@
1
1
Pod::Spec.newdo |s|
2
2
s.name="boost-iosx"
3
-
s.version="1.85.0.0"
4
-
s.summary="Boost C++ libraries for macOS, iOS, and visionOS, including both arm64 and x86_64 builds for macOS, Mac Catalyst, iOS Simulator, and visionOS Simulator."
3
+
s.version="1.85.0.1"
4
+
s.summary="Boost C++ libraries for macOS, iOS, watchOS, tvOS, and visionOS, including builds for Mac Catalyst, iOS Simulator, watchOS Simulator, tvOS Simulator, and visionOS Simulator."
0 commit comments