Re: Instruments shows Mac targets instead of iOS targets. Why?
Re: Instruments shows Mac targets instead of iOS targets. Why?
- Subject: Re: Instruments shows Mac targets instead of iOS targets. Why?
- From: Eeyore <email@hidden>
- Date: Thu, 15 Mar 2012 15:28:38 -0700
I can attach in any of the following ways:
From Instruments, select a template for iOS and then from "Choose Target>Choose Target" select my app
From Xcode, "Product>Profile"
From Xcode, "Run", then from Instruments, select a template for iOS and then from "Choose Target>Choose Target" select my app
From the Simulator, start my app, then from Instruments, select a template for iOS and then from "Choose Target>Choose Target" select my app
All of these appear to correctly attach to my App running in the simulator. Furthermore, when my app is running in the simulator, I can also see my App in the "Choose Target>Attach to Process" menu list (under System items) and I'm guessing I could attach to it through that menu item.
Exactly what steps are causing Instruments to fail to find the app?
Aaron
On Mar 15, 2012, at 3:09 PM, Fritz Anderson wrote:
> On 15 Mar 2012, at 4:14 PM, G S wrote:
>
>> On Wed, Mar 14, 2012 at 11:33 PM, Alex Zavatone <email@hidden> wrote:
>>> If the app is running the simulator, then if you targeted the simulator, isn't that OK?
>> Showing Mac OS applications that are installed on the computer, instead of showing apps in the simulator? No, that's most certainly not OK.
>>
>> As it stands, Instruments is totally worthless for iOS.
>
> "Totally worthless" seems to be an… exaggeration.
>
> Obviously, attaching to the iOS Simulator is not what you want to do. You're not profiling the simulator itself, but the iOS app you're working on, which is a different process.
>
> Do I understand correctly that this is what you're doing? You're using the Run command to start the app in the simulator, thus attaching the debugger to it. Then you're running Instruments and expecting to attach that to the app on top of the debugger. I can see how that might not work.
>
> One thing that did work for me (at least superficially, I only just found it) was to run with breakpoints off (thus taking the debugger out of the picture), and then looking for the iOS app in the _System_ process list.
>
> Also, the Profile action, which launches the app into Instruments, works beautifully, and has the advantage of not missing everything before you attach.
>
> — F
>
>
> _______________________________________________
> 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
_______________________________________________
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