<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>Zip64 &#8211; Wade Tregaskis</title>
	<atom:link href="https://wadetregaskis.com/tags/zip64/feed/" rel="self" type="application/rss+xml" />
	<link>https://wadetregaskis.com</link>
	<description></description>
	<lastBuildDate>Mon, 13 Jul 2026 17:21:38 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://wadetregaskis.com/wp-content/uploads/2016/03/Stitch-512x512-1-256x256.png</url>
	<title>Zip64 &#8211; Wade Tregaskis</title>
	<link>https://wadetregaskis.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">226351702</site>	<item>
		<title>Apple&#8217;s notarytool can&#8217;t handle Zip64 files</title>
		<link>https://wadetregaskis.com/apples-notarytool-cant-handle-zip64-files/</link>
					<comments>https://wadetregaskis.com/apples-notarytool-cant-handle-zip64-files/#respond</comments>
		
		<dc:creator><![CDATA[]]></dc:creator>
		<pubDate>Mon, 13 Jul 2026 17:21:35 +0000</pubDate>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Bugs!]]></category>
		<category><![CDATA[notarytool]]></category>
		<category><![CDATA[Screen saver]]></category>
		<category><![CDATA[Zip]]></category>
		<category><![CDATA[Zip64]]></category>
		<guid isPermaLink="false">https://wadetregaskis.com/?p=9164</guid>

					<description><![CDATA[In short: if you have any file in your app (or whatever it is you&#8217;re trying to get Apple to sign) that is over 4 GiB, you must use a disk image (DMG) to package it for notarytool, not a zip file. This is because support for files larger than 4 GiB requires using the&#8230; <a class="read-more-link" href="https://wadetregaskis.com/apples-notarytool-cant-handle-zip64-files/" data-wpel-link="internal">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">In short: if you have <em>any</em> file in your app (or whatever it is you&#8217;re trying to get Apple to sign) that is over 4 GiB, you must use a disk image (DMG) to package it for notarytool, not a zip file.</p>



<p class="wp-block-paragraph">This is because support for files larger than 4 GiB requires using the &#8220;Zip64&#8221; zip file format, which would be fine except Apple&#8217;s notary servers can&#8217;t handle them.  If you give them such a zip file, you&#8217;ll see notarytool fail something like this:</p>



<pre class="wp-block-preformatted"><em>$ xcrun notarytool submit "MyScreenSaver.saver.zip" --apple-id user-id --team-id team-id --verbose --wait --password lovesecretgod<br></em>[02:33:46.871Z] Debug [MAIN] Running notarytool version: 1.1.0 (39), date: 2026-07-13T02:33:46Z, command: /Applications/Xcode.app/Contents/Developer/usr/bin/notarytool submit MyScreenSaver.saver.zip --apple-id user-id --team-id team-id --verbose --wait --password private&lt;String><br>Conducting pre-submission checks for MyScreenSaver.saver.zip and initiating connection to the Apple notary service...<br>[02:33:46.943Z] Info [PREFLIGHT] Confirmed that MyScreenSaver.saver.zip (4.61 GB) is likely a PKZip file.<br>[02:33:46.943Z] Debug [PREFLIGHT] Finished completing determination of file type for MyScreenSaver.saver.zip. Operation took 71ms.<br>…<br>[05:09:56.690Z] Info [API] Preparing GET request to URL: https://appstoreconnect.apple.com/notary/v2/submissions/some-uuid?, Parameters: [:], Custom Headers: private&lt;Dictionary&lt;String, String>><br>[05:09:56.690Z] Debug [AUTHENTICATION] Using cached token value for app-specific password request: team-id:user-id<br>[05:09:56.691Z] Debug [AUTHENTICATION] Authenticating request to '/notary/v2/submissions/some-uuid' with WebServices Token. AppleID: user-id, Team ID: team-id, Token: private&lt;String><br>[05:09:56.692Z] Debug [TASKMANAGER] Starting Task Manager loop to wait for asynchronous HTTP calls.<br>[05:09:57.115Z] Debug [API] Received response status code: 200, message: no error, URL: https://appstoreconnect.apple.com/notary/v2/submissions/some-uuid?, Correlation Key: some-key<br>[05:09:57.115Z] Debug [TASKMANAGER] Completed Task with ID 37 has received a parsable response.<br>[05:09:57.116Z] Debug [TASKMANAGER] Ending Task Manager loop.<br>[05:09:57.116Z] Info [API] <strong>Received new status: Invalid</strong><br>Current status: Invalid....................................<br>[05:09:57.116Z] Info [API] <strong>Submission in terminal status: Invalid</strong><br>Processing complete<br>  id: some-id<br>  status: Invalid<br>[05:09:57.138Z] Debug [CTXMGR] Removed temporary directory: Optional(file:///var/folders/v3/6w91zvg53dqgh_3fl858wtrh0000gn/T/TemporaryItems/NSIRD_notarytool_36y4rY/)</pre>



<p class="wp-block-paragraph">If you check the log, you&#8217;ll see absolutely nothing useful:</p>



<pre class="wp-block-preformatted"><em>$ xcrun notarytool log --apple-id user-id --team-id team-id --password lovesecretgod some-uuid<br></em>{<br>  "logFormatVersion": 1,<br>  "jobId": "some-uuid",<br>  "status": "Invalid",<br>  "statusSummary": "Archive contains critical validation errors",<br>  "statusCode": 4000,<br>  "archiveFilename": "MyScreenSaver.saver.zip",<br>  "uploadDate": "2026-07-13T05:02:27.652Z",<br>  "sha256": "cbafd582f7b3221af5f2930b9a97019da5275116610c46ad3874e7b392fd7196",<br>  "ticketContents": null,<br>  "issues": [<br>    {<br>      "severity": "error",<br>      "code": null,<br>      "path": "MyScreenSaver.saver.zip/MyScreenSaver.saver/Contents/MacOS/MyScreenSaver",<br>      "message": "The signature of the binary is invalid.",<br>      "docUrl": "https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087735",<br>      "architecture": "x86_64"<br>    },<br>    {<br>      "severity": "error",<br>      "code": null,<br>      "path": "MyScreenSaver.saver.zip/MyScreenSaver.saver/Contents/MacOS/MyScreenSaver",<br>      "message": "The signature of the binary is invalid.",<br>      "docUrl": "https://developer.apple.com/documentation/security/notarizing_macos_software_before_distribution/resolving_common_notarization_issues#3087735",<br>      "architecture": "arm64"<br>    }<br>  ]<br>}<br></pre>



<p class="wp-block-paragraph">The &#8216;help&#8217; URLs it links to are useless, since the problem is an outright bug in Apple&#8217;s infrastructure, not the input binary or bundle.  Indeed, Apple&#8217;s own tools confirm this:</p>



<pre class="wp-block-preformatted"><em>$ codesign -vvv --deep --strict /Users/me/Documents/MyScreenSaver.saver <br></em>/Users/me/Documents/MyScreenSaver.saver: valid on disk<br>/Users/me/Documents/MyScreenSaver.saver: satisfies its Designated Requirement</pre>



<p class="wp-block-paragraph">The only workaround I&#8217;ve been able to find is to package within a DMG instead.</p>



<p class="wp-block-paragraph">For the record, Apple, this is a stupid error on your part. 😡  While trying to figure out what the hell was actually going on, I spent multiple hours scouring the web, and experimenting, to no avail.  It took Claude Fable 5 a couple of hours too, but it <em>finally</em> cracked it.</p>



<p class="wp-block-paragraph">It&#8217;s especially irritating that I was only using zip files as a workaround for a design flaw in Apple&#8217;s notarytool, whereby it won&#8217;t accept the app bundle directly.  And <a href="https://developer.apple.com/documentation/security/customizing-the-notarization-workflow#:~:text=Because%20you%20can’t%20upload%20the%20.app%20bundle%20directly%20to%20the%20notary%20service%2C%20you’ll%20need%20to%20create%20a%20compressed%20archive%20containing%20the%20app" data-wpel-link="external" target="_blank" rel="external noopener">it&#8217;s Apple themselves that recommend using zip files specifically</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wadetregaskis.com/apples-notarytool-cant-handle-zip64-files/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">9164</post-id>	</item>
	</channel>
</rss>
