ios-simulator

notifications doesn't show/ doesn't scheduled in Simulator but works in device Problem on Simulator 4.3?

爱⌒轻易说出口 提交于 2019-12-25 08:28:02
问题 I have Implemented a reminder application. [[UIApplication sharedApplication] scheduleLocalNotification:localNotification]; int count = [[[UIApplication sharedApplication] scheduledLocalNotifications] count]; NSLog(@"count is %d",count); All are works fine notification alert raises when it's scheduled time arives. Suddenly today notifications are not showing . and they didn't scheduled notifications count also remains same even i set the notification, But when i exicuted the application in my

Bluetooth Dongle and iOS Simulator

浪尽此生 提交于 2019-12-25 08:00:10
问题 I have bought an IOGEAR GBU521 bluetooth dongle as per the instruction on Apple's technote: http://developer.apple.com/library/ios/#technotes/tn2295/_index.html I have also configured it as instructed and I'm trying to get the temperaturesensor demo to work but the Bluetooth under settings never seems to turn on (keeps spinning). Looking at the console, here is what I see: 2012-11-02 4:17:08.114 PM Preferences[862]: BTM: setting discoverable status enabled 2012-11-02 4:17:08.114 PM

App crashes on simulator. Works on iphone device

好久不见. 提交于 2019-12-25 04:50:31
问题 I recently upgraded to Xcode 3.2.4. and started experiencing strange behaviour. When I deploy my app onto the iPhone, it works fine. However, when I deploy this on the simulator for testing, the app does not even start on the screen and I receive the following error: [Session started at 2010-09-14 00:01:26 -0400.] GNU gdb 6.3.50-20050815 (Apple version gdb-1472) (Wed Jul 21 10:53:12 UTC 2010) Copyright 2004 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public

Can I programmatically wipe the application data in applicationDidFinishLaunching:withOptions:?

风格不统一 提交于 2019-12-25 04:08:48
问题 For testing purposes, I'd like to be able to just reset the application to a clean state. (Similar to what deleting the app from the Simulator / iPhone does). Assume we have a WIPE_DATA define, if that is set, the app should start as if it has been just installed. Obviously if you know the app, you know where it stores data in NSUserDefaults etc. I was wondering if there was a more generic approach that requires no insight into the specific app and thus would be applicable to any app. 回答1: In

Swift: Error loading /Library/Audio/Plug-Ins/HAL/NRDAudioClient: no suitable image found

若如初见. 提交于 2019-12-25 03:32:53
问题 I am trying to play a sound as follows: import AVFoundation let sound = URL(fileURLWithPath: Bundle.main.path(forResource: "audiofile", ofType: "wav")!) var audioPlayer = AVAudioPlayer() @IBAction func audio1(_ sender: Any) { do { audioPlayer = try AVAudioPlayer(contentsOf: sound) audioPlayer.play() } catch { // error } When running in the iOS simulator this results in the following: 2019-01-08 12:29:55.438490+0800 Test App[8096:118590] Error loading /Library/Audio/Plug-Ins/HAL/NRDAudioClient

The tab bar is shifted down outside the borders of the simulator

我只是一个虾纸丫 提交于 2019-12-25 02:15:24
问题 I have created an empty project (XCode 4.2 IOS SDK 5), I have added a new view to it and make it the root view controller inside the appDelegate, so when the app runs, it displays that view correctly, however, I added a tabbarcontroller to the view, created an IBOutlet for it inside the newly created view, and added this line to viewDidLoad method of the view: [self.view addSubview:self.tabController.view]; so the tab bar loads correctly in the iphone simulator, but with a little problem that

Why is this iPhone app's “quote” button not replacing the Text View's lorem ipsum?

房东的猫 提交于 2019-12-24 13:19:00
问题 I am working through the "iPhone introduction for programmers" tutorial at http://www.raywenderlich.com/21320/objectively-speaking-a-crash-course-in-objective-c-ios6, and my present project is at http://JonathansCorner.com/project/Quotes.tgz. The tutorial's focus is on providing an iPhone app that randomly displays one of several quotes in a Text View when you click on a Button. Later on the tutorial pushes further by defining properties and storing and retrieving XML, but I'm at the first "

IOS linking with missing architecture i386 (AdSupport.framework)

半腔热情 提交于 2019-12-24 12:44:07
问题 I had this question going on, but now I am a little further: I added this framework to my project: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/System/Library/Frameworks/AdSupport.framework Now this works fine if I run the app on any device, however this framework is just for the architectures armv7, armv7s and arm64 When running the app on the simulator, the build fails because the architecture i386 is missing. This is

Why is iphone simulator bigger than the actual iphone?

做~自己de王妃 提交于 2019-12-24 12:09:12
问题 Has anyone noticed that the iphone simulator is way bigger than the actual device? If so why is it larger? Is there a way to make it same size as the actual device? Why I ask? For several UI design, what looks fine on simulator started looking way too small on the actual device. So basically the simulator sizes were not real. Example is font size. My display is 1280 x 800. Is it because my resolution is low? One thing I can think of is the number of pixels are probably same. Because of

debugging “failed to launch in time” with xcode

不羁的心 提交于 2019-12-24 12:03:43
问题 can someone help me setup my debug environment so things will make more sense? at some point the simulator stopped loading an app i'm working on. the app loads well if i run it with instruments and works well on the device (iPad). the application tries to load and all of a sudden i get a 'debugging terminated' message at the bottom left of xcode. running 'tail -f /var/log/system.log' i found the following message: " myApp failed to launch in time". poking around and experimenting with