Search Unity

iOS distribution provisioning and distribution issue

Discussion in 'iOS and tvOS' started by SimonDarksideJ, Nov 16, 2021.

  1. SimonDarksideJ

    SimonDarksideJ

    Joined:
    Jul 3, 2012
    Posts:
    1,689
    Hitting an infuriating issue when attempting to build a Unity iOS project via Dev Ops.

    Setup:
    * Unity 2020 (latest LTS)
    * iOS Unity project
    * Distribution profile created and assigned in the iOS player settings

    The Unity project and resultant xCode project appear to build fine, but it all falls apart when you attempt to Archive the project to create the IPA file using the command line:

    xcodebuild -exportArchive -archivePath './myProject.xcarchive' -exportPath 'Build' -exportOptionsPlist '$info.plist' -IDEBuildOperationMaxNumberOfConcurrentCompileTasks=8 -jobs 16 -allowProvisioningUpdates -allowProvisioningDeviceRegistration


    But when the Archive runs, we are met with the following error:

    error: exportArchive: "myapp.app" requires a provisioning profile.

    However, this is all configured in Unity, I've downloaded and imported the provisioning file in the iOS Player settings for distribution.