LoginSignup
0
0

More than 1 year has passed since last update.

⨯ Apple failed to notarize your application, check the logs for more info Status Code: 2 Message: Package Invalid

Posted at

electronのアプリの公証でハマったのでメモ。

Package Invalidが出たら原因は書き出された.appの中身に誤りがある。

.appのバリデーションはxcrun altool を使う

xcrun altool --validate-app -f ./your_app_path.app -t osx -u appleId -p appleIdPassword

2022-10-08 22:23:41.500 *** Error: Validation failed for 'your_app_path.app'.
2022-10-08 22:23:41.501 *** Error: The Info.plist in the package must contain the CFBundleShortVersionString key. Unable to validate your application. (-27002)
 {
    NSLocalizedDescription = "The Info.plist in the package must contain the CFBundleShortVersionString key.";
    NSLocalizedFailureReason = "Unable to validate your application.";
}

altool doc: https://help.apple.com/app-store-connect/#/devb1c185036

エラー内容

  ⨯ Apple failed to notarize your application, check the logs for more info
Status Code: 2
Message: Package Invalid
Logs: https://osxapps-ssl.itunes.apple.com/itunes-assets/~~  failedTask=build stackTrace=Error: Apple failed to notarize your application, check the logs for more info

Status Code: 2
Message: Package Invalid
Logs: https://osxapps-ssl.itunes.apple.com/itunes-assets/~~
    at /Users/apppath/node_modules/electron-notarize/src/legacy.ts:116:11
    at Generator.next (<anonymous>)
    at fulfilled (/Users/apppath/node_modules/electron-notarize/lib/legacy.js:4:58)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0