LoginSignup
6
4

More than 3 years have passed since last update.

macOS10.15Betaにしたあと申請したアプリが「Invalid Binary」になる問題

Last updated at Posted at 2019-06-14

SwiftUIをやりたくてmacOSをβ版にアップデートしてみたものの、(今まで問題なく申請できていた)自分のアプリを申請したときに「ITMS-90111: Invalid Toolchain」になってしまうという現象がありました。

理想的な方法ではないと思いますが、この方法で問題を解決することができたので、他の人のためにメモしておきます😌

<問題再現手順>

①macOS10.15 & Xcode10.2.1を使ってアーカイブを作ってAppStoreへアップロード
②AppStoreConnectからアプリ申請
③ステータスが「Waiting For Review」に変更される
④(2−3分後)ステータスが「Invalid Binary」に変わって拒否される

<対処方法>

①Macをリカバリーモードで立ち上げて、コマンドラインから以下のコマンドを打ってSIPを無効化してSystemのファイルをいじれるようにする

csrutil disable

②SystemVersionをお好きな方法で編集

/System/Library/CoreServices/SystemVersion.plist

上記のファイルの「ProductBuildVersion」という項目が「19A471t」(macOS10.15 Beta1の値)になっていると思うので、「18F203」(macOS10.14.5)に書き換え

<plist version="1.0">
<dict>
        <key>ProductBuildVersion</key>
        <string>18F203</string>
        <key>ProductCopyright</key>
        <string>1983-2019 Apple Inc.</string>
        <key>ProductName</key>
        <string>Mac OS X</string>
        <key>ProductUserVisibleVersion</key>
        <string>10.15</string>
        <key>ProductVersion</key>
        <string>10.15</string>
        <key>iOSSupportVersion</key>
        <string>13.0</string>
</dict>
</plist>

③再度Macをリカバリーモードで立ち上げて、SIPを忘れないように有効化しておく

csrutil enable

④アーカイブして申請

これで安心してSwiftUIを楽しめます😄

6
4
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
6
4