ios-simulator

iOS permission Alerts - removing or suppressing

ε祈祈猫儿з 提交于 2019-11-27 20:48:53
I have a simple app running on ios simulator which will (at some point in the app), prompt the user to authorize the following: Location setting Address contact book Pictures/Albums Because I am doing automation testing on the iOS simulator (several thousand on virtual machines), is there a way to force iOS simulator to have these permissions already set to yes when the app is installed? I vaguely remember there was a way to manipulate this using a plist file associated with iOS simulator, but I'm not 100% sure if "its all in my head". I'm not finding much on google. There's some discussion

Can't use HTTP in iOS 8 simulator

柔情痞子 提交于 2019-11-27 20:32:27
问题 I have installed xcode 6, beta 7 on a MacBook Pro. When I try to use the iOS simulator running iOS 8, and try to connect to any site that is not using HTTPS, I get a blank page stating that "Safari cannot open the page because the network connection was lost" in the simulator. Any page that uses HTTPS works fine. I have tried various solutions for problems like this, but none of them have worked. These various solutions include restarting the Mac, uninstalling xcode 6 and reinstalling it, and

xcode8 list of simulators not showing

亡梦爱人 提交于 2019-11-27 19:57:51
I have been only recently working with Xcode 8 beta 4 but it has been working fine up until now. The list of simulators is not showing for any of my projects. I already tried Creating a new Scheme and it did not work. How do I fix this? Deleting derived data and restarting Xcode worked in my case. rm -rf ~/Library/Developer/Xcode/DerivedData/* Ensure your Deployment Target version in Build Settings is also set to the desired version (and that you have that version of the respective simulator installed). In the below example, if that were set to 10.3 and I didn't have an iOS 10.3 simulator

All exception break point is stopping for no reason on simulator

杀马特。学长 韩版系。学妹 提交于 2019-11-27 19:55:40
问题 This is very annoying, every time I'm trying to debug on the simulator with "all exception break point", app stops for no reason on this line: return UIApplicationMain(argc, argv, nil, NSStringFromClass([STAppDelegate class])); Did any one else found him self struggling with this issue? Thanks! EDIT Back trace on first throw: thread #1: tid = 0x1d96b, 0x36fbf540 libc++abi.dylib`__cxa_throw, queue = 'com.apple.main-thread', stop reason = breakpoint 3.2 frame #0: 0x36fbf540 libc++abi.dylib`_

Xcode compiles my App, but can't run it in the simulator

谁说胖子不能爱 提交于 2019-11-27 18:56:20
when i compile my app, Xcode just says "Attaching to Projectname..." and gets stuck there. The debugger just prints this out: error: failed to attach to process ID 0 I tried to clean & build again and it still doesn't work out. I googled but couldn't find anything helpful. How can I fix this problem? Thank You! Lindemann The solution for me was to delete everything Xcode has generated earlier: the App on the Simulator...if this is not possible because you cant reach the Homescreen, you can delete the App directly under ~/Library/Application Support/iPhoneSimulator/6.0/Applications delete the

where are my iOS simulators in xcode 6 after yosemite installation?

二次信任 提交于 2019-11-27 18:28:13
问题 I upgrade to Yosemite my Mini Mac (yesterday) and after a long hours (almost a day) the installation was succeeded. I enter in my source code in Xcode 6.0.1 and after automatically install several things (i just saw the message and wait) i can't see the iOS simulators just iOS Device. I check in Preferences but i have iOS Simulator 7.1 checked but i don't have any other simulator and i can't see 7.1 simulator either. Thanks for your help. EDIT **** After install Xcode 6.1 I saw my iOS

iOS 5.1 with Xcode 4.3.1: [UIColor colorWithPatternImage:] strange behavior only on device

孤人 提交于 2019-11-27 18:10:06
When I compile my app in Xcode 4.3.1 with iOS 5.1, I notice there is a strange behavior with background textures only on actual device. There is a 1px gap in between texture tiles shown in screenshot below. My texture are 150x150 and 300x300 at 2x. So far I've tested the same build on: Simulator iPhone/iPad both 5.0/5.1: No bug iPhone/iPad running 5.0.1: No bug iPhone/iPad running 5.1: Buggy I've been getting the same problem since 5.1 aswell. I solved it by doing the following to the image in photoshop. You can probably do the same in another tool. Load the file, select all, and copy to

Specific compiler flags for specific files in Xcode

二次信任 提交于 2019-11-27 18:05:46
问题 I've been tasked to work on a project that has some confusing attributes. The project is of the nature that it won't compile for the iPhone Simulator And the iPhone Device with the same compile settings. I think it has to do with needing to be specifically compiled for x86 or arm6/7 depending on the target platform. So the project's build settings, when viewed in Xcode's Build Settings view doesn't enable me to set specific compiler flags per specific files. However, the previous developer

Random (lldb) crashes in iOS Simulator on Mac OS X 10.8.4

不问归期 提交于 2019-11-27 17:31:02
问题 I've been struggling with an weird issue for some time now. When running my app with the iOS Simulator initially closed it launches correctly. But if I then run it again without closing the simulator it crashes and just prints (lldb) in the error log. If I then run it again (without closing the simulator) it launches correctly. And if I do the same again it crashes. So it seems to be every second time. It works when using a iOS device and I have a college with the exact same project who doesn

Simulate memory warnings from the code, possible? [duplicate]

*爱你&永不变心* 提交于 2019-11-27 17:24:37
This question already has an answer here: iOS Development: How can I induce low memory warnings on device? 10 answers I know i can simulate a memory warning on the simulator by selecting 'Simulate Memory Warning' from the drop down menu of the iPhone Simulator. I can even make a hot key for that. But this is not what I'd like to achieve. I'd like to do that from the code by simply, lets say doing it every 5 seconds. Is that possible? Brad The App Guy It is pretty easy actually, however it relies on an undocumented api call, so dont ship your app with it (even if it is in a inaccessible code