ios-simulator

Xcode9 code coverage is not displayed

半世苍凉 提交于 2019-12-20 10:24:41
问题 I have been trying to get the code coverage for my project using Xcode 9 . All test case run successfully but did not generate the code coverage report under Code coverage tab. I tried following things: Enable the Gather code coverage in scheme. Enable Code Coverage Support for my target. Enable the Show case bundle option. Is there extra setting require to check code coverage report ? or should I missed something ? Thanks in advance. 回答1: Issue Resolve in Version 9.3, to get the code

Xcode 9 - Could not attach to pid for Frameworks unit tests

寵の児 提交于 2019-12-20 09:56:05
问题 I am getting the following error after migrating from one mac to another using time machine. Could not attach to pid Ensure "project title" is not already running, and "system username" has permission to debug it. The error occurs only when running the unit tests for (any) Framework project. Running an application on simulator and device works fine. Running unit tests for an application works, but running it for any framework can't be launched due to this error. I am getting this error even

Is it possible to “toggle software keyboard” via the code in UI test?

瘦欲@ 提交于 2019-12-20 09:35:52
问题 I have UI tests which testing login functionality (and uses it to test other stuff), but sometimes when focus is changed from one field to another - the keyboard hides, and although the cursor is blinking in the field, I getting error on field.typeText - no focused fields to fill . Somehow I realized, that clicking on a Hardware -> Keyboard -> toggle software keyboard makes keyboard to persist on the screen, so test is works well. But I need to make it working on any testing device, on any

Alert“Developer tools access needs to take control of another process for debugging to continue.Type your password to allow this.”

本秂侑毒 提交于 2019-12-20 08:57:29
问题 I am using OS X Mavericks with Xcode 4.6.3. I am running the app on simulator as i don't have a developer account. Whenever i run the project on simulator it keeps asking me "Developer tools access needs to take control of another process for debugging to continue. Type your password to allow this". The same issue i also experienced on OS X Mountain Lion with Xcode 4.6.2, so its definitely not related to the OS Version or Xcode Version. I have gone through Stackoverflow's issue related

App crash on iPad simulator

家住魔仙堡 提交于 2019-12-20 06:48:53
问题 App works fine on iPhone device, iPhone simulator but when tested on iPad simulator it crashed and message got is [UIWindowLayer convertPoint:fromView:]: unrecognized selector sent to instance. Program received signal EXC_BAD_ACCESS on thread1 UIApplicationMain - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]autorelease]; self.containerViewController = [

Generating alert to User when didReceiveMemoryWarning is called

南笙酒味 提交于 2019-12-20 06:48:07
问题 I've seen some apps that generate a warning when low memory is detected. I tried to do this in my app but ran into a problem. Using the simulator to simulate a memory warning, the alert generated pops up twice before I can hit "ok" and pops up 9 more times after that times before it finally goes away. Is it a bad idea to generate an alert when didReceiveMemoryWarning is called? If not, is there a better way to do this than what I have below? - (void)didReceiveMemoryWarning { [super

Is it possible to load a separate application into the iphone?

放肆的年华 提交于 2019-12-20 06:29:26
问题 I am having a iphone and i have created an application using Xcode. Now i want to move this application into my iphone for my use. How can it be done? I tried to copy my application to the iphone Applications folder using the phone view software, but i'm not able to open my application in the iphone. It shows the error "Your Myapp.app cannot be open" Is there any other way to install my application into the iphone? Please guide me regarding this. Thanks 回答1: You'll need to register as an

Issue with fetching the contacts list from Device

家住魔仙堡 提交于 2019-12-20 05:46:10
问题 What's wrong with this code : NSMutableArray* contactArray = [[NSMutableArray alloc] init]; ABAddressBookRef addressBook = ABAddressBookCreate(); CFArrayRef allPeople = ABAddressBookCopyArrayOfAllPeople(addressBook); // Over here it returns zero count. CFIndex nPeople = ABAddressBookGetPersonCount(addressBook); for (int i = 0 ; i < nPeople; i++) { NSMutableDictionary* dicContact = [[[NSMutableDictionary alloc] init] autorelease]; ABRecordRef ref = CFArrayGetValueAtIndex(allPeople, i); } It

Can't update calabash server version

丶灬走出姿态 提交于 2019-12-20 03:20:01
问题 Having a problem updating the Calabash server version. The problem is that I can run basic tests that check for elements... However, once I try to "touch" buttons calabash returns RuntimeError: Could not parse response ''; the app has probably crashed The origin of the problem, I believe, is that my server version is old/incompatible. Not rocket science: WARN: The server version is not compatible with gem version. Please update your server. https://github.com/calabash/calabash-ios/wiki/B1

Unable to run app in Simulator Xcode 6

最后都变了- 提交于 2019-12-20 02:54:42
问题 Yesterday i was testing my app in the iOS simulator and everything was working fine. I then decided to run the app on my iPhone and i got the error unable to install application, Unknown error occurred this has happened before so I cleaned my build folder (as this has fixed this issue before) however, the same error occurred. I then ran the app in the iOS simulator again and now i get the error Unable to run app in Simulator, An error was encountered while running (Domain =