filemerge


FileMerge error message when used with Git difftool


I use FileMerge as the difftool tool for Git. Recently, I started receiving a weird error message:
Unable to load platform at path /Applications/Xcode.app/Contents/
Developer/Platforms/iPhoneOS.platform
FileMerge still performs the diff just fine (although it takes a bit longer to load). Any idea what's causing this, and how to fix it?
I had exactly the same problem while using FileMerge as a diff tool for svnX. The following command solved my problem:
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/
That's all.
This appears to be a problem with Mercurial, too: Unable to load platform at path
If you don't develop for iOS, you can just delete that folder. If you do, you'll have to re-install XCode. (Unless you can figure out how to re-install just that platform).
I'm thinking you're better off just re-installing XCode, as there are some other SO questions dealing with platform related problems (not this specifically, but similar in nature) that all seem to point to reinstalling XCode:
XCODE fail to load platform
and
Xcode won't open: "Mac OS X platform is missing"
....so start re-installing and go get a beer!
for me, converting all *.platform/Info.plist from binary to xml1 fixed the problem. strange ...
I use XCode for my $ git mergetool and have gotten similar errors. For me, it's been related to XCode's components/simulators and documents.
Go to XCode -> Preferences -> Downloads and make sure you have the latest components and documents.
I'm only here because I updated to XCode 7 and I'm getting similar errors because of Apple Watch documentation combined with my employer letting our dev license expire...
To expand on user3761183's answer, after a bit of googling I ran:
sudo plutil -convert xml1 /Applications/Xcode.app/Contents/Developer/Platforms/*.platform/Info.plist
That got rid of all the Unable to load platform at path /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform errors. I'm still getting errors about:
Couldn't load '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/Specifications/Core Build System.xcspec'. Reason: Error Domain=NSCocoaErrorDomain Code=3840 "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}}.
But I was getting them originally too, so if you aren't then the above command should solve your problems.
EDIT: removed comment about Install addtional required components that did nothing. Next guess is reinstalling XCode as Jonathan F suggests.
FWIW I tried sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer/ already and that did nothing too.

Related Links

Using Filemerge how to you get to see the lower pane. The one with the results in?
FileMerge error message when used with Git difftool

Categories

HOME
assembly
amp-html
rdbms
pascal
saml-2.0
sh
socket.io
rom
cakephp-3.4
trac
mql5
little-proxy
endeca
php-5.6
tput
shared-libraries
zerobrane
azure-iot-hub
esoteric-languages
easyphp
asp.net-mvc-viewmodel
cgbitmapcontext
exit
qliksense
highstock
maze
corenlp-server
left-join
contacts
yowsup
searchkit
magento-1.9.2.4
recurrent-neural-network
ogc
azure-arm
sharp-snmp
berkeley-db-je
lampp
openrasta
mongotemplate
bluez
x-ray
arq
usart
cudd
ziparchive
redbeard-ios
webjars
lrs
myspace
jodd
wso2developerstudio
deep
cortex-m
vigenere
oracle-spatial
ember-cli-rails
mod-proxy
google-refine
infosphere-spl
angular-gettext
jbake
post-commit-hook
webfinger
rickshaw
paw
jqmodal
angular-carousel
ray
amslidemenu
qscrollarea
ie8-compatibility-mode
model-driven-development
server-administration
cardreader
josql
wiimote
screen-size
xui
squishit
blender-2.49
burndowncharts
alsb

Resources

Encrypt Message