Help us understand the problem. What is going on with this article?

Xcode10.3のKey BindingsでArchiveを設定するとArchive...まで設定されてしまう現象の対応方法

環境

Xcode 10.3

トリガー

Key BindingsにArchiveを設定しようとしたところ、タイトルの現象に遭遇。
10.2とかでは動作していた気がする(確証ではない)。

内容

まずは普通に設定してみる。command+shift+@で設定してみる。
スクリーンショット 2019-09-13 18.21.53.png
勝手にArchive...が設定された。謎機能。

対応方法

どこか設定ファイルがあるはずと思って探したらあった。
/Users/ユーザー名/Library/Developer/Xcode/UserData/KeyBindings/Default.idekeybindings

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Menu Key Bindings</key>
    <dict>
        <key>Key Bindings</key>
        <array>
            <dict>
                <key>Action</key>
                <string>buildAndArchiveActiveRunContext:</string>
                <key>Alternate</key>
                <string>NO</string>
                <key>CommandID</key>
                <string>Xcode.IDEKit.CmdDefinition.BuildAndArchive</string>
                <key>Group</key>
                <string>Product Menu</string>
                <key>GroupID</key>
                <string>Xcode.IDEKit.MenuDefinition.Main</string>
                <key>GroupedAlternate</key>
                <string>NO</string>
                <key>Keyboard Shortcut</key>
                <string>$@`</string>
                <key>Navigation</key>
                <string>NO</string>
                <key>Title</key>
                <string>Archive</string>
            </dict>
            // ----------ここから削除----------
            <dict>
                <key>Action</key>
                <string>editBuildAndArchiveActiveRunContext:</string>
                <key>Alternate</key>
                <string>YES</string>
                <key>CommandID</key>
                <string>Xcode.IDEKit.CmdDefinition.EditBuildAndArchive</string>
                <key>Group</key>
                <string>Product Menu</string>
                <key>GroupID</key>
                <string>Xcode.IDEKit.MenuDefinition.Main</string>
                <key>GroupedAlternate</key>
                <string>NO</string>
                <key>Keyboard Shortcut</key>
                <string>~@\~</string>
                <key>Navigation</key>
                <string>NO</string>
                <key>Title</key>
                <string>Archive…</string>
            </dict>
            // ----------ここまで----------
        </array>
        <key>Version</key>
        <integer>3</integer>
    </dict>
</dict>
</plist>

結果

消えた!
スクリーンショット 2019-09-13 18.41.34.png

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした