您的位置:首页 > 编程语言

在GitHub上下载Demo 运行时候会出现The sandbox is not sync with the Podfile.lock

2016-04-14 10:59 204 查看
我之前也是遇到很多这种情况 然后我就安装了Alcatraz

打开你的终端

第一步:关闭 Xcode。

第二步:如果你之前安装过Alcatraz,卸载它。运行命令

rm -rf ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin


第三步:最关键的一步,运行命令

find ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins -name Info.plist -maxdepth 3 | xargs -I{} defaults write {} DVTPlugInCompatibilityUUIDs -array-add defaults read /Applications/Xcode.app/Contents/Info DVTPlugInCompatibilityUUID

sudo xcode-select --reset


第四步:安装 Alcatraz。

curl -fsSL https://raw.github.com/supermarin/Alcatraz/master/Scripts/install.sh | sh


第五步:重新Xcode。

运行Xcode选择 “Load Bundle”



在你下载的Demo中点击Install Pods 就可以了!!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: