It seams will run a “RepackageFromStage” when package from PC and it need a stub ipa to package. Before that it indeed have packaged a stub.
BUT the with the “-createstub” param it will run a debug check(NOT distribution check) for the provision file and pick the “Dev” provision.
So if select the Developer Certificate and Dev Provision in Unreal Editor Settings, it will package the “Distro_” ipa seccessful with the Dev cert. But this ipa can’t be used to upload to AppStore because of the wrong cert.
But if select the Distribution Certificate and Provision in Unreal Editor Settings, it will fail to package the stub when Check dependencies proccess:
UATHelper: Packaging (iOS): UnrealBuildTool: Provisioning profile “GameDis” doesn’t include signing certificate “iPhone Developer: xxxx”.
UATHelper: Packaging (iOS): UnrealBuildTool: Provisioning profile “GameDis” doesn’t match the entitlements file’s value for the get-task-allow entitlement.