/unity-ios-framework

A solution for building Unity-iOS project to Cocoa Touch Framework

Primary LanguageC++

Unity-iOS project to Framework

This is a solution for building Unity-iOS project to Cocoa Touch Framework.

icon

What's this used for?

When you developed some 3D features by Unity, and you wanna provide these features for other iOS Native Apps. There is no perfect way to do this before! With this solution, you can build your Unity-iOS project to a Cocoa Touch Framework, then other native project could use the framework. It's very useful when making VR/AR/MR SDK.

Usage

  1. Export your Unity project to Unity-iOS project. Make sure your iOS Player Settings —> Target SDK is : Device SDK. Because this solution only support running on iOS device, don't support simulator.

  2. Build Unity-iOS to Cocoa Touch Framework, then add it to your testing Xcode project.

    Follow this instruction: config-instrution / 配置说明

    There maybe a little complicate, but it will be a work.

Preview

This is a simple native app using Unity framework.

preview

Supported versions

arm64, armv7, armv7s iPhone/iPad device

iOS 8.0 +

Unity 5.5.1+

To do

Support Swift

Support Dynamic Library

Better encapsulation and simple interface in UnityOut Framework. This will be very difficult.

Thanks

Daniel Arantes Loverde and his Bitbucket repo Unity, Vuforia and iOS native subclass

Build Unity app as framework | Unity Community

IL2CPP: crashes | Unity Commnity

How can I build the ios unity project as ios framework project? | Stack Overflow

@JjieChen

@zhoukaijun123

Contact

linshusen@gmail.com

linshs@qq.com