I’m trying to find a way to switch between iPhone and iPad builds via a build script for our Continuous Integration system. It looks like I can use PlayerSettings.bundleIdentifier to switch the bundle ID but how would I make the build be an iPad or iPhone only one?
For anyone else who stumbles into the same problem this appears to be the solution:
PlayerSettings.iOS.targetDevice = iOSTargetDevice.iPadOnly;