Skip to content

IPA downloaded by ipatool cannot be installed via itms-services (but works with Xcode) #433

@anjiuzhe

Description

@anjiuzhe

What happened?

Hi, thank you very much for maintaining ipatool and for your great work on this project 🙏

I’ve encountered an issue when installing IPA files downloaded using ipatool, and I’d like to ask for your help.

Issue Description
IPA packages downloaded by ipatool can be installed successfully using Xcode, but fail when installed via the itms-services protocol.

When attempting installation via itms-services, the installation fails with the following error log:

installcoordinationd    Tech.YuChuan.FullSpeedEngine/Unknown Persona:4:1:2:0:
Canceled coordinator with intent IXCoordinatorIntentInitiating by client Install Coordination Internal
for reason Error Domain=SZExtractorErrorDomain Code=3
"Finishing an incomplete stream! This stream will not be resumable."
UserInfo={
  SZExtractorSourceFileLineErrorKey=568,
  NSLocalizedDescription=Finishing an incomplete stream! This stream will not be resumable.,
  SZExtractorFunctionNameErrorKey=-[StreamingUnzipState finishStream]
}

Additional Findings
What’s interesting is that another open-source project, ApplePackage, which reimplements ipatool functionality in Swift, does not have this problem.
IPA files downloaded using that project can be installed normally via itms-services.

Project link:
https://github.com/Lakr233/ApplePackage

I couldn’t find any existing issues related to this behavior.

Question
Is it possible that ipatool generates an IPA that is somehow incomplete or not fully compatible with itms-services installation?
Would it be possible to investigate and potentially fix this issue?

Thanks again for your time and for maintaining this project. Any help or guidance would be greatly appreciated! 😊

Version

2.2.0

Relevant log output

-[IXAppInstallCoordinator _clientDelegate_didCancelWithError:client:]: <IXInitiatingAppInstallCoordinator<0xc468d2440> identity:[Tech.YuChuan.FullSpeedEngine/87F2C266-91D6-43F7-81AA-959946CC40F5] uuid:BDC543E8-3332-49F9-972F-CB36BE46D627 creator:App Store>: Got cancel delegate with reason Error Domain=SZExtractorErrorDomain Code=3 "Finishing an incomplete stream! This stream will not be resumable." UserInfo={SZExtractorSourceFileLineErrorKey=568, NSLocalizedDescription=Finishing an incomplete stream! This stream will not be resumable., SZExtractorFunctionNameErrorKey=-[StreamingUnzipState finishStream]} client Install Coordination Internal

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions