ios-simulator

Is it possible to record actual sound on the simulator using mic

落爺英雄遲暮 提交于 2019-11-28 12:15:14
Is it possible record the actual sound on the simulator using the mic. I have created the recorder which record the sound in simulator but not recording the actual audio its just null(empty) audio. B.S. iOS Simulator does not support audio recording, you should use real device to test. Here you can read about Limitations of Testing in iOS Simulator Hardware Limitations While most of the functionality of iOS devices can be simulated in iOS Simulator, there are some hardware features that must be tested directly on a device. The hardware features that cannot be simulated are: Accelerometer

RESTful Web Services Implementations in Mobile Devices

一笑奈何 提交于 2019-11-28 12:02:09
问题 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

Is there a way to set the amount of memory available in the iPhone Simulator?

不羁的心 提交于 2019-11-28 11:59:29
Does anyone know if its possible to set the amount of memory available in the simulator? I'm assuming the simulator will use as much memory as possible from the system but this makes it more difficult to recreate certain low memory crashes/bugs. No it isn't possible. Testing things like memory consumption and performance should be done on the device, not the simulator. Even if you could limit the memory in the simulator you wouldn't get the same effect as there are very many different factors that will dictate how much available memory any given iPhone device will currently have. You can

simulator name is shown with id instead of os name in Xcode 6.2

百般思念 提交于 2019-11-28 10:42:21
I've installed additional ios simulators(7.1) just after installing Xcode 6.2 and now the simulator names look like this: How do I change the names? DanielG Xcode uses the device version to disambiguate devices with the same name. If two devices have the same name and version number, it will show the devices' UDIDs. You have 4 of each of all your device types, so I suspect that some of them are for the same iOS version. You should delete some of the duplicates. Check out xcrun simctl list and xcrun simctl delete or go to Windows>Devices in Xcode to delete or rename your devices. How to fix it

FBSOpenApplicationErrorDomain Code=3

时光怂恿深爱的人放手 提交于 2019-11-28 09:35:13
I just added a Watch app to my project and try : override func awakeWithContext(context: AnyObject?) { super.awakeWithContext(context) let res = WKInterfaceController.openParentApplication(["key" : "value"]) { (replyInfo, error) -> Void in print("replyInfo : \(replyInfo) + error \(error)") } print(res) // true here } In my AppDelegate I wrote : func application(application: UIApplication, handleWatchKitExtensionRequest userInfo: [NSObject : AnyObject]?, reply: ([NSObject : AnyObject]?) -> Void) { reply(["replyKey" : "replyValue"]); } When I launch the Watch app I just have : replyInfo : [:] +

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

不羁的心 提交于 2019-11-28 09:35:05
问题 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

How To Push Video on iPhone Simulator?

巧了我就是萌 提交于 2019-11-28 09:27:42
I would like to push a video into iPhone simulator to test video picking in UIImagePickerController. Is it possible to do that? And if it possible, could you please provide me with some advices? Thanks. You can subclass UIImagePickerController to override its behaviour and provide your own view. If you do this, you can then call imagePickerController:didFinishPickingMediaWithInfo: and supply your own pre-recorded video. If you include a video actually recorded from an iPhone 3GS, the behaviour you get will be pretty damn similar to that of the actual device. Of course, always always always

App running on iPad while its iPhone-Only

吃可爱长大的小学妹 提交于 2019-11-28 09:20:29
I made an iPhone App with Xcode. The devices setting is set to "iPhone". But in iTunes Connect it is rejected because it doesn't run on the iPad. That is weird because it is an iPhone app, but when I checked it in Xcode, I can run it with the iPad simulator,however I think that normally this is not possible with an iPhone app. I have added pictures to make my question clearer: So what is gone wrong and how can I fix it? EDIT: Picture from resolution center: Thanks all, I Found the problem/solution: In my info.plist there was an extra row called supported interface orientations(iPad) where the

iPhone - Save UIImage to desktop on simulator

时光总嘲笑我的痴心妄想 提交于 2019-11-28 09:07:04
I'm currently working on the simulator. I'd like to save an UIImage to a jpg file, on my desktop. It seems that I have a problems with paths or something. Thank you for your help :) The following should get you started... myImage is an UIImage object. NSFileManager *fileManager = [NSFileManager defaultManager]; NSData *myImageData = UIImagePNGRepresentation(myImage); [fileManager createFileAtPath:@"/Users/Me/Desktop/myimage.png" contents:myImageData attributes:nil]; Edit: Just noticed you wanted a JPG image, you can get the NSData representation of a JPG using UIImageJPEGRepresentation() so:

react-native run-ios can not find any simulator

别说谁变了你拦得住时间么 提交于 2019-11-28 08:33:17
I have been facing an issue where 'react-native run-ios' can not start, regardless of the simulator I add to the --simulator argument. XCode has the correct location for the 'command line tools' I am always getting the error: Could not find iPhone X simulator Error: Could not find iPhone X simulator at resolve (/Users/eric/.../swim/node_modules/react-native/local-cli/runIOS/runIOS.js:149:13) at new Promise (<anonymous>) at runOnSimulator (/Users/eric/.../swim/node_modules/react-native/local-cli/runIOS/runIOS.js:134:10) at Object.runIOS [as func] (/Users/eric/.../swim/node_modules/react-native