instruments

Instruments 4.1 unresponsive to projects launched from Xcode 4.1 until pressing Cmd-Tab

喜夏-厌秋 提交于 2019-12-10 12:37:57
问题 If I open Instruments and select a standard application (e.g. Mail or MS Word) it has no issue. If I am in Xcode and I go to Product > Profile (or press Cmd + I ), it launches Instruments, allows me to select a template, and loads the standard screen. Then the downward arrow starts tracing to the right as it should, and the iOS simulator launches the program. However, nothing is plotted in Instruments. It shows no changes to anything no matter what the app is doing. I can't click anything in

Automating iOS 8 app with Appium causes app freeze

走远了吗. 提交于 2019-12-10 10:43:45
问题 We have an app that we run automation tests on with Appium. We can launch the app on the device and simulator through Appium. However, the app hangs and freezes after Appium sends 2-3 tap commands. After the freeze, Appium can not find any other elements on the screen. We looked into writing a test script using Xcode 6.0.1 Instruments, but when the script is run, the app hangs as well. The app performs as expected when testing manually. It only hangs when we try to run automation on it either

Resign iOS App from a distribution identity to a developer identity

这一生的挚爱 提交于 2019-12-10 10:14:04
问题 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

Replacing the UIWindow's rootViewController while using a transition, appears to be leaking

人走茶凉 提交于 2019-12-10 04:28:45
问题 Environment iOS 9.2 Xcode 7.2 I'm looking to replace the UIWindow's rootViewController with an animation while also removing it from the view hierarchy as well. class FooViewController: UIViewController { } class LeakedViewController: UIViewController { } Then initiate the transition in the AppDelegate simply by self.window!.rootViewController = LeakedViewController() let fooViewController = FooViewController() self.window!.rootViewController?.presentViewController(fooViewController, animated

Running out of memory in 'Other Processes' in Usage Comparion Xcode iOS9

拜拜、爱过 提交于 2019-12-10 03:41:39
问题 My app crashes on devices with 0.5GB memory. However, profiling memory usage in Xcode - it rarely goes above 140MB. I've used instruments to check leaks and there are none that are significant. However, when I run my app, the memory used by 'Other Processes' is always very high. This is the resting state after launching: I added a 1 second delay in each cycle of a loop in my code, and discovered that on each loop, the 'other processes' increases memory usage by about 3MB per object, until on

Apple Instruments has mangled symbols and greyed out symbol names when profiling C++ application

强颜欢笑 提交于 2019-12-10 02:08:26
问题 I'm trying to profile a large C++ application with Apple Instruments. I also wanted to do it WITHOUT building an Xcode project/workspace around my project (since I have an insane amount of dependencies / libraries / makefiles already set up). To do this I launched Instruments from Xcode/Contents/Applications/Instruments and selected a time profiler. For my target, I set it to my binary I wanted to profile. I then set the working directory to where my project files are (and the subsequent dSYM

Allocations tracking library was not loaded in time and unable to see stack trace

孤者浪人 提交于 2019-12-10 01:15:54
问题 For opening Instruments we must profile first then select which template we have to profile memory leaks,allocations,zombies. But still I get the error allocations library was not loaded, and could not see the stack trace also. And could not find the reason of leak in the application As mentioned solution in other links, I am using both simulator (iOS7), and active scheme (iOS7) Xcode Version:Version 5.0.2 (5A3005) Simulator: iOS 7.0.3 (111B508) Mac: OS X Version 10.8.5 Please excuse if any

What is CG Raster Data?

痴心易碎 提交于 2019-12-09 07:41:34
问题 I'm trying to find another memory leak in my code, and I can't seem to figure out what CG Raster Data is. While going through the VM Tracker with automatic snapshots enabled, the CG Raster Data seems to be the only part that increases. These also increase steadily without the allocations increasing. I'm not entirely sure what the CG Raster Data is, nor how I would fix it, but at this point the increasing footprint eventually causes a memory error and crash, so it's not good! I do my own text

Instruments always launches iPad Simulator for Universal Apps with Automation, how can I force it to use the iPhone Simulator?

我们两清 提交于 2019-12-09 05:50:50
问题 I've created a universal binary using iOS 4.2 and Xcode 3.2.5. I'm trying to do some automation testing on the application and since the interfaces are slightly different between the iPad and iPhone versions, I have separate UIAutomation scripts. Unfortunately, no matter what I do, when I click the record button in Instruments, it always starts the application using the iPad simulator. How can I force Instruments to launch the iPhone simulator? The universal app runs fine in the simulator for

Instruments > Allocations not showing app classes/objects

喜欢而已 提交于 2019-12-09 04:41:04
问题 In previous versions of Instruments I had no problem but now (v6.2) for some reason Allocations won't list any of my app's objects. I've tried Debug and Release Mode: Note, the filter "VC" should catch all the ViewControllers. And without the filter... Any ideas? 回答1: I tested this out with both 6.2 and 6.3 and encountered the issue. Also I was using the iOS 8.2 and 8.3 simulators. However, when I switched to the iOS 8.1 simulator, it worked properly. So it's not so much a bug with