要扩大user3761183的答案,有点googling后,我跑:
sudo plutil -convert xml1 /Applications/Xcode.app/Contents/Developer/Platforms/*.platform/Info.plist
这摆脱了所有的Unable to load platform at path /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform
错误。我仍然得到有关错误:
无法加载“/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/Core构建System.xcspec” 。原因:错误域= NSCocoaErrorDomain代码= 3840“意外的字符b在第1行”UserInfo = {NSDebugDescription =第1行意外的字符b,kCFPropertyListOldStyleParsingError =错误域= NSCocoaErrorDomain代码= 3840“意外';'或'='后在第1行键“UserInfo = {NSDebugDescription = Unexpected';'或'='后在第1行键}}。
但我原来也是这样,所以如果你不是那么上面的命令应该可以解决你的问题。
编辑:删除了关于Install addtional required components
没有做任何事的评论。接下来的猜测就是Jonathan F所建议的重新安装XCode。
FWIW我已经试过sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
,那也没做什么。
来源
2017-04-12 00:15:51
jim
与SVN相同。你是否使用opendiff的包装(如fmdiff)? – surlac
@surlac - 不,只是普通的香草opendiff。 – eykanal
这里跟hg一样。 – speciousfool