debugging with xcode4

0 views
Skip to first unread message

Chris Jones

unread,
Oct 17, 2011, 9:07:36 AM10/17/11
to apertu...@lists.apple.com
Hey

I'm trying to write my first Aperture export plugin. I've got a very simple plugin that builds and will attempt to upload pictures to a website, but something about it isn't working. As soon as I choose the export plugin, Aperture tells me the plugin couldn't be loaded. I'm trying to figure out what is failing and why, but I can't find any indication of logging anywhere.

I've added Aperture as the executable to run in xcode's settings, but I don't appear to get any backtrace or breakpoint action.

Has anyone got any pointers that might help me?

Cheers,

Chris

Chris Jones

unread,
Oct 17, 2011, 2:24:39 PM10/17/11
to apertu...@lists.apple.com
Hi

Thanks to the folks who replied to me (although maybe you could hit Reply All so the web archives record your wisdom?).

Scott suggested I look at his Gallery3 plugin's code, which I did and I updated a few of my plist settings accordingly, but still no dice. His worked immediately with a breakpoint, so it's encouraging to know that it can work :)

I've thrown up my initial code at http://cmsj.net/ImgurApertureExportPlugin.zip - I don't expect it to do anything useful at this stage, but if anyone has a moment to look at what I'm doing wrong, that would be awesome.

Cheers,

Chris

Clarence Locke

unread,
Oct 17, 2011, 4:43:22 PM10/17/11
to Chris Jones, apertu...@lists.apple.com
It looks to me like your plugin's UUID is bogus:

<key>uuid</key>
<string>3rnq34tv-43jj-48um-ojmc-wuccq48m8vm</string>


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Aperture-dev mailing list      (Apertu...@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/aperture-dev/clarence%40blueroomsoftware.com

This email sent to clar...@blueroomsoftware.com

Chris Jones

unread,
Oct 17, 2011, 5:05:45 PM10/17/11
to Clarence Locke, apertu...@lists.apple.com
Hi

hmm, good point, although unfortunately replacing that with a proper UUID from uuidgen doesn't resolve the problem I'm having.

Thanks for spotting that though, it made me look at something else in the plist that I'd checked previously, and missed.
I had the principle class name incorrect. With that fixed, xcode's debugger hits my init method just fine. Now on with coding the plugin!

Thanks very much to everyone who responded.

Cheers,

Chris

Reaves, Timothy

unread,
Oct 17, 2011, 7:33:41 PM10/17/11
to Chris Jones, apertu...@lists.apple.com
I'd be interested in helping you with this if you intend to keep it open source.  Perhaps start a Bazaar project for it?


Chris Jones

unread,
Oct 18, 2011, 4:12:06 AM10/18/11
to Reaves, Timothy, apertu...@lists.apple.com
Hi

I'm happy with the idea of it being open source, also getting help with it would be very handy! Did you mean Bazaar as in the opposite of The Cathedral, or as in the version control tool bzr?
(I ask only because I much prefer bzr to git, but since xcode wants me to use git and the world seems to like git, this presumably should live on github rather than Launchpad ;)

Cheers,

Chris

Reaves, Timothy

unread,
Oct 18, 2011, 9:04:08 AM10/18/11
to Chris Jones, apertu...@lists.apple.com
I mean the Canonical SCM.  I much prefer it, and Stellarium - which I help to develop - uses it.  I've filed a ticket with Apple for bzr support, so we'll see.  But I do not find that the SCM external to the IDE to be a big deal.

Chris Jones

unread,
Oct 18, 2011, 11:07:32 AM10/18/11
to Reaves, Timothy, apertu...@lists.apple.com
Hi

I need to check up on the exact provenance of the base64 category I used, but once i've done that I'll throw the code up on Launchpad. I'd like to go with GPL v2, but I also need to check that I'm allowed to do that since some of the code will be from the Aperture SDK's xcode template project.

(I'm also very glad to see that you meant bzr, since I happen to work for Canonical, but I should note that I'm here on my spare time ;)

Cheers,

Chris

Chris Jones

unread,
Oct 18, 2011, 6:56:26 PM10/18/11
to Reaves, Timothy, apertu...@lists.apple.com
Hi

I've thrown the code up at https://github.com/cmsj/ApertureImgurExportPlugin for now, I'll look at making a Launchpad project later perhaps, but the Xcode integration of git is extremely tempting to hang on to (especially since I threw away 2 hours of hacking earlier because I hadn't committed it).

Right now it's barely working. It's uploaded a single image to Imgur, but there's no user feedback, no error handling and no way to set metadata (e.g. captions/titles).

Cheers,

Chris 
Reply all
Reply to author
Forward
0 new messages