diff options
author | phunkyfish <phunkyfish@gmail.com> | 2020-02-06 17:48:21 +0000 |
---|---|---|
committer | phunkyfish <phunkyfish@gmail.com> | 2020-02-27 12:51:41 +0000 |
commit | 8810f7ecab3eedc859dd1acebc342ffea4d60b34 (patch) | |
tree | 0dfa4f6e7d06c0c5f42a74e52974ee31dd68e9ad /docs/README.iOS.md | |
parent | cde760b94e57b2e07ab09dcdd25f61ca525266d2 (diff) |
[ios] set minimum ios version to 11.0 and cleanup dependencies
Diffstat (limited to 'docs/README.iOS.md')
-rw-r--r-- | docs/README.iOS.md | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/docs/README.iOS.md b/docs/README.iOS.md index 0cff5ced38..11dd5aae66 100644 --- a/docs/README.iOS.md +++ b/docs/README.iOS.md @@ -1,7 +1,7 @@ ![Kodi Logo](resources/banner_slim.png) # iOS build guide -This guide has been tested with macOS 10.13.4()17E199 High Sierra and Xcode 9.3(9E145). It is meant to cross-compile Kodi for iOS using **[Kodi's unified depends build system](../tools/depends/README.md)**. Please read it in full before you proceed to familiarize yourself with the build procedure. +This guide has been tested with macOS 10.13.4(17E199) High Sierra and 10.14.4(18E226) Mojave on Xcode 9.4.1(9F2000) and Xcode 10.2(10E125). It is meant to cross-compile Kodi for iOS using **[Kodi's unified depends build system](../tools/depends/README.md)**. Please read it in full before you proceed to familiarize yourself with the build procedure. ## Table of Contents 1. **[Document conventions](#1-document-conventions)** @@ -52,10 +52,11 @@ Several different strategies are used to draw your attention to certain pieces o ## 2. Prerequisites * **[Java Development Kit (JDK)](http://www.oracle.com/technetwork/java/javase/downloads/index.html)** * **[Xcode](https://developer.apple.com/xcode/)**. Install it from the AppStore or from the **[Apple Developer Homepage](https://developer.apple.com/)**. -* Device with **iOS 9.0 or newer** to install Kodi after build. +* Device with **iOS 11.0 or newer** to install Kodi after build. Building for iOS should work with the following constellations of Xcode and macOS versions: * Xcode 9.x against iOS SDK 11.x on 10.13.x (High Sierra)(recommended) + * Xcode 9.x against iOS SDK 11.x on 10.14.x (Mojave)(recommended) **WARNING:** Start Xcode after installation finishes. You need to accept the licenses and install missing components. @@ -75,25 +76,17 @@ git clone https://github.com/xbmc/xbmc kodi **[back to top](#table-of-contents)** ## 4. Configure and build tools and dependencies -Kodi can be built as either a 32bit or 64bit program. The dependencies are built in `$HOME/kodi/tools/depends` and installed into `/Users/Shared/xbmc-depends`. +Kodi can be built as a 64bit program for iOS. The dependencies are built in `$HOME/kodi/tools/depends` and installed into `/Users/Shared/xbmc-depends`. **TIP:** Look for comments starting with `Or ...` and only execute the command(s) you need. -Configure build for 64bit (**recommended**): +Configure build: ``` cd $HOME/kodi/tools/depends ./bootstrap -./configure --host=arm-apple-darwin --with-cpu=arm64 +./configure --host=arm-apple-darwin ``` -Or configure build for 32bit: -``` -cd $HOME/kodi/tools/depends -./bootstrap -./configure --host=arm-apple-darwin --with-sdk=9.3 -``` -**WARNING:** iOS SDK 11 no longer supports 32bit. - Build tools and dependencies: ``` make -j$(getconf _NPROCESSORS_ONLN) @@ -103,9 +96,9 @@ make -j$(getconf _NPROCESSORS_ONLN) **WARNING:** Look for the `Dependencies built successfully.` success message. If in doubt run a single threaded `make` command until the message appears. If the single make fails, clean the specific library by issuing `make -C target/<name_of_failed_lib> distclean` and run `make`again. -**NOTE:** **Advanced developers** may want to specify an iOS SDK version (if multiple versions are installed) in the configure line(s) shown above. The example below would use the iOS SDK 9.0: +**NOTE:** **Advanced developers** may want to specify an iOS SDK version (if multiple versions are installed) in the configure line(s) shown above. The example below would use the iOS SDK 11.0: ``` -./configure --host=arm-apple-darwin --with-cpu=arm64 --with-sdk=9.0 +./configure --host=arm-apple-darwin --with-sdk=11.0 ``` **[back to top](#table-of-contents)** | **[back to section top](#4-configure-and-build-tools-and-dependencies)** @@ -163,12 +156,7 @@ cd $HOME/kodi-build /Users/Shared/xbmc-depends/x86_64-darwin17.5.0-native/bin/cmake -G Xcode -DCMAKE_TOOLCHAIN_FILE=/Users/Shared/xbmc-depends/iphoneos11.3_arm64-target-debug/share/Toolchain.cmake $HOME/kodi ``` -Or generate Xcode project for ARM 32bit: -``` -/Users/Shared/xbmc-depends/x86_64-darwin15.6.0-native/bin/cmake -G Xcode -DCMAKE_TOOLCHAIN_FILE=/Users/Shared/xbmc-depends/iphoneos9.3_armv7-target/share/Toolchain.cmake $HOME/kodi -``` - -**WARNING:** The toolchain file location differs depending on your iOS and SDK version. You have to replace `x86_64-darwin15.6.0-native` and `iphoneos11.3_arm64-target-debug` or `iphoneos9.3_armv7-target` in the paths above with the correct ones on your system. +**WARNING:** The toolchain file location differs depending on your iOS and SDK version. You have to replace `x86_64-darwin15.6.0-native` and `iphoneos11.3_arm64-target-debug` in the paths above with the correct ones on your system. You can check `Users/Shared/xbmc-depends` directory content with: ``` |