我有一个苹果开发者账号,我有一个使用install4j构建的macOs应用程序。我需要协同设计和公证我的应用程序。我正在使用install4j UI进行协同设计和公证。公证失败,日志如下
{"logFormatVersion":1,"jobId":"87565dea-7386-4b56-a708-c6ea740e9c61","status":“无效”,"statusSummary":“归档包含关键验证错误”,"statusCode":4000,"archiveFilename":"macos_20_1-SNAPSHOT.dmg","uploadDate":"2021-07-27T16:27:26Z","sha256":macos "ticketContents":null,“问题”:{“严重性”:“错误”,“jobId”:空,"path":"macos_20_1-SNAPSHOT.dmg/Installer.app/Contents/Resources/app/0.dat/tanuki/wrapper-macosx-universal-32",“消息”:“二进制文件未签名。”,"docUrl":空,“架构”:"i386“},{”严重性“:”错误“,”代码“:空,"path":"macos_20_1-SNAPSHOT.dmg/Installer.app/Contents/Resources/app/0.dat/tanuki/wrapper-macosx-universal-32",“消息”:“签名不包含安全时间戳”,"docUrl":空,“架构”:"i386“},{”严重性“:”错误“,”代码“:空,"path":"macos_20_1-SNAPSHOT.dmg/Installer.app/Contents/Resources/app/0.dat/tanuki/wrapper-macosx-universal-32",“消息”:“可执行文件未启用强化运行时。”,"docUrl":null,“架构”:"i386“},{”严重性“:”错误“,”代码“:null,"path":"macos_20_1-SNAPSHOT.dmg/Installer.app/Contents/Resources/app/0.dat/tanuki/wrapper-macosx-universal-64",“消息”:“二进制文件未签名。”,"docUrl":空,“架构”:"x86_64“},{”严重性“:”错误“,”代码“:空,"path":"macos_20_1-SNAPSHOT.dmg/Installer.app/Contents/Resources/app/0.dat/tanuki/wrapper-macosx-universal-64",“消息”:“签名不包含安全时间戳”,"docUrl":空,“架构”:"x86_64“},{”严重性“:”错误“,”代码“:空,"path":"macos_20_1-SNAPSHOT.dmg/Installer.app/Contents/Resources/app/0.dat/tanuki/wrapper-macosx-universal-64",“消息”:“可执行文件未启用强化运行时。”,"docUrl":null,“架构”:"x86_64“},{”严重性“:”错误“,”代码“:null,"path":"macos_20_1-SNAPSHOT.dmg/Installer.app/Contents/Resources/app/0.dat/tanuki/macos/wrapper",“消息”:“二进制文件未签名。”,"docUrl":null,"code":"x86_64“},{”严重性“:”错误“,”代码“:null,"path":path"message":“签名不包含安全时间戳。”,"docUrl":空,“架构”:"x86_64“},{”严重性“:”错误“,”代码“:空,”路径“:"macos_20_1-SNAPSHOT.dmg/Installer.app/Contents/Resources/app/0.dat/tanuki/macos/wrapper",”消息“:”可执行文件未启用强化运行时。“,"docUrl":空,"architecture":"x86_64“},{”严重性“:”错误“,”代码“:null,”路径“:"macos_20_1-SNAPSHOT.dmg/Installer.app/Contents/Resources/app/user/netty-transport-native-kqueue-4.1.46.Final-osx-x86_64.jar/META-INF/native/libnetty_transport_native_kqueue_x86_64.jnilib",”消息“:”二进制文件未签名“,"docUrl":null,"architecture":"x86_64“},{”严重性“:”错误“,”代码“:null,”路径“:"macos_20_1-SNAPSHOT.dmg/Installer.app/Contents/Resources/app/user/netty-transport-native-kqueue-4.1.46.Final-osx-x86_64.jar/META-INF/native/libnetty_transport_native_kqueue_x86_64.jnilib",”消息“:”签名不包含安全时间戳“,"docUrl":null,"architecture":"x86_64“}}
发布于 2021-07-29 16:24:51
公证还要求对JAR文件中包含的二进制文件进行签名。install4j签名过程不会自动扫描JAR文件中的可执行文件,您必须通过在“常规设置->代码签名”步骤中配置“要扫描二进制文件的JAR文件”设置来告诉install4j要扫描哪些JAR文件。这是一个starts-with comparison,所以您添加"netty-transport-“作为过滤器。
此外,您还必须在“要签名的附加二进制文件”中添加Tanuki包装器的可执行文件的名称,如" wrapper -macosx-universal-64“、"wrapper-macosx-universal-32”和"wrapper“。
https://stackoverflow.com/questions/68559203
复制相似问题