Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Opendiff returns errors to terminal

Hi,


Is it normal to get this errors running opendiff ?


2016-02-02 13:30:28.969 FileMerge[4674:224245] Failed to connect (delegate) outlet from (DiffController) to (DiffController): missing setter or instance variable

2016-02-02 13:30:28.969 FileMerge[4674:224245] Failed to connect (mainPrefPane) outlet from (DiffController) to (NSBox): missing setter or instance variable

2016-02-02 13:30:29.064 FileMerge[4674:224245] Unable to load platform at path /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform

2016-02-02 13:30:29.068 FileMerge[4674:224245] Unable to load platform at path /Applications/Xcode.app/Contents/Developer/Platforms/AppleTVSimulator.platform

2016-02-02 13:30:29.072 FileMerge[4674:224245] Unable to load platform at path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform

2016-02-02 13:30:29.076 FileMerge[4674:224245] Unable to load platform at path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform

2016-02-02 13:30:29.088 FileMerge[4674:224245] Unable to load platform at path /Applications/Xcode.app/Contents/Developer/Platforms/WatchOS.platform

2016-02-02 13:30:29.092 FileMerge[4674:224245] Unable to load platform at path /Applications/Xcode.app/Contents/Developer/Platforms/WatchSimulator.platform

Posted on Feb 2, 2016 4:35 AM

Reply
2 replies

Feb 3, 2016 1:58 PM in response to przemmaj

Hello przemmaj,

Yes. This is normal.


I always wrap opendiff in a script so that you can easily edit and save. You can also use this to dump stderr.


Here is my xcodediff script:

#!/bin/sh


# Get a hold of the last parameter.

eval LAST=\${$#}


# Now run opendiff with the previous version and the current version.

opendiff ${*} -merge "$LAST" 2> /dev/null


And for good measure, here is gitdiff:


#!/bin/bash


# Delete any old files.

rm -Rf /tmp/gitdiff_*

mkdir -p /tmp/gitdiff_$$


# Do the diff.

git diff ${*} > /tmp/gitdiff_$$/patch


# Get a hold of the last parameter.

eval LAST=\${$#}


# Copy the file to /tmp, append the process ID, and .gitdiff to the file name.

mkdir -p /tmp/gitdiff_$$/$LAST

rm -Rf /tmp/gitdiff_$$/$LAST


cp "$LAST" "/tmp/gitdiff_$$/$LAST"


# Now patch the temp file to the previous version.

patch -s -R "/tmp/gitdiff_$$/$LAST" < /tmp/gitdiff_$$/patch


# Now run opendiff with the previous version and the current version.

opendiff "/tmp/gitdiff_$$/$LAST" "$LAST" -merge "$LAST" 2> /dev/null

Opendiff returns errors to terminal

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.