Note: Further work on UnityBuildKit has been discontinued due to the fact that Unity has created their own functionality for embedding Unity within iOS and Android projects in Unity 2019.3.
UnityBuildKit is a command line tool that embeds a Unity project into an iOS application. Both the Xcode and Unity project are automatically created, configured, and linked for immediate use after successful generation.
UnityBuildKit
requires Xcode 9, Swift 4, and Unity
brew tap handsomecode/UnityBuiltKit https://github.com/handsomecode/UnityBuildKit.git
brew install UnityBuildKit
git clone https://github.com/handsomecode/UnityBuildKit
cd UnityBuildKit
make
.package(url: "https://github.com/handsomecode/UnityBuildKit", from: "1.0.0"),
Currently, Unity needs to be closed for this process to begin.
mkdir ExampleProject
cd ExampleProject
ubconfig.json
file where you can specify project information (see more information here)UnityBuildKit config
$ UnityBuildKit generate
The built Unity files are under ios_build/
. When building your Unity project, make sure that you append the new build to this ios_build/
folder so that refresh script knows where the Unity files are located.
The iOS project is automatically updated and refreshed every time the Unity project is built. You shouldn't need to do anything! 😀
This tool is built using:
and the wonderful dependencies they bring with them.
Inspiration for building UnityBuildKit
came after running into several problems while trying to manually do this process and reading over a github issue trying to resolve those problems (big thanks to jiulongw).
UnityBuildKit is licensed under the MIT license. See LICENSE for more info.
link |
Stars: 29 |
Last commit: 4 years ago |
Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics