ios-simulator

Xcode 4.3.3 IPhone 5.1 Simulator hanging every so often

时间秒杀一切 提交于 2019-12-10 19:40:04
问题 I've been looking around to see if anyone has similar issues recently but can't find much info. Most of the time launching apps in simulator works fine. But once or twice a day the simulator hangs and I have to force quit it. XCode says 'Running xyz on simulator'. When you try and 'Stop' in XCode nothing happens. I then have to force quit XCode. The annoying thing is the simulator wont work again unless I restart the machine! This never happens when I run apps directly on iPhone. It has

Failed to create an instance of the native type 'NSObject'

冷暖自知 提交于 2019-12-10 19:15:45
问题 I'm getting this error on executing the code below failed to create an instance of native type ' NSObject ' it is possible to ignore this condition by setting Class.ThrowOnInitFailure to false var alert=new UIAlertView("Error","Something missing !" ,new UIAlertViewDelegate(),"OK",null); I get this error only for the latest iOS 6 simulator. For my iOS 5 device it works as expected. 回答1: Try this: var alert = new UIAlertView ("Error", "Something missing !", null, "OK"); 回答2: This is because of

AdMob Ios Error: Failed to receive ad with error: Request Error: No ad to show

三世轮回 提交于 2019-12-10 19:03:02
问题 i would add ADMOB to my xcode project, but when a test it on iphone and simulator i receive this error : AdMob Ios Error: Failed to receive ad with error: Request Error: No ad to show. my code Banner.h: #import <UIKit/UIKit.h> #import "GADBannerViewDelegate.h" @class GADBannerView, GADRequest; @interface BannerExampleViewController : UIViewController <GADBannerViewDelegate> { GADBannerView *adBanner_; } @property (nonatomic, retain) GADBannerView *adBanner; - (GADRequest *)createRequest; @end

xcode5 iOS Simulator failed to install the application

点点圈 提交于 2019-12-10 17:54:27
问题 Recently i installed X-Code 5 on my new Mac-mini, and created a iOS project with "Single View Application" template.(I haven't added any code). when i run the application i got the error " iOS Simulator failed to install the application. " The deployment target and Base SDK are set to iOS 7. The simulator screen is blank as [in this stack overflow question][1] also the following Simulator menu options are not working. 1.Debug->Open System log 2.Hardware->Home,Lock & Toggle in call status bar

Double Home button press does not work in iOS Simulator

送分小仙女□ 提交于 2019-12-10 17:49:46
问题 If I try to display the multitasking menu with keyboard gestures in iOS Simulator 10.3 bundled with Xcode 8.3, it fails to respond; hovever, the single button press and the option from the menu still works. What can I do to get it to work again? 回答1: If you disconnect the hardware keyboard ( ⌘⌥K ), it starts working again. This seems to be a bug with iOS Simulator 10.3. 来源: https://stackoverflow.com/questions/43232769/double-home-button-press-does-not-work-in-ios-simulator

How can I tell when the iOS simulator has booted to its home screen?

放肆的年华 提交于 2019-12-10 17:15:53
问题 I use open -n /Applications/Xcode.app/Contents/Developer/Applications/Simulator.app/ --args -CurrentDeviceUDID xxxxx to start a simulator alongside any number of others, and I can poll xcrun simctl list | grep xxxxx to find out when it's started its boot process. How can I determine that the simulator has finished its boot-up process and is idling at its home screen? Currently I'm polling ~/Library/Logs/iOS Simulator/{version}/system.log until it's quiet for a few seconds, but that's kinda

How to remove the grey bottom bar in iPad simulator

喜夏-厌秋 提交于 2019-12-10 15:34:23
问题 I have tried to reset the simulator, to change the keyboard input settings, to rotate the simulator, but it did not change anything. The grey bar covers my ui so that the simulator is not usable. XCode version: 7.1 (7B91b) Simulator version: 9.1 (SimulatorApp-635.5) 回答1: To hide this bar you need to go into the Settings.app within the simulator (tap the gears icon on the home screen), then General->Keyboard, and turn off the 'Shortcuts' toggle. I have this issue in my app constantly, and

Safari Browser (iPhone Simulator): How to see/monitor all events being triggered?

风格不统一 提交于 2019-12-10 15:18:47
问题 I'm using the iPhone Simulator in Safari OSX to debug my JavaScript. I'm using the Console, however, as there is a number of event handlers on the page (plus I'd like to see if the browser also fires any additional events, e.g. :hover on touch) it would very useful to see ANY/ALL events being fired in real-time. I found an article about how to do it in Firefox/FireBug.. anything like this for Safari/iPhone Simulator? Thanks! 回答1: monitorEvents also works in Safari (iOS 11). https://developers

Xcode: invalid symlink error when trying to run app in iOS simulator

和自甴很熟 提交于 2019-12-10 15:18:45
问题 At the end of my app's compilation phase, I see the following error: This is just some temp directory that's created every time I run. I tried deleting it to no avail. The app runs fine on device. Any help would be much appreciated. 回答1: That error usually happens when your app contains a symlink that points outside the app bundle. When building for device or the Simulator, Xcode creates the app bundle, then copies it out for MobileInstallation to do the install or update. MobileInstallation

Issues running iOS 5.1 simulator using XCode 4.5

泄露秘密 提交于 2019-12-10 14:06:53
问题 I recently upgraded my XCode to 4.5 version and now I'm having problems when I try to develop applications to iOS 5.0/5.1. I developed a simple iPad game where the user needs to match images with the correspondent words. All these items are stored in UIImageView, if that is relevant. The supported interface orientation is only landscape. When I run my application using iPad 6.0 Simulator everything works fine without any problem. But when I try to run it using 5.1, everything goes wrong. The