ios-simulator

How to run iPhone emulator WITHOUT starting Xcode?

删除回忆录丶 提交于 2019-11-29 18:34:38
On my old Mac running Snow Leopard, I could type "ios" into spotlight and it would start up the iPhone/iPad emulator by itself. I have since had to get a new machine running Lion. I have installed Xcode for Lion, I have installed the developer tool options from the preferences panel. But the "ios" option is no longer there :( The only way now seems to be to run Xcode, create an empty project and then launch emulator with the run option. I have searched and searched the intertubes and the facewebs, but nothing helps. Does anyone know how to run only the emulator on Lion? UPDATE: THIS IS

UIAlertView Vs UIAlertController - no keyboard in iOS 8

邮差的信 提交于 2019-11-29 18:30:17
问题 I have a old Xcode project that is targeted for iOS 6 and higher. I recently opened it up in Xcode 6 and ran in iPhone 6 simulator for iOS 8. When I tried this action UIAlertView* dialog = [[UIAlertView alloc] initWithTitle:@"Enter Folder Name" message:@"Keep it short and sweet" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK", nil]; dialog.alertViewStyle = UIAlertViewStylePlainTextInput; dialog.tag = 400; [dialog show]; I get a pop-up window but when I click on the text

How should I use identifierForVendor during development?

陌路散爱 提交于 2019-11-29 18:08:16
问题 Apple recommends using [UIDevice currentDevice].identifierForVendor. The value of this changes every time one runs their application within the iOS simulator. Initial functionality in my application requires that I recognize the device as a form of light authentication. This makes development tedious, and ideally I could persist a unique value across debug / run sessions. Are there any recommendations for accomplishing this? 回答1: It's pretty clearly documented that this value will change when

RESTful Web Services Implementations in Mobile Devices

微笑、不失礼 提交于 2019-11-29 17:46:51
I have several questions around the implementations of RESTful web services in mobile devices: Mobile client as a RESTful web service consumer: How can I build a RESTful mobile web service client and/or consume a remote RESTful web service from a mobile device? Can I use the JSR311 (aka JAX-RS) directly to implement RESTful web services in mobile device? or is there any JSR172-like or KSOAP-like for RESTful web service in mobile devices? Mobile host as a RESTful web service provider: is there any way I can host RESTful web services in a mobile device; can I use any of the existing RESTful

Can I add a music library to the Xcode iOS Simulator?

末鹿安然 提交于 2019-11-29 17:31:11
问题 I'm trying to create a music player for iPhone and iPad. I get it working perfectly on my iPhone and iPad because those actually have a music library. However I want to use fastlane and some other tools with tests so I need to be able to see/add a music library to my simulator as well. I've navigated to my emulator folder. /Users/maikohermans/Library/Developer/CoreSimulator/Devices/8A14CCDB../Data However I have no clue where to look and if I even should look here to add the music. I hope

Why does the LLDB Debugger constantly fail to attach?

可紊 提交于 2019-11-29 17:07:09
问题 I have seen a lot of answers for this question: error: failed to attach to process ID as switch to GDB . But no one addresses the reason of why it happens? Attaching works fine with the GDB debugger but the default and recommended project setting is LLDB. Can anybody explain why LLDB fails? Is it a common bug or am I doing something wrong? Alternatively, how can I set GDB as my default debugger without changing it manually when creating the new projects? System Info: OS: Lion RAM: 5GB XCode:

How to use dark mode in simulator iOS 13?

ⅰ亾dé卋堺 提交于 2019-11-29 17:07:01
问题 While I am developing the iOS app I need to test it in simulator with dark mode option so I can get more clarity about the app UI. But when I go to the Setting I am not getting option for dark mode as real device showing. 回答1: In Settings , scroll down to Developer and then Dark Appearance … 回答2: You can toggle the interface mode (i.e. Light / Dark) as well as adjust dynamic type setting on the fly (when the simulator is running) like this: 回答3: Alternatively, you can also switch the

iOS Question. Can I distribute the Xcode simulator versions of my app?

一世执手 提交于 2019-11-29 16:56:53
问题 I would like to send someone the Xcode simulator version - not the device version - of my iPad app. I have located the .app file in the Finder. Do I just zip it up and send it off or is it more complicated than that? Thanks, Doug UPDATE Chrisbtoo got the answer on this one however he left of some critical bits for those of you trying this at home: Path to Xcode simulator (the simulator can be run standalone.): /Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone

wifi on iphone simulator

梦想与她 提交于 2019-11-29 16:48:42
can i disable wifi in iphone simultaor to test my app? I disconnect pc from network, but the icon of wifi on iphone simulator is always on. After disabling your network connection, the icon is still present showing it as enabled, but the connection is of course dead. If you are using the Reachability class or just attempting to ping a URL to verify a connection, the simulator will respond the same way a device with disabled Wifi would, which makes testing on the simulator under these conditions pretty accurate. 来源: https://stackoverflow.com/questions/6001253/wifi-on-iphone-simulator

UIManagedDocument CompletionHandler not executed in iOS 5.1 simulator but works on device and iOS 6.0 simulator

萝らか妹 提交于 2019-11-29 16:18:54
I hope someone has some thoughts on this one... I have a project that uses UIManagedDocument. The first thing I do in the appDelegate is open the document. Everything has been going fine until suddenly (nothing was changed in the code) the -openWithCompletionHandler: stopped executing the handler code. The app works just fine on the device, but not in the simulator. As a lark I tried running the app under the iOS 5.0 and 6.0 simulators and everything works as expected!?! I have reinstalled xcode 4.5 and the behavior stays the same. I deinstalled by trashing the xcode app in the applications