instruments

Can't run Instruments from Xcode

僤鯓⒐⒋嵵緔 提交于 2019-12-06 00:50:17
问题 I recently upgraded to Snow Leopard and since then I am having difficulty running Instrument to instrument my app from Xcode. The Record button would be grayed out, and nothing happens. There is no message in Xcode's console telling me what's wrong either. I used to be able to attach it to process or launch the process from Instruments as well, all these are no longer working. Any idea what's causing this? 回答1: I had the same issue! I could only use Instruments on my iPhone but not on iPad or

UIAutomation through command line on a real device

谁都会走 提交于 2019-12-05 23:20:46
问题 I know starting from Xcode 4.2 it is possible to run UIAutomation scripts through command line. I've tried this and is working perfectly fine for me in simulator. I'd like to know how to get this run in an actual device.I searched and got the command for running on device as, instruments -w <device_id> -t /Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate application -e UIASCRIPT script -e

renderInContext creating memory that is not promptly released

Deadly 提交于 2019-12-05 21:24:47
While debugging in instruments using 'ObjectAlloc' I'm noticing 7megs of memory being allocated for the renderInContext call, but it never is released. When I comment out the renderInContext call this doesn't happen, and future renderInContext calls does not continue to increase the memory allotment. UIGraphicsBeginImageContext(contentHolder.bounds.size); [contentHolder.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *viewImage = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext(); Is there a way to force this memory to be released? I found out how to release

Running SenTestingKit unit tests in Instruments

陌路散爱 提交于 2019-12-05 20:14:59
问题 I'm developing a database-access library and I'm trying to check for memory leaks using already-written unit tests. These are logic tests based on SenTestingKit, set up the normal way in Xcode 4.2. I can run them fine using Cmd-U but don't see a way to start them from Instruments, or to invoke Instruments to examine them. How can I make this work? Do I need to write new cases and build them into an application? (This question is about leak-checking unit tests but I think is pre-SenTestingKit.

Xcode 4.1 Instruments Hardly Working For Me [duplicate]

牧云@^-^@ 提交于 2019-12-05 19:49:18
This question already has answers here : Closed 8 years ago . Possible Duplicate: Bug with starting Instruments via Profile under XCode 4.1 Build 4B110 Instruments used to work fine, however now that I have the new 4.1 Xcode on Lion, it is extremely slow and I have to wait about 5 min before it is responsive. Is anyone else having this same problem? I am using iOS simulator too. I have already tried reinstalling and uninstalling Xcode a few times as well. /etc/authorization, add following: <key>com.apple.instruments.process.analysis</key> <dict> <key>authenticate-user</key> <false/> <key>class

Application hangs when profiling with instrument in Xcode 6.0.1

穿精又带淫゛_ 提交于 2019-12-05 19:15:26
问题 I am observing that whenever I am profiling my application using instrument in Xcode 6.0.1, application hangs every time while I am browsing through the application. I am using iPhone 5S (iOS 8.0.2) to run my application. When I run the application on device it runs all fine. 回答1: Found the fix - disabling the NSLog statements (profiling on release and not on debug) solved the issue for me. 回答2: Extending on Abhinav's correct answer, NSLog() is indeed triggering the issue, but not all NSLogs,

Resign iOS App from a distribution identity to a developer identity

不羁的心 提交于 2019-12-05 19:09:59
I use a continuous integration tool that builds an app using a Distribution identity and an Ad Hoc mobile provision. This app is sent on a web site for ad-hoc deployment and everything works well. But now I would like to add a step in my build workflow to execute UI Automation tests. Instruments needs an app signed with a Developer identity, so instead of building a new version of the app signed with a developer certificate, I want/need (Q.A. team wants actually) to resign the previous created .ipa with developer certificates. I use the following commands to resign the app : unzip "App.ipa" rm

Memory Leak in Sprite Kit Application

给你一囗甜甜゛ 提交于 2019-12-05 18:34:38
I have a Sprite Kit game that I created in Xcode 5 and when profiling it for leaks using Instruments I see that there are indeed some leaks: The problem is that I can't tell where in my application this is coming from as the "Responsible Frame" column doesn't point me to anywhere in my application. How would one go about debugging/tracking the origins of this issue? Update #1 There is only one file in which I'm interacting w/ CGPath but I am calling CGPathRelease ... CGMutablePathRef path = CGPathCreateMutable(); CGPathMoveToPoint(path, NULL, 0, 0); CGPathAddLineToPoint(path, NULL, size.width,

IPhone: Resources to learn 'instruments'?

北城以北 提交于 2019-12-05 17:00:31
I'd like to use instruments to verify is my program doesn't have any memory leaks. Can you please provide me with some resources or tips that helped you as you were trying to figure this out? Maybe some video screencasts, or something. This program is pretty complicated and I'm not too familiar with such low level profiling utils so maybe you found a nice easy to understand tutorial as you were going through this? Cocoa Tutorial: Fixing Memory Leaks With Instruments Instruments also brings a quite good documentation For finding memory leaks using instruments - http://mobileorchard.com/find

How to symbolicate crashes in Xcode 7.3?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-05 16:44:37
问题 Can you help me get my crashes symbolicated? In Xcode 7.3, Window -> Organizer -> Crashes, I have crash reports from my latest TestFlight builds. They were built on this Mac, and all the archives with the corresponding dSYMs are in the Archives tab. The app is divided into a number of frameworks and the main app, and many are a mix of Swift and Objective C. In the crash log I can see the name of the frameworks and app listed correctly, but all the entries for my frameworks and app are in hex.