ios-simulator

How can I debug js code using Cordova and ios simulator?

狂风中的少年 提交于 2019-12-03 05:39:52
问题 I am using xcode 4.5.2 and PhoneGap (Cordova) to develop an iphone app. Looking at the Log Navigator in xcode does not show me any of the js console.log s. What must I do to be able to see these log outputs? 回答1: This may be a little late but its quite simple. So in Safari, Go preferences -> advanced -> Show Develop menu in menu bar . Once you've that, build and run in xcode and then in safari go Develop -> iPhone Simulator -> Your App Name . It works pretty well but I can't find a way to

XCode 7 (Beta 3 & 4) Could not download and install iOS 8.* simulator

自作多情 提交于 2019-12-03 05:36:48
问题 Trying to get iOS 8 simulators in XCode 7. Prior to beta 3, that wasn't possible but in beta 3 release notes: "Xcode 7.0 beta now supports downloadable legacy simulators." Xcode 7 beta 3 Release Notes They also show up in the "Downloads" section: I'm running into the same problem as reported in this question about XCode 6. I have Xcode 6 still installed, but am trying to install the simulator to Xcode 7 beta 3 where iOS 8 is no longer the base OS. Error msg: Could not download and install iOS

Xcode 7.1 Simulators Constantly Freezing When I Use Them

无人久伴 提交于 2019-12-03 05:11:21
Recently (today and yesterday) my simulators have begun to freeze every single time I open them. I'll start my app up, and within a minute, even less, the entire simulator freezes and I get the spinning wheel of death. If I wait it will unfreeze and do the task, only to freeze again seconds later. If I restart my computer it'll work for maybe 5 minutes before freezing, same if I reset the simulator. However, it always goes back to freezing on me. This is extremely frustrating, as you can imagine! I've searched Google but haven't found anything mentioning my problem. Has anyone had this happen

Is it possible to run iOS simulator on a Mac without Xcode installed?

十年热恋 提交于 2019-12-03 04:53:52
There are a few questions relating to this topic but nothing quite the same when it comes down to the details: We would like to use the iOS Simulator without installing the rest of XCode on a macbook. It is an in-house laptop, and will be used by employees, but not engineers. We already know how to run applications on the simulator without the source code and compiling required, but it would be nice to be able to install a 100MB app and application support that can run our in-house distribution app as opposed to a 2.4GB XCode installation. Any ideas? Thanks. The Simulator app requires several

Simulate airplane mode in iPhone Simulator

≡放荡痞女 提交于 2019-12-03 04:52:09
问题 Is there any way to simulate airplane mode in the iPhone Simulator? 回答1: Turn off your network connection on the Mac. 回答2: You could install Apple's Network Link Conditioner On Yosemite: Network Link Conditioner can be found in the "Hardware IO Tools for Xcode" package. This can be downloaded from the Apple Developer Downloads page. Once the download has finished, open the DMG and double-click "Network Link Condition.prefPane" to install (source). With this preferences panel you could create

Conditional compile when running in Simulator as opposed to on a device

烈酒焚心 提交于 2019-12-03 04:46:08
问题 Is there a compiler directive I can use to compile a different line of code when targetting the simulator as opposed to my device. Something like: # IF SIMULATOR [self.imagePicker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary]; # ELSE [self.imagePicker setSourceType:UIImagePickerControllerSourceTypeCamera]; # END EDIT Direct link to docs. 回答1: #if TARGET_IPHONE_SIMULATOR [self.imagePicker setSourceType:UIImagePickerControllerSourceTypePhotoLibrary]; #else [self.imagePicker

How to test an iOS application on the CarPlay simulator

元气小坏坏 提交于 2019-12-03 04:36:32
问题 I am trying to develop an iOS application compatible with CarPlay. According to this post Is iOS CarPlay API Public? How to Integrate CarPlay?, I have to be enrolled with Apple’s MFi program, but I have noticed that there’s the possibility to use a CarPlay simulator with Xcode: launch the Simulator, then Hardware -> External Displays -> CarPlay (I use Xcode 8). Once you have opened it, you see that the Message App is working in the CarPlay simulator so I imagine that there is the possibility

Pass deep link into iOS Simulator

China☆狼群 提交于 2019-12-03 04:21:26
I would like to find an easier way to call deep links in the iOS simulator. On Android you can use ADB to pipe links into the simulator by using the console. Is there a similar way or a workaround to do that with the latest iOS simulator? Best Regards and thank you very much! You can type this into your Terminal : xcrun simctl openurl booted <INSERT_URL_HERE> You can even share documents using the builtin Share Extension from the Finder to the iOS Simulator. 来源: https://stackoverflow.com/questions/46670298/pass-deep-link-into-ios-simulator

How to access iOS simulator camera [duplicate]

 ̄綄美尐妖づ 提交于 2019-12-03 04:09:28
This question already has answers here : How do I test a camera in the iPhone simulator? (5 answers) Hi friends i am doing camera app. i need to test the app in simulator but i can't able to access the iOS simulator camera. Any help for my problem. If not possible in simulator means i need to access my system camera. Whether it is possible?I tried Image picture view controller but it not works .Any help will be appreciated. The below code only i tried.. self.imagePicker = [[UIImagePickerController alloc] init]; UIImagePickerControllerSourceType sourceType =

Where is my app document folder in Xcode 9 simulator

≡放荡痞女 提交于 2019-12-03 04:07:55
Where is my app document folder in Xcode 9 simulator? I tried the old answers for Xcode 8, it's not there. And why Apple makes it so difficult to see the sandbox of our apps in simulator? I found it in the following path. ~/Library/Developer/CoreSimulator/Devices/(SIMULATORID)/data/Containers/Data/Application/(APPLICATIONID) You can also look into this application for more details. List of simulator devices can be found in the below path: ~/Library/Developer/CoreSimulator/Devices/ Below file has simulator information: ~/Library/Developer/CoreSimulator/Devices/{UUID}/device.plist simctl is the