我使用FileMerge作为difftool的工具。最近,我开始收到一条奇怪的错误消息:
Unable to load platform at path /Applications/Xcode.app/Contents/
Developer/Platforms/iPhoneOS.platformFileMerge仍然可以很好地执行diff (尽管它需要更长的加载时间)。你知道是什么原因造成的吗,以及如何修复它?
发布于 2013-03-22 17:06:23
在使用FileMerge作为svnX的比较工具时,我遇到了完全相同的问题。下面的命令解决了我的问题:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/就这样。
发布于 2017-04-12 08:15:51
为了扩展用户3761183的回答,在执行了一点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 Build System.xcspec‘。原因: Error Domain=NSCocoaErrorDomain Code=3840“UserInfo=NSDebugDescription=Unexpected character b at line 1”UserInfo={NSDebugDescription=Unexpected character b at line 1,kCFPropertyListOldStyleParsingError=Error Domain=NSCocoaErrorDomain Code=3840 "Unexpected ';‘or '=’after key at line 1“UserInfo={NSDebugDescription=Unexpected ';‘or '=’after key at line 1}}.
但是我最初也得到了它们,所以如果你没有,那么上面的命令应该可以解决你的问题。
编辑:删除了关于Install addtional required components的评论,该评论没有做任何事情。下一个猜测是按照Jonathan F的建议重新安装XCode。
我已经试过sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/了,也没什么效果。
发布于 2013-03-06 06:27:57
这似乎也是Mercurial的一个问题:Unable to load platform at path
如果你不是为iOS开发的,你可以直接删除这个文件夹。如果这样做,您将不得不重新安装XCode。(除非您知道如何重新安装该平台)。
我认为你最好重新安装XCode,因为还有其他一些与平台相关的问题(不是特别的,但本质上类似),似乎都指向重新安装XCode:
和
Xcode won't open: "Mac OS X platform is missing"
....so开始重新安装,去喝杯啤酒吧!
https://stackoverflow.com/questions/13695210
复制相似问题