Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to load platform at path

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

FileMerge[18002:707] Unable to load platform at path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform 
like image 436
Jayson Avatar asked Sep 27 '12 08:09

Jayson


2 Answers

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.

like image 185
nox Avatar answered Oct 19 '22 17:10

nox


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!

like image 25
Marc Avatar answered Oct 19 '22 17:10

Marc