Reputation: 686
I've got a Mac project i want to port to IOS but i cannot resolve some classes. there is no header file included in the source except Cocoa.h which Ios does not use. What is the method to find the right header file or framework?
The classes are SecExternalFormat, SecExternalItemType and SecKeychainAttrType
Upvotes: 0
Views: 221
Reputation: 13967
The first thing I always do is a Google search. For example, in your case I might have done:
site:developer.apple.com SecKeychainAttrType
That yields this page, and then you know you need Security/Security.h
.
If you downloaded the documentation (I think it comes with Xcode) you could also search it offline.
As for why the API has changed, I think that's beyond the scope of your question.
Upvotes: 1