altool fails with "java.lang.ClassNotFoundException: Drive.Moved"

Trying to upload an application for Notarization, fails with the following error message.

Any ideas?

2021-04-22 12:32:29.127 altool[71379:2755143] Error:
Error: Could not find or load main class Drive.Moved
Caused by: java.lang.ClassNotFoundException: Drive.Moved
2021-04-22 12:32:29.138 altool[71379:2755143] Out:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "<urlsNotAllowedInSupportForums">
<plist version="1.0">
<dict>
<key>os-version</key>
<string>11.2.3</string>
<key>product-errors</key>
<array>
<dict>
<key>code</key>
<integer>-18000</integer>
<key>message</key>
<string>Could not find or load main class Drive.Moved</string>
<key>userInfo</key>
<dict>
<key>NSLocalizedDescription</key>
<string>Could not find or load main class Drive.Moved</string>
<key>NSLocalizedFailureReason</key>
<string>Could not find or load main class Drive.Moved</string>
<key>NSLocalizedRecoverySuggestion</key>
<string>Could not find or load main class Drive.Moved</string>
</dict>
</dict>
</array>
<key>tool-path</key>
<string>/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/Frameworks/AppStoreService.framework</string>
<key>tool-version</key>
<string>4.029.1194</string>
</dict>
</plist>
Is this the first time you’ve tried to notarise with altool? Or did this previously work and now it’s failing?

If you create a tiny test app in Xcode, can you notarise that using the Organizer?

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
Hey Quinn,
Sam Rowlands here, I'm asking this question on behalf of an App Wrapper customer (the customer doesn't use Xcode for macOS development). According to the customer it was working until around a month or so ago, the customer is running macOS 11.2.3.

We've been going through several things this week, but we haven't been able to get past this error message.

xcode-select -p = /Applications/Xcode.app/Contents/Developer/ (which App Wrapper identifies as Xcode 12.4).

I'm asking this question on behalf of an App Wrapper customer

OK, so I take it that you can’t reproduce this problem. That makes sense because if this were a widespread issue it’s likely I would’ve heard about it from others.

My first step for debugging situations like this is to try to nail down the scope of the issue. Ideally I’d suggest that your customer try this on a fresh machine (I use VMs for exactly this sort of thing). However, I realise that can be a bit tricky to set up, so here’s an easier one: Have them create a new user on their local Mac and retry there. That’ll tell you whether the problem is tied to their local account.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
I haven't heard from the customer for a while, so I don't know the outcome (yet).

However I wanted to say Thank you for helping out.

Sam Rowlands
@Quinn
It works from a new user account on the same machine.

The customer's main user account was moved (using the options in macOS) to an external drive. The customer states that it was working earlier in the year, only recently has altool started spewing errors.

We have tried different locations for the source files (what altool submits to Apple), including "/Users/Shared" so that the source files are on the same volume as altool. However altool still reported this error, which leads me to believe that something internal to altool (prefs, cache or other) is attempting to access a location within the user folder, to which it phreaks out because it's not on the same volume.

Thanks for taking the time to assist, I hope that this information maybe useful to others.

Sam Rowlands
altool fails with "java.lang.ClassNotFoundException: Drive.Moved"
 
 
Q