IPP ERROR: Stub IPA does not appear to be signed correctly (missing mobileprovision or CodeResources)

I’m getting this strange error while trying to package iOS from windows

IPP ERROR: Stub IPA does not appear to be signed correctly (missing mobileprovision or CodeResources)

This is my configuration:

on Mac:

  • rsync activated
  • enabled file sharing
  • enabled remote login
  • enabled remote management
  • Provisioning profile and signing certificates installed (I’ve also copied the signing cert to the system keychain… not just to the login one)

On Windows

  • UE4.24
  • Correctly Imported and selected provisioning profile and signing cert (i see them in green in the iOS mobile provision panel on Project Settings)
  • Correctly generated SSH keys from the iOS remote build panel

but I get the error stated in the title. I’m attaching here a portion of the log:

CWD: E:\UnrealEngine\UE_4.24\Engine\Binaries\DotNET\IOS
UATHelper: Packaging (iOS):   Initial Dir: E:\UnrealEngine\UE_4.24
UATHelper: Packaging (iOS):   Env CWD: E:\UnrealEngine\UE_4.24\Engine\Binaries\DotNET\IOS
UATHelper: Packaging (iOS):   BranchPath = DESKTOP-73864OC/E/UnrealEngine/UE_4.24/Engine/Binaries --- GameBranchPath = DESKTOP-73864OC/E/UnrealProjects/Leedr2/Binaries
UATHelper: Packaging (iOS):   
UATHelper: Packaging (iOS):   ----------
UATHelper: Packaging (iOS):   Executing command 'Clean' ...
UATHelper: Packaging (iOS):   Cleaning temporary files from PC ...
UATHelper: Packaging (iOS):    ... cleaning: E:\UnrealProjects\Leedr2\Intermediate\IOS-Deploy\Leedr2\Development\
UATHelper: Packaging (iOS):   
UATHelper: Packaging (iOS):   Loaded stub IPA from 'E:\UnrealProjects\Leedr2\Binaries\IOS\Leedr2.stub' ...
UATHelper: Packaging (iOS):    ... 'E:\UnrealProjects\Leedr2\Binaries\IOS\Leedr2.stub' -> 'E:\UnrealProjects\Leedr2\Binaries\IOS\Leedr2.ipa'
UATHelper: Packaging (iOS):         Copy: E:\UnrealProjects\Leedr2\Binaries\IOS\Leedr2.stub -> E:\UnrealProjects\Leedr2\Binaries\IOS\Leedr2.ipa, last modified at 10/06/2020 11:25:53
UATHelper: Packaging (iOS):   IPP ERROR: Stub IPA does not appear to be signed correctly (missing mobileprovision or CodeResources)
UATHelper: Packaging (iOS):   Found Info.plist (E:\UnrealProjects\Leedr2\Saved\StagedBuilds\IOS\Info.plist) in stage, which will be merged in with stub plist contents
UATHelper: Packaging (iOS):   Using mobile provision 'Leedr-X' to code sign
UATHelper: Packaging (iOS):    ... Writing updated embedded.mobileprovision
UATHelper: Packaging (iOS):     Looking for a certificate that matches the application identifier 'HV43WW4FZW.com.blackrobotgames.Leedrx'
UATHelper: Packaging (iOS):     .. Provision entry SN '52277229535B01DD' matched 1 installed certificate(s)
UATHelper: Packaging (iOS):     .. .. Installed certificate 'iPhone Developer: [hidden name and lastname] ([hidden TEAM ID])' is valid (choosing it) (range '26/04/2020 17:29:17' to '26/04/2021 17:29:17')
UATHelper: Packaging (iOS):   ... Found matching certificate 'iPhone Developer: [hidden name and lastname] ([hidden TEAM ID])' (valid from 26/04/2020 17:29:17 to 26/04/2021 17:29:17)
UATHelper: Packaging (iOS):   Found CFBundleVersion string '0.10' and updated it to '0.11'
UATHelper: Packaging (iOS):   Saving IPA ...
UATHelper: Packaging (iOS):    ... Writing updated Info.plist
UATHelper: Packaging (iOS):   Opening source executable...
UATHelper: Packaging (iOS):   ... Processing one mach object (binary is thin)
UATHelper: Packaging (iOS):   IPP ERROR: Application exception: System.IO.InvalidDataException: Did not find a Code Signing LC.  Injecting one into a fresh executable is not currently supported.
UATHelper: Packaging (iOS):      at iPhonePackager.CodeSignatureBuilder.PerformSigning() in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\IOS\iPhonePackager\CodeSigning.cs:line 848
UATHelper: Packaging (iOS):      at iPhonePackager.CookTime.RepackageIPAFromStub() in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\IOS\iPhonePackager\CookTime.cs:line 352
UATHelper: Packaging (iOS):      at iPhonePackager.Program.Main(String[] args) in D:\Build\++UE4\Sync\Engine\Saved\CsTools\Engine\Source\Programs\IOS\iPhonePackager\iPhonePackager.cs:line 937
UATHelper: Packaging (iOS): Took 1,3198314s to run IPhonePackager.exe, ExitCode=37
UATHelper: Packaging (iOS): Command failed (Result:37): E:\UnrealEngine\UE_4.24\Engine\Binaries\DotNET\IOS\IPhonePackager.exe RepackageFromStage "E:\UnrealProjects\Leedr2\Leedr2.uproject" -config Development -schemename Leedr2 -schemeconfig "Development" -sign -codebased -stagedir "E:\UnrealProjects\Leedr2\Saved\StagedBuilds\IOS" -project "E:\UnrealProjects\
Leedr2\Leedr2.uproject" -provision "LeedrX.mobileprovision" -certificate "iPhone Developer: [hidden name and lastname] ([hidden TEAM ID])". See logfile for details: 'IPhonePackager-2020.06.10-11.26.11.txt'
UATHelper: Packaging (iOS): AutomationTool exiting with ExitCode=37 (Error_StubNotSignedCorrectly)
UATHelper: Packaging (iOS): BUILD FAILED
PackagingResults: Error: Stub not signed correctly.

hello, do find the solution to this issue?

Still getting this error in 2023 on Unreal 5.

Same error. UE5.1

我也遇到同样的问题,如何解决呢?

我也遇到同样的问题相同的错误,历经3天终于解决了。我用的是5.03二进制版本,按照教程需要修改Engine\Source\Programs\UnrealBuildTool\Platform\IOS里的IOSToolChain.cs和UEBuildIOS.cs代码。但是如果你用的苹果账号是99$付费的的账号,就不用修改代码。需要到苹果开发者账号里创建bundle id的mobileprovision,需要在mac电脑钥匙串里申请颁发新证书后导出p12证书。有这个2个文件和bundle id后在设置虚幻ios平台项目后,打包就成功了。