2014-12-10 18:37:18 +00:00
# assimp for iOS
2014-03-21 00:25:35 +00:00
(deployment target 6.0+, 32/64bit)
2014-03-21 00:11:46 +00:00
2024-08-29 21:05:32 +00:00
### Requirements
- cmake
- pkg-config
Note: all these packages can be installed with [brew ](https://brew.sh )
Builds assimp libraries for several iOS CPU architectures at once, and outputs a fat binary / XCFramework from the result.
2014-03-21 00:11:46 +00:00
Run the **build.sh** script from the ```./port/iOS/``` directory. See ** ./build.sh --help** for information about command line options.
```bash
shadeds-Mac:iOS arul$ ./build.sh --help
[!] ./build.sh - assimp iOS build script
- don't build fat library (--no-fat)
- supported architectures(--archs): armv7, armv7s, arm64, i386, x86_64
- supported C++ STD libs.(--stdlib): libc++, libstdc++
```
Example:
```bash
cd ./port/iOS/
2024-08-29 21:05:32 +00:00
./build.sh --stdlib=libc++ --archs="arm64 x86_64" --no-fat --min-version="16.0"
2014-03-21 00:11:46 +00:00
```
Supported architectures/devices:
2024-08-29 21:05:32 +00:00
### Simulator [CPU Architectures](https://docs.elementscompiler.com/Platforms/Cocoa/CpuArchitectures/)
2014-03-21 00:11:46 +00:00
- i386
- x86_64
### Device
- ~~ARMv6 (dropped after iOS 6.0)~~
- ARMv7
- ARMv7-s
- ARM64
2014-12-10 18:37:18 +00:00
### Building with older iOS SDK versions
The script should work out of the box for the iOS 8.x SDKs and probably newer releases as well.
If you are using SDK version 7.x or older, you need to specify the exact SDK version inside **build.sh** , for example:
```
IOS_SDK_VERSION=7.1
```
### Optimization
By default, no compiler optimizations are specified inside the build script. For an optimized build, add the corresponding flags to the CFLAGS definition inside **build.sh** .