itmstransporter:启动时“找不到或加载主类”

w51jfk4q  于 2021-06-29  发布在  Java
关注(0)|答案(1)|浏览(587)

我正试图通过终端中的“xcrun altool”对dmg进行公证,但它失败了,输出如下。
事实上,它甚至在运行itmstransporter时直接崩溃:

/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/bin/iTMSTransporter
Error: Could not find or load main class 1.Library.Java.Extensions:.Library.Java.Extensions:.Network.Library.Java.Extensions:.System.Library.Java.Extensions:.usr.lib.java:.
Caused by: java.lang.ClassNotFoundException: 1.Library.Java.Extensions:.Library.Java.Extensions:.Network.Library.Java.Extensions:.System.Library.Java.Extensions:.usr.lib.java:.

我对Troubleshoot所做的:
更新至xcode 12.3
更新并安装了xcode的最新命令行工具
尝试了两个不同的sdk/jdk/jre版本的java,目前使用java 15.0.1 2020-10-20 java(tm)se运行时环境(build 15.0.1+9-18)java hotspot(tm)64位服务器vm(build 15.0.1+9-18,混合模式,共享)
我试着宣布你回家了
在/、~/和/library以及~/library~/中查找itmstransporter缓存文件或文件夹(区分大小写,小写)。itmstransporter要删除它,没有。
我在macos big sur 11.1上
我从来没有两个xcode的名称版本,所以我没有一个不同的应用程序的名称。我试着重新命名它来排除故障,并恢复到原来的xcode名称,但这也没有帮助。
尝试重新安装itmstransporter
错误输出如下:

2020-12-24 10:39:03.442 altool[10776:511525] Sending request to iTunesTransporter…
2020-12-24 10:39:03.442 altool[10776:511525]     Command: /usr/local/itms/bin/iTMSTransporter
2020-12-24 10:39:03.442 altool[10776:511525]   Arguments: -m upload -u 'XXX' -vp json -DTxHeaders=XXX= -sessionid @env:XXX -sharedsecret @env:XXX -itc_provider '-f' -f '/var/folders/zz/zyxvpxvq6csfxvn_n0000000000000/T/XXX-72174C6DE294/com.XXX.XXX.itmsp' -indicator true -v eXtreme -Dtransporter.client='altool' -Dtransporter.client.version='4.029 (1194)'
2020-12-24 10:39:04.331 altool[10776:511518] Error: Could not find or load main class 1.Library.Java.Extensions:.Library.Java.Extensions:.Network.Library.Java.Extensions:.System.Library.Java.Extensions:.usr.lib.java:.
2020-12-24 10:39:04.331 altool[10776:511518] Caused by: java.lang.ClassNotFoundException: 1.Library.Java.Extensions:.Library.Java.Extensions:.Network.Library.Java.Extensions:.System.Library.Java.Extensions:.usr.lib.java:.
2020-12-24 10:39:04.336 altool[10776:511525]  Error:
Error: Could not find or load main class 1.Library.Java.Extensions:.Library.Java.Extensions:.Network.Library.Java.Extensions:.System.Library.Java.Extensions:.usr.lib.java:.
Caused by: java.lang.ClassNotFoundException: 1.Library.Java.Extensions:.Library.Java.Extensions:.Network.Library.Java.Extensions:.System.Library.Java.Extensions:.usr.lib.java:.
2020-12-24 10:39:04.336 altool[10776:511525]  Out:
2020-12-24 10:39:04.337 altool[10776:511525] Errors: (
    "Error Domain=ITunesTransporterErrorDomain Code=-18000 \"Could not find or load main class 1.Library.Java.Extensions:.Library.Java.Extensions:.Network.Library.Java.Extensions:.System.Library.Java.Extensions:.usr.lib.java:.\" UserInfo={NSLocalizedRecoverySuggestion=Could not find or load main class 1.Library.Java.Extensions:.Library.Java.Extensions:.Network.Library.Java.Extensions:.System.Library.Java.Extensions:.usr.lib.java:., NSLocalizedDescription=Could not find or load main class 1.Library.Java.Extensions:.Library.Java.Extensions:.Network.Library.Java.Extensions:.System.Library.Java.Extensions:.usr.lib.java:., NSLocalizedFailureReason=Could not find or load main class 1.Library.Java.Extensions:.Library.Java.Extensions:.Network.Library.Java.Extensions:.System.Library.Java.Extensions:.usr.lib.java:.}"
)
2020-12-24 10:39:04.378 altool[10776:511518]***Error: Unable to notarize app.
2020-12-24 10:39:04.378 altool[10776:511518]***Error: code -18000 (Could not find or load main class 1.Library.Java.Extensions:.Library.Java.Extensions:.Network.Library.Java.Extensions:.System.Library.Java.Extensions:.usr.lib.java:.)
rjee0c15

rjee0c151#

在注解掉以jvm\u lib\u path开头的行之后,问题得到了修复
输入:/usr/local/itms/bin/itms
这一行设置到itmstransporter的java相关路径的方式似乎导致它在错误的地方查找。
在评论了这一行之后,itmstransporter在发布期间重新配置了自己,并成功提交了公证。

相关问题