Build for the Apple Kids Category
Remove the AdSupport framework from your iOS and tvOS builds.
Read time 1 minuteLast updated 15 days ago
Apps in the Apple App Store Kids Category (Apple documentation) might be rejected if they include the AdSupport framework. Starting in version 5.4, Unity In-App Purchasing (IAP) includes AdSupport in iOS and tvOS builds by default to read the advertising identifier (IDFA). As a result, App Store review can reject a Kids Category app that uses Unity IAP 5.4 or later. Earlier versions of Unity IAP don't include AdSupport.
To remove AdSupport from your build, add the scripting define symbol to your project. When set, iOS and tvOS builds leave out the AdSupport framework and the code that reads the advertising identifier (IDFA).
IAP_DISABLE_IDFAPrerequisites
- Unity IAP 5.5.0 or later. If your app uses Unity IAP 5.4, upgrade to 5.5.0 or later to remove AdSupport.
Add the scripting define symbol
- Go to Edit > Project Settings > Player.
- Select the iOS tab.
- In Other Settings > Script Compilation, add to Scripting Define Symbols.
IAP_DISABLE_IDFA - Select Apply.
- If you build for tvOS, repeat steps 2 to 4 on the tvOS tab.
Your next iOS or tvOS build doesn't include the AdSupport framework or the code that reads the IDFA.