-->

无法在路径加载平台(Unable to load platform at path)

2019-08-01 00:00发布

当使用filemerge解决HG冲突,我得到了以下错误

FileMerge[18002:707] Unable to load platform at path
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform

Answer 1:

我在Git中相同FileMerge警告。 当我看到里面的Xcode的喜好,我可以看到,无论是iPhoneSimulator也不是的iPhoneOS平台安装,但是当我看着“/Applications/Xcode.app/Contents/Developer/Platforms”确实存在的目录。

我不开发的iOS,所以我删除了这两个iPhoneOS.platform和iPhoneSimulator.platform并警告就走了。

如果你确实需要这些平台,尝试从Xcode中正确地重新安装它们。



Answer 2:

我试图转换iPhoneSimulator.platform/Info.plist从二进制到XML,证实Filemerge不会再产生错误。 然后,我将它转换为二进制,并且还在,Filemerge是罚款。

$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform
$ sudo plutil -convert xml1 Info.plist
$ sudo plutil -convert binary1 Info.plist

免责声明:由@ user3761183的启发!



Answer 3:

我试图将所有*.platform/Info.plistbinaryxml1 ,它解决了这一问题。 奇怪...



Answer 4:

我面临着同样的问题,下面的命令解决我的问题:

sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/


Answer 5:

有一个简单的解决这个问题,对我的工作。 我只是开始了Xcode和创建iOS的游乐场项目。 Xcode的问我能在Mac,我做到了开发人员模式。 然后我关闭Xcode中,删除的项目和filemerge错误是没有。

运行的Xcode 6.2版本



文章来源: Unable to load platform at path