This all started after I updated Xcode on Oct 21. Since then, I've been unable to upload any app builds to AppStoreConnect. This is Xcode 12.1 (12A7403).
Error Message:
Could not find or load main class HD.Users.username.Library.Java.Extensions:.Library.Java.Extensions:.Network.Library.Java.Extensions:.System.Library.Java.Extensions:.usr.lib.java:.
My main disk is called "Macintosh HD". It looks like however they have the build script setup it's dropped the "Macintosh" part off.
Updating Xcode has become a crapshoot because every time I update, I have to spend hours figuring out and fixing whatever broke. So far I've been unsuccessful with this particular one...
Error Message:
Could not find or load main class HD.Users.username.Library.Java.Extensions:.Library.Java.Extensions:.Network.Library.Java.Extensions:.System.Library.Java.Extensions:.usr.lib.java:.
My main disk is called "Macintosh HD". It looks like however they have the build script setup it's dropped the "Macintosh" part off.
Updating Xcode has become a crapshoot because every time I update, I have to spend hours figuring out and fixing whatever broke. So far I've been unsuccessful with this particular one...
Found the issue and have a fix.
Go to:
/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/bin
You'll find:
iTMSTransporter
This is simply a build script so open it up in your favorite text editor (I like TextMate).
Change this line:
JVM_LIB_PATH="-Djava.library.path=${ESCAPED_WOA_TOP_LEVEL}/macOS/lib:${HOME}/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:."
To this:
JVM_LIB_PATH="-Djava.library.path=\"${ESCAPED_WOA_TOP_LEVEL}\"/macOS/lib:\"${HOME}\"/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:."
Basically just add a few backslash-escaped quotes around ${ESCAPED_WOA_TOP_LEVEL} and ${HOME}.
Enjoy successful Xcode uploads again!!
:)
Go to:
/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/bin
You'll find:
iTMSTransporter
This is simply a build script so open it up in your favorite text editor (I like TextMate).
Change this line:
JVM_LIB_PATH="-Djava.library.path=${ESCAPED_WOA_TOP_LEVEL}/macOS/lib:${HOME}/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:."
To this:
JVM_LIB_PATH="-Djava.library.path=\"${ESCAPED_WOA_TOP_LEVEL}\"/macOS/lib:\"${HOME}\"/Library/Java/Extensions:/Library/Java/Extensions:/Network/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java:."
Basically just add a few backslash-escaped quotes around ${ESCAPED_WOA_TOP_LEVEL} and ${HOME}.
Enjoy successful Xcode uploads again!!
:)