ikeh1024のブログ

ZennやQiitaに書くにはちょっと小粒なネタをこちらに書いています

Apple公証でエラーとなる原因と解決方法(you must first sign the relevant contracts online (1048))

概要

  • いつものようにApple公証しようとすると下記のエラーが発生。
Release use$ xcrun altool --notarize-app --primary-bundle-id "jp.co.xxx" --username "xxx@xxx.co.jp" --password "xxxx-xxxx-xxxx-xxxx" --file xxx.app.zip
2020-01-27 10:02:23.325 altool[88404:4425471]  Error:
[2020-01-27 10:02:17 JST] <main>  INFO: Configuring logging...
[2020-01-27 10:02:17 JST] <main>  INFO: Logging level set to eXtreme
[2020-01-27 10:02:17 JST] <main>  INFO: Transporter is searching for new software components.
[2020-01-27 10:02:17 JST] <main>  INFO: INFO: using cached repository.xml file.
[2020-01-27 10:02:18 JST] <main>  INFO: Update check complete.
(...)
Package Summary:
1 package(s) were not uploaded because they had problems:
    /var/folders/x4/g46gr94s1bl47q047f5s4sxm0000gn/T/60A1095C-B14A-4644-A315-316AF63F29EF/Untitled.itmsp - Error Messages:
        You must first sign the relevant contracts online. (1048)
2020-01-27 10:02:23.393 altool[88404:4425468] *** Error: You must first sign the relevant contracts online. (1048)

you must first sign the relevant contracts online (1048)

  • オンライン規約を承認してくださいとのこと。
  • https://appstoreconnect.apple.com/を開くと警告が出ている。

解決方法

  • Admin権限のアカウントで下記ページにアクセスし、EULAに同意することで解決。
    • https://appstoreconnect.apple.com/

参考