xcode-instruments

Why am I seeing “An error occurred while trying to run the script.” in the UI Automation instrument?

被刻印的时光 ゝ 提交于 2019-11-30 17:46:24
When I try to run a UI Automation script on iOS 5 devices I am getting the following error: "An error occurred while trying to run the script." The same script is running perfectly in the simulator or on an iOS 4.3.3 device. How can I solve this problem? user1751511 This should fix this issue: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer On devices you should explicity allow to run UI Automation scripts. Go to Settings -> Developer Switch Enable UI Automation to on After turning the option on, the error went away and everything worked as expected. I would try closing

Launch a specific Hardware version of iOS simulator using instruments command line utility

末鹿安然 提交于 2019-11-30 04:50:24
I am using UIAutomation provided by Apple -> Xcode -> instruments. I have my Javascripts and the whole automation using instruments command line infrastructure running up. I got an additional task of running automation on previous versions of simulator (iOS 6.0 , 5.1, 5.0, 4.3.2) to provide better coverage. But i do not know a way to specify which version of iOS simulator to choose from. by default it always chooses the lates iOS simulator. I have tried the following things: Specifying the path where the simulator is kept which includes the version path of simulator. Making a custom Automation

Why am I seeing “An error occurred while trying to run the script.” in the UI Automation instrument?

空扰寡人 提交于 2019-11-30 01:13:52
问题 When I try to run a UI Automation script on iOS 5 devices I am getting the following error: "An error occurred while trying to run the script." The same script is running perfectly in the simulator or on an iOS 4.3.3 device. How can I solve this problem? 回答1: This should fix this issue: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer 回答2: On devices you should explicity allow to run UI Automation scripts. Go to Settings -> Developer Switch Enable UI Automation to on After

Is it possible to run XCTest based tests under Instruments in Xcode 5?

喜夏-厌秋 提交于 2019-11-29 21:34:14
Looking at XCTest and Xcode 5 unit testing and not seeing how to run my unit tests under Instruments in Xcode 5... Specifically I'd like to look for leaks during the test (this doesn't have to be automated in this instance, though clearly that'd be useful). Possible? I think this is the easiest way: Set a breakpoint somewhere in your tests (I've been doing it in the setup method) Open a new document in instruments Run the application and make sure it's stopped at a breakpoint From the Target drop down in Instruments choose Attach to Process and scroll down to your process Click on record and

Launch a specific Hardware version of iOS simulator using instruments command line utility

对着背影说爱祢 提交于 2019-11-29 01:54:52
问题 I am using UIAutomation provided by Apple -> Xcode -> instruments. I have my Javascripts and the whole automation using instruments command line infrastructure running up. I got an additional task of running automation on previous versions of simulator (iOS 6.0 , 5.1, 5.0, 4.3.2) to provide better coverage. But i do not know a way to specify which version of iOS simulator to choose from. by default it always chooses the lates iOS simulator. I have tried the following things: Specifying the

My app freezes but no error appears

走远了吗. 提交于 2019-11-28 21:07:27
Does any body know what I have to check if my app freezes? I mean, I can see the app in the iPad screen but no buttons respond. I have tried debugging the code when I click on the button, but I haven't seen anything yet. I was reading about the Instruments tools; specifically how do I use them? Can anybody help me? I just need an explanation about how use the tools. Ben Baron It sounds like you've blocked the main thread somehow. To debug, run the app in the debugger and when the app freezes, hit the pause button above the log area at the bottom of Xcode. Then on the left side, you'll be able

Is it possible to run XCTest based tests under Instruments in Xcode 5?

烈酒焚心 提交于 2019-11-28 17:33:31
问题 Looking at XCTest and Xcode 5 unit testing and not seeing how to run my unit tests under Instruments in Xcode 5... Specifically I'd like to look for leaks during the test (this doesn't have to be automated in this instance, though clearly that'd be useful). Possible? 回答1: I think this is the easiest way: Set a breakpoint somewhere in your tests (I've been doing it in the setup method) Open a new document in instruments Run the application and make sure it's stopped at a breakpoint From the

UICollectionview Scrolling choppy when loading cells

六月ゝ 毕业季﹏ 提交于 2019-11-27 17:43:04
I have a gallery in my app utilizing a UICollectionView . The cells are approximately 70,70 size. I am using ALAssets from the ALAssetLibrary in the gallery which I have stored in a list. I am using the usual pattern for populating the cells: -(UICollectionViewCell*)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { mycell = [collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath]; mycell.imageView.image = [[UIImage imageWithCGImage:[alassetList objectAtIndex:indexpath.row] thumbnail]]; return mycell; } My

Is there a way to remove the authorization prompt from command-line instances of Instruments (XCode)?

倾然丶 夕夏残阳落幕 提交于 2019-11-27 10:45:19
I am currently using Instruments via a bash script to initiate the command-line interface to start up runs of the Automation plug-in. With 4.2, this worked well enough, however with the upgrade to Xcode 4.3, I am now being prompted for an authorized user to 'analyze other processes'. No user is ever actually authenticated, even if the correct credentials are granted. I get the following error: Failed to authorize rights (0x20) with status: -60007. 2012-02-27 19:30:37.232 instruments[54151:1c03] Failed to connect to local pid watcher service: (os/kern) failure Even with the authentication

UICollectionview Scrolling choppy when loading cells

亡梦爱人 提交于 2019-11-26 22:35:49
问题 I have a gallery in my app utilizing a UICollectionView . The cells are approximately 70,70 size. I am using ALAssets from the ALAssetLibrary in the gallery which I have stored in a list. I am using the usual pattern for populating the cells: -(UICollectionViewCell*)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { mycell = [collectionView dequeueReusableCellWithReuseIdentifier:cellIdentifier forIndexPath:indexPath]; mycell.imageView.image = [