轉載
本文要說的是Xcode 8下使用Alcatraz的可能性。我在搜索Xcode 8 下如何使用 Alcatraz 時,搜到了下面一個方案。
具體步驟如下:
從https://github.com/steakknife/unsign下載unsign工具,使用 make 編譯unsign,得到可執行文件unsign
git clone https://github.com/steakknife/unsign.git
cd unsign
make
然后使用unsign為xcode移除簽名。
./unsign /Applications/Xcode.app/Contents/MacOS/Xcode
會在/Applications/Xcode.app/Contents/MacOS/下生成Xcode.unsigned,備份好原始的Xcode,把Xcode.unsigned重命名為Xcode,重啟Xcode。你就會發現Xcode提醒你是否加載Alcatraz的Bundle。
然后運行以下命令
find~/Library/Application/Support/Developer/Shared/Xcode/Plug-ins-nameInfo.plist-maxdepth3|xargs-I{}defaults write{}DVTPlugInCompatibilityUUIDs-array-add`defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID`
重啟Xcode即可。我裝了兩個插件 Uncrustify 和Auto-Importer,目前來說是可用的。
注意
這種方法可能會導致Xcode不穩定,所以還是謹慎使用。