This is a solution for building Unity-iOS project to Cocoa Touch Framework.
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.
-
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. -
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.
This is a simple native app using Unity framework.
arm64
, armv7
, armv7s
iPhone/iPad device
iOS 8.0 +
Unity 5.5.1+
Support Swift
Support Dynamic Library
Better encapsulation and simple interface in UnityOut Framework. This will be very difficult.
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