Following setup actions should be completed before you can use the plugin. If the plugin isn’t installed (for example it was just imported to the project) the settings window will be opened automatically in the Inspector view. If for some reason it wasn’t opened after you imported the plugin, go to:
Window → IOS Native → Edit Settings
The Install Plugin button will copy necessary native libs to the Plugins/IOS folder.
Starting from IOS Native v8.0 You may also choose what APIs would you like to use in your project. Simply use checkboxes to specify what API are you going to use
For example if you will disable Game Center, the Game Center native code will not be added to your project compilation, and plugin will not include GameKit.freamwork in the Xcode build. All Unity C# Game Center call will be simply ignored. So this option may be useful if you would like to keep your project as clean as possible. You can read more about API dependencies in the Dependencies documentation chapter.
The last required setup step is to set your game Apple Id - most parts of the plugin API will use Plugin settings can be found under:
Windows -> IOS Native -> Settings
You can find Apple Id of your app, in the iTunes Connect under your app page, as showed on the screenshot bellow:
Setting the app bundle id is an important step. You should set in under the Build Settings menu. File -> Build Settings and press Player Settings Button.
Setup in Xcode
Note: This step is automatic after version 4.8. All frameworks and dependencies will be added automatically during the build phase. However, if you're building Xcode project on Windows, or for some reason post process is failed on your machine you can do this manually.
Include following frameworks to your iOS project
- ReplayKit.framework (Optional)
Here's how to do that:
Open your project. Click on the Solution Name (project setting will open). Click on "Build Phase Tab", click on "+" button under the "Link Binary" tab.
Enter "store" on pop up search field. Choose StoreKit framework then press the Add button. That's it!
Do the same for the rest of the frameworks.