Re: error: 'AuthorizationRef' has not been declared Help!
Re: error: 'AuthorizationRef' has not been declared Help!
- Subject: Re: error: 'AuthorizationRef' has not been declared Help!
- From: Stephen Northcott <email@hidden>
- Date: Sat, 20 Jun 2009 22:49:37 +0700
Hi Fritz,
Thanks for the feedback. I actually found it in the end.
When I added the Security.Framework it actually copied it to the root
of my project.
I am not sure how this happened as copying it is not an option when
you specifically include a Framework, and I am sure I would have
remembered selecting that option. I've been using XCode for a few
years now!!
I just updated to 3.1.3 so perhaps I missed something, or it is a
bug... Or perhaps I am just going mad!
I don't quite see how the Security.Framework being in the source
directory was a huge problem, or made a difference from Simulator to
Device, but I assume that has something to do with path assumptions by
the Frameworks and the magic that XCode does when it makes Simulator
or Device builds.
Anyway, all is good in XCode land again now. :-)
Kind regards,
Stephen.
On Jun 20, 2009, at 10:43 PM, Fritz Anderson wrote:
On 19 Jun 2009, at 11:21 PM, Stephen Northcott wrote:
It is related to iPhone development and this same project will
build for the device, but not for the simulator... and gives the
following errors.
I can offer only routes for investigation. Proceed from this:
AuthorizationRef is part of Authorization Services, which is not
available on the iPhone.
I'm a bit puzzled that it works for you on the device and not the
simulator; with Mac OS X-only API, it's usually the other way
around. Try doing a Clean All, including dependencies and
precompiled headers. Maybe also examine /Volumes/Dev/iPhoneDev/Ball/
Prefix.pch, which seems to be the root in your code of the failure
to load <Security/Authorization.h>.
<http://developer.apple.com/documentation/security/Conceptual/SecureCodingGuide/Articles/SecuritySvcs.html#//apple_ref/doc/uid/TP40002650-CHDEEDHC
>
— F
--
Fritz Anderson -- Xcode 3 Unleashed: Now in its second printing -- <http://x3u.manoverboard.org/
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden