Unable to load platform at path

后端 未结 5 483
余生分开走
余生分开走 2021-02-01 13:31

When using filemerge to solve HG conflict, I got the following error

FileMerge[18002:707] Unable to load platform at p         


        
相关标签:
5条回答
  • 2021-02-01 13:38

    And I tried converting iPhoneSimulator.platform/Info.plist from binary to xml, confirmed that Filemerge doesn't produce the error anymore. Then I converted it back to binary, and still, Filemerge is fine.

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

    Disclaimer: inspired by @user3761183!

    0 讨论(0)
  • 2021-02-01 13:49

    I tried converting all *.platform/Info.plist from binary to xml1 and it fixed the problem. Strange ...

    0 讨论(0)
  • 2021-02-01 13:57

    I have the same FileMerge warning in Git. When I look inside Xcode's preferences, I can see that neither the iPhoneSimulator nor the iPhoneOS platforms are installed but the directories do exist when I look into "/Applications/Xcode.app/Contents/Developer/Platforms".

    I don't develop for iOS, so I deleted both iPhoneOS.platform and iPhoneSimulator.platform and the warning went away.

    If you do need those platforms, try to reinstall them properly from Xcode.

    0 讨论(0)
  • 2021-02-01 13:57

    i face the same problem following command solved my problem:

    sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
    
    0 讨论(0)
  • 2021-02-01 13:57

    There is a simple solution to this issue that worked for me. I merely started up Xcode and created an iOS playground project. Xcode asked me to enable developer mode on the Mac, which I did. I then closed Xcode, deleted the project and the filemerge error was no more.

    Running Xcode version 6.2

    0 讨论(0)
提交回复
热议问题