Previously I posted a blog regarding an easy integration of TestFlight SDK to Unity project. However, it’s far from perfect, since you would have to manually update the generated code whenever the iOS project are rebuilt.
I worked more to find a much better way to handle it, and put the relate code to github so everyone could access it.
Here is the new integration steps:
- Sync it to your Unity project folder, make sure the source files (TestFlight*.*) are put in Assets/Plugins/iOS
- Get the TestFlight SDK from official website. Put TestFlight.h & libTestFlight.a under the same folder.
And how to use it:
Currently, these functions are now available in Unity:
TestFlightUnity.TakeOff(“<your TestFlight token>”); // Start the TestFlight. Call it once when your game starts
TestFlightUnity.PassCheckpoint(“<checkpoint name>”); // Log a checkpoint, which you could view later on TestFlight website
All the TestFlight functionality will be automatically integrated and activated after you build the project for iOS platform. No extra step is needed now!