ios-simulator

Debugging app crashes with iOS Simulator & XCode 4 halts in main() function, not crash source [duplicate]

假装没事ソ 提交于 2019-12-06 02:16:08
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Xcode 4.2 showing the wrong line of code on error Xcode 4's debugger doesn't seem to halt execution anywhere near the causes of crashes in iOS Simulator. Say I introduce a bug in my code, perhaps an array out of bounds error like this: NSMutableArray * test = [[NSMutableArray alloc] initWithCapacity:5]; [test insertObject:@"Hello" atIndex:10]; When the app inevitably crashes, I'm taken to the main function in

how to download iOS 10.3.3 simulator

走远了吗. 提交于 2019-12-06 02:12:35
问题 I wanted to try my app on iPhone 6 with iOS 10.3.3 but I couldn't find iOS 10.3.3 in simulators any ideas are welcome 回答1: Unfortunately you can't download it from this window, as Apple does not release/provides simulator for each version/subversions of iOS. Here I've simulator list with Xcode 9.3, Component window. It seems apple has not provided simulator for 10.3.3. You can also add/find a simulator from Xcode Target: Open simulator list against your Xcode target and Add Additional

iOS Simulator not works on https, all https are evaluated as not trusted

試著忘記壹切 提交于 2019-12-06 01:54:12
问题 The Simulator Version 10.0 (SimulatorApp-835.2.1), the Xcode version is 9.1 Seems that all the https connections are evaluated as not trasted , it is affected after the upgrade of Xcode and simulator. I'm sure that the https connection are with valid certificate also because the same https://support.apple.com get Not trusted problem inside the simulator. With safari I get some details about "not trusted" site clicking on showDetails and view the certificated the result is the follow: I

xcode ios project taking long time to compile and run?

天大地大妈咪最大 提交于 2019-12-06 01:49:42
问题 My application is taking very long time around 10 minutes to compile and run on simulator. The application was running fine initially however after adding SUP static library it is taking very long time to build. xcode version:4.6 I have tried resetting the simulator and restarting the machine Please help. 回答1: As I answered to a similar question, I wrote an extensive blog post about how I improved iOS development cycle at Spotify: Shaving off 50% waiting time from the iOS Edit-Build-Test

Use the UIImagePickerController on a iphone simulator

纵饮孤独 提交于 2019-12-06 01:45:40
问题 I have the method, that take photos from gallery or from the camera -(IBAction) getPhoto:(id) sender { UIImagePickerController * picker = [[UIImagePickerController alloc] init]; picker.delegate = self; if((UIButton *) sender == choosePhotoBtn) { picker.sourceType = UIImagePickerControllerSourceTypeSavedPhotosAlbum; } else { picker.sourceType = UIImagePickerControllerSourceTypeCamera; } [self presentModalViewController:picker animated:YES]; } But when i run it on the simulator, code doesnt

Bug in XCode debugger?

北战南征 提交于 2019-12-05 23:33:09
I am working on an iPhone app which is using an external library for which I have the source. During debugging some of the objects are listed as 0x0 in the debugger but the app runs fine. Also, some of the objects addresses point to the wrong thing. These symbols are in the external library. The addresses are fine if I am tracing through a file actually in the external library. Does anyone have suggestions how to stop this behavior? UPDATE : target settings > Build tab > GCC 4.2 Code Generation > "Compile for Thumb" I turned off this target setting and the gdb problem went away. -- Hi John. I

How do I turn off the Accessibility Inspector in the iOS 9 simulator?

十年热恋 提交于 2019-12-05 21:52:51
The accessibility inspector is turned on by my KIF tests (apparently it's necessary for KIF to work.) Problem is, its window occludes controls some subsequent UI tests need to tap on and those tests fail. How can I turn the Accessibility Inspector off when my KIF tests are done with it so my UI Tests can run? (Turning it off "manually" from the simulator's Settings app is not a solution—I'm looking for something I can call from code, set in the target or...?) It is not on by default. You must turn it on manually. bby I saw the following on Stew Gleadow's blog . You just need to change the line

How do I run an iPad Simulator in Xcode?

时光毁灭记忆、已成空白 提交于 2019-12-05 20:31:17
问题 I am trying to run an iPad simulator on Xcode, but currently I only have one option when I go to Xcode > Open Developer Tool > Simulator, which launches the iPhone simulator. How do I launch the iPad simulator? 回答1: You should select an iPad device by navigating to Hardware/Device/[OS version if you have multiple OS versions installed]/[device] in the simulator's menu. If there are no iPad devices in the list, follow these instructions: Click on Hardware/Device/Manage Devices... Select the

CFBundleExecutable missing or invalid

不羁的心 提交于 2019-12-05 18:55:09
Attempting to run my project in the iOS simulator, I get a launch code error '0'. Checking the console logs in CoreSimulator.log I found the .app executable "has missing or invalid CFBundleExecutable in its Info.plist" . I'm not sure how to deal with this issue. Perhaps making sure the CFBundleExecutable file is named correctly, but what exactly is it supposed to be named? 来源: https://stackoverflow.com/questions/30236300/cfbundleexecutable-missing-or-invalid

Error “Class VCWeakObjectHolder is implemented in both…” is crashing debug sessions

六眼飞鱼酱① 提交于 2019-12-05 18:39:36
问题 I am getting following error all the time in my iOS app: objc[56232]: Class VCWeakObjectHolder is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/AVConference.framework/Frameworks/ViceroyTrace.framework/ViceroyTrace (0x12fe564d0) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library