Re: Finding the use of a private API
Re: Finding the use of a private API
- Subject: Re: Finding the use of a private API
- From: Rick Mann <email@hidden>
- Date: Mon, 16 Mar 2015 16:12:02 -0700
> On Mar 16, 2015, at 16:02 , Wim Lewis <email@hidden> wrote:
>
>
> On Mar 16, 2015, at 3:26 PM, Rick Mann <email@hidden> wrote:
>> Further, how do I see what undefined symbols exist in a .a file? nm doesn't seem to work for those.
>
> nm works for me on static libraries (.a ‘ar’ archives). It just iterates over all the objects in the library and nm’s each one after printing the name of the object, so you can see where each symbol came from. Which seems like it would narrow it down to a single source file, at least?
nm -u on my iOS app's binary emits:
$ nm -u MyApp | grep dsyrk
_dsyrk_
_dsyrk_
These are the undefined symbols (that is, symbols provided outside my binary.
There's no other information there I see to help me identify where it's being called.
(It does, in fact, behave the same for .a file, that's a red herring).
--
Rick Mann
email@hidden
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden