FAQ Database Discussion Community


Reset settings on iPhone now device doesn't show in Xcode to run application

ios,iphone,xcode,ios-simulator,core-location
I was having an issue with Core Location in my app so I followed this advice (the selected answer) and reset my network and location settings on my device. Now that I've done that, my device isn't showing up as an option to build and run the app in the...

AppCode ignores “Right to Left Pseudolanguage” setting from Schema Configuration

ios,xcode,ios-simulator,right-to-left,appcode
I'm writing app that supports right-to-left languages. To test the app in simulator I set up "Right to Left Pseudolanguage" in Schema Configuration in xCode: When run the app from xCode everything goes as expected and system draw ui elemnts in right-to-left manner. The problem is when I try run...

iOS 7.1 Simulator not downloading

ios-simulator,osx-yosemite,ios7.1,xcode6.1
I use OS X Yosemite 10.10.2, Xcode 6.1. I want to download iOS 7.1 simulator, but the simulator stuck to download ...

Unable to connect to parse in iOS simulator

parse.com,ios-simulator,xcode6.3.1
I have used parse.com as my backend for my iOS app and the app is unable to connect to parse when tested on a simulator but it works fine when I test it on my phone. Has anyone ever faced a similar issue it would be great if someone can...

Getting started with iOS programming [closed]

ios,ios7,programming-languages,ios-simulator,development-environment
I am qualified experienced software engineer. Strong background in OOP/D C++, Symbian, large multi thread multi process server applications, smart phone applications. More recently android, Java, C#, windows .net asp.net. I am looking for 'recommendations' for a fast track entry to learning to develop in objective C and for iOS....

xcode swift admob not showing live ads on simulator

ios,swift,admob,ios-simulator,ads
I have implemented AdMob before on Android apps and unless I specified a test ad the Android Simulator would show up live ads. @IBOutlet weak var bannerView: GADBannerView! //Display Ads self.bannerView.adUnitID = "mypubid" self.bannerView.rootViewController = self var request: GADRequest = GADRequest() self.bannerView.loadRequest(request) I dont use any .test devices GAD_SIMULATOR, so...

missing some folders in iPhone simulator?

ios,ios-simulator
I am developing an iOS project. There, I am having to upload images to to PHP server. So I choose some images from gallery in simulator for check up. Selected image is stored inside simulator. But I couldn't find that folder. So image is going empty to server. How to...

iOS permission Alerts - removing or surpressing

ios,objective-c,ios-simulator
I have a simple app running on ios simulator which will (at some point in the app), prompt the user to authorize the following: Location setting Address contact book Pictures/Albums Because I am doing automation testing on the iOS simulator (several thousand on virtual machines), is there a way to...

Xcode 6.3.1 iPhone simulator looms huge on my screen

ios,iphone,xcode,ios-simulator
I just upgraded to Yosemite and Xcode 6.3.1. Now, when I run my iPhone app in the simulator (set for iPhone 5S), it looks like this on my 24" screen: It appeared about half this size in 6.1.1. Now, I actually have to scroll to see the whole simulator. I've...

Message Sending failed in Multipeer Connectivity in ios7

ios,iphone,ios-simulator,ios7.1,multipeer-connectivity
I want to make a GroupChat application using Multipeer Connectivity Framework. Al first , I initialize the session by this code self.peerID =[[MCPeerID alloc] initWithDisplayName:[UIDevice currentDevice].name]; self.session = [[MCSession alloc] initWithPeer:self.peerID]; self.session.delegate =self; Then I try to send message with all connected peer devices by this following code. NSData *data...

iOS Swift: Sound not playing on iPhone Simulator

ios,iphone,swift,audio,ios-simulator
In my iOS Swift application, and i am trying to play sound on click of a button. func playSound() { var audioPlayer = AVAudioPlayer() let soundURL = NSBundle.mainBundle().URLForResource("doorbell", withExtension: "mp3") audioPlayer = AVAudioPlayer(contentsOfURL: soundURL, error: nil) audioPlayer.play() } I am running the application in iOS iPhone Simulator. I have doorbell.mp3...

NSData is returning nil for same file at different filepaths

ios,objective-c,ios-simulator,nsdata,nsurl
I stored an audio file of format .aiff in two different folders. The NSData is returning nil for one file path even though both file paths have the audio file. I double checked the file paths. The path is like this: //url1 file:///Users/VenkataManiteja/Library/Developer/CoreSimulator/Devices/80B8117E-D2C9-4B42-8A76-9A89A10FB1C1/data/Containers/Data/Application/FD17AD64-EAF9-4578-B50D-0B5BF6F2DEFF/Documents/28Apr15_090827AM.aif //url2...

Can you use the Apple Watch Crown in apps?

ios,ios-simulator,apple-watch
I'd like to use the crown for a special function in my Apple Watch. It seems like this isn't possible. Does anyone know if it is?

How can I configure the Xcode `simctl launch` command timeout?

xcode,xcode6,ios-simulator
When I run the simctl launch command to launch an app in iOS Simulator, the app may or may not come up, depending on how long it takes for the iOS Simulator to get its act together. The following observations lead me to believe that there is some sort of...

'Session Ended' when lauching app from Delphi to iOS Simulator

delphi,ios-simulator,delphi-xe7,paserver
I'm trying to deploy a multi-platform application (written in Delphi XE7 + Firemonkey) to iOS Simulator, through these parameters: Delphi XE7 OSX 10.8 Mountain Lion XCode 5.1.1 Command Line Tools PAServer 15.0 (iOS SDK 7.1 - also tested with 6.1) My Application needs to work in Windows, Android, iOS and...

UIButtons are greyed out when view is re-loaded (iOS 7.1 simulator)

ios,iphone,uibutton,xcode6,ios-simulator
I've set my Deployment Target to 7.1+ and downloaded the iOS 7.1 simulators for xcode6. When I test the app on a '7.1' device, anytime I navigate back to a view that has already loaded, all the user elements are grey instead of blue. The bug is between the initial...

AdMob - Testing Vs. Publishing

ios,admob,ios-simulator
So I have Google's AdMob in my application, and I'm wondering about a couple of the lines of code used to display a test add when testing on the simulator or device. This is the code I use (as shown on Google Dev docs/tutorials): //log version of Google Ads used....

Xcodebuild showSDKs shows different available iOS sims than Xcode 6.3 GUI

xcode,ios-simulator,xcodebuild
OSX 10.10.1 Xcode 6.3 or 6.3.1 xcodebuild version "Xcode 6.3.1" This happened on one machine and I thought it was a fluke. Has now happened on two machines. I have followed the advice in Why aren't simulators showing in the Xcode 6.3.1 scheme selector? to no avail. Here is what...

Coco2dx - Changing To Background Image

ios,iphone,xcode,xcode6,ios-simulator
I need someone's help. Actually I have no idea what to replace to get a custom background image. I'm just can't do it anymore. -(id) init { // always call "super" init // Apple recommends to re-assign "self" with the "super's" return value if( (self=[super initWithColor:ccc4(219,31,94, 999)]) ) { ws=[[CCDirector...

How to see apple watch home screen into simulator?

ios-simulator,apple-watch
Is there a way to see apple watch appliactions in simulator with icons same as iPhone? How we are tapping application icon in iPhone simulator same thing i want to do it in apple watch simulator. As of now i am just running my watch application into simulator want to...

Recording App Video Previews with QuickTime

ios,ios-simulator,osx-mavericks,quicktime
I have OSX 10.9.5 and I'll use QuickTime and iMovie for my video preview for app. When I do New Screen Recordings with QuickTime the simulator is recorded but so are the mouse arrow clicks. How do I completely remove the mouse arrow from the recording? Also, I connected my...

splashboardd quit unexpectedly caused by TabBarViewController and IBOutlets

ios,objective-c,iphone,ios-simulator
I'm running an App that goes straight to a TabBarViewController. The problem is that everytime I run the app I get a crash warning letting me know that the splashboardd quit unexpectedly. Then the App runs normally, but I keep getting the same issue everytime I run the App. Here's...

iOS Simulator doesn't use the same layout as OS X

ios,iphone,xcode,keyboard,ios-simulator
I would like to use my Mac's keyboard to type in text fields in iOS Simulator, but actually, with my settings, when I type the letter A, I got a Q in my text field... Here is the settings of my keyboard in OS X : Settings in iOS Simulator...

Accessing docker container from iOS Simulator

ios-simulator,docker,boot2docker
I am using boot2docker to run Docker images. I know very well that I need to access the boot2docker's IP address in order to access the Docker container. Basically in terminal it is curl $(boot2docker ip):49155 When I do it this way in Chrome or Safari, everything seems fine. When...

Manipulate app permissions on iOS 8 simulator

ios8,ios-simulator,xctest
Same question as this one, but for iOS 8. While running xctests, how can I make sure permissions are granted/denied programmatically? Is the same TCC.db used? If so, as there are no $HOME/Library/Application Support/iPhone Simulator/8.x directories, where has it moved to?...

Why can't NSFIleManager -fileExistsAtPath not find an existing file when path is correct?

objective-c,ios-simulator,nsfilemanager,ios8.1
I know that the iOS Simulator is found in a different directory each time it is run; with that in mind, I have this code which gives me the directory of the Core Data sqlite files: // find current directory for saori.sqlite NSFileManager *fileManager = [NSFileManager defaultManager]; NSURL *documentDirectory =...

How to simulate simultaneous button touch in ios Simulator

ios,ios-simulator
I currently have two buttons on my screen , one on the left and one on the right , I wanted to know if there is a way in the ios simulator for me to simulate both buttons being pressed at the same time.I tried pressing Alt on the simulator...

How to simulate bad internet connection on simulator with code

ios,swift,ios-simulator,internet-connection
I have downloaded Network Link Conditioner but is there a way I can test this with code? Preferably swift

lldb Error in swift - after closing iPhone Simulator

xcode,ios-simulator,lldb
What is meaning of this Error "lldb" in Xcode 6 ? when I close my iPhone Simulator, it show this, this don't happen always just sometimes. Can someone help me to fix it ?

Where to store large files fetched initially in a IOS App

ios,swift,data,ios-simulator
My app downloads at start a sqlite database about 300MB. After the download is done, this sqlite database should be available during the installtime of the app (years :-)) . I don't know where to store this files. I started to store the data in the library path as follow...

Using `-weak_framework` but still cannot compile

ios,xcode,ios-simulator
I'm using -weak_framework CoreAudioKit and my project still cannot compile for the iOS Simulator. Error is ld: framework not found CoreAudioKit If I compile for the actual iOS device, compilation goes fine When I remove this line (well, two lines) from Other Linker Flags the project compiles. How can I...

Text Field Border is not coming in only IPad2, In IPad Air or Resizable Ipad it is coming

ios,ipad,ios-simulator,ipad-2
I am running this app in simulator and in ipad2 and ipad air the style is coming different. Also tested in device same thing is happening. Any Idea how to fix this? Code Snippet: answerField.layer.borderWidth = 0.5 ...

iOS Simulator swift app hitting breakpoint in swift_dynamicCastObjCClassUnconditional

ios,xcode,storyboard,ios-simulator,lldb
Every time I run my switf app in the iOS Simulator, it crashes immediately with this: libswiftCore.dylib`swift_dynamicCastObjCClassUnconditional: 0x1082c1620: pushq %rbp 0x1082c1621: movq %rsp, %rbp 0x1082c1624: pushq %rbx 0x1082c1625: pushq %rax 0x1082c1626: movq %rsi, %rcx 0x1082c1629: movq %rdi, %rbx 0x1082c162c: xorl %eax, %eax 0x1082c162e: testq %rbx, %rbx 0x1082c1631: je 0x1082c164c ;...

How to build app for Facebook submission

ios,facebook,xcode6,ios-simulator
I have app that need to submit on Facebook for review. The steps to create app for Facebook are given here: https://developers.facebook.com/docs/ios/creating-ios-simulator-build-for-review But i have simulators shown below: the command to build app shown in Facebook link is for simulator of iOS 7.1 now what command did I use to...

Native resolution on iPhone 6, works on simulator but not on device

objective-c,iphone,ios8,xcode6,ios-simulator
I'm having some problems enabling native resolution on the iPhone 6 on the actual device itself, when I run in the simulator it runs at native 375x667 (verified by both launchscreen and nslog of viewcontroller size. 2015-04-29 13:24:24.220 aqrew_ios[7851:1294675] ViewController:didLayoutSubviews() - Width=375.000000 Height=667.000000 However when I run the same code...

Can we push the digital crown using the Apple Watch 2.0 Simulator?

xcode,ios-simulator,apple-watch
Simple question: using watchOS 2, and its simulator in Xcode 7, is it possible to simulate pressing the Digital Crown? We can scroll it using the track pad, but I’ve not yet found a way to press it. Can it be done? For instance, can we see the apps screen...

iOS Simulator Crashing without an error or debugger output?

ios,xcode,debugging,swift,ios-simulator
My iOS Simulator is crashing and not giving me any output or an error for me to try and fix. The moment the app opens the screen goes black for 3 seconds and then crashes and goes back to the home screen on the Simulator. I have already added an...

iOS simulator is inconsistant to the preview in Xcode?

xcode,ios-simulator
I choose 4.7-inch as the default layout in Storyboard to make prototype more easily. 4.7-inch is iPhone 6 according to this link on Apple website. In Xcode Preview, it's ok to show the layout. But in iPhone 6 simulator, the layout is inconsistent to Preview. Is it a bug in...

How to troubleshoot, {Error=ExecutableTwiddleFailed}

ios,xcode,xcode6,ios-simulator
I have an iOS app that I have been working on for some time, but for some reason it stopped working in the Simulator today. I checked the Simulator log file, CoreSimulator.log and it is giving me an error message similiar to what I posted in the title, "{Error=ExecutableTwiddleFailed}" If...

Simctl install can't find Bundle Identifier in .app when installing app in simulator

xcode,ios-simulator,xcrun,cfbundleidentifier,simctl
When I try to install my app in the booted simulator, like this: xcrun simctl install booted /build/iphone/build/Debug-iphonesimulator/foo.app I get the following result: An error was encountered processing the command (code=22): Failed to install the requested application The bundle identifier of the application could not be determined. Ensure that the...

AVPlayer doesn't play sound on iOS Simulator

ios,objective-c,iphone,ios-simulator,avplayer
I want to play music from URL with an AVPlayer on the iOS Simulator, but it doesn't work : - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{ Track *selectedTrack = self.tracksByAlbum[indexPath.row]; NSLog(selectedTrack.preview); NSURL *url = [NSURL URLWithString:[selectedTrack.preview stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]]; AVPlayer *player = [[AVPlayer alloc] initWithURL:url]; if (!player) { NSLog(@"Error"); } [player play]; } The...

Saving images to Main Bundle and then loading them into HTML works on Simulator, but not on real Device?

ios,objective-c,uiwebview,ios-simulator,mainbundle
I'm trying to preload the image tags from an html string in order to load them when the device is offline. Basically, I strip the source url from all the <img>tags, clean the url to have a clean filename, then download the image. __block NSString *imageName = [[NSString alloc]init]; //Get...

Update - Xamarin (Visual Studio) iOS Universal project with Storyboard - simulators not being listed

ios,visual-studio-2012,xamarin,ios-simulator,universal
I am using the following Visual Studio 2012 Update 4 Xamarin 3.9.236.0 Xamarin.iOS 8.6.0.0. When I create a blank Universal iOS app the set of simulators are displayed. When a Universal Single App project is created, the list of simulators does not appear in Visual Studio. Is there a fix...

Deploy Adobe AIR app in to iOS simulator

ios,actionscript,air,adobe,ios-simulator
I'm trying to run a simple test app on a iOS simulator but I'm getting this error: Error occurred while packaging the application: [Fatal Error] :1:1: Content is not allowed in prolog. java.io.IOException: PLIST generation failed due to SAX error:org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog....

Watch simulator buttons seems disabled

ios,ios-simulator,apple-watch
I'm new in Apple Watch and I'm trying to make the first App with XCode6.3. In my Watch storyboard I put a button but when I run the App in the simulator I can't tap the button and seems disabled... what's happen?

How do I specify an iOS simulator in Qt Creator?

ios,qt,ios-simulator,qt-creator
In Qt Creator, when I click the run button in the bottom left corner to build and run my program in an iOS simulator, it is using the iPhone simulator, but I want to use the iPad simulator instead. In XCode, you can specify which iOS simulator to run via...

Testing Core Data in Watch extension on the simulator

iphone,xcode,core-data,ios-simulator,apple-watch
I'm creating an apple watch app. I have created my shared framework, and the app extension. It all actually works pretty well, but when I try to query objects from my Core Data DB, i get only empty arrays. I have already created the app groups, and made sure the...

Xcode 6.1. Uncheck and check back portrait orientation. Simulator never appears in portrait mode

ios,ios8,ios-simulator,xcode6.1
As we know "General" tab has "Device orientation" section where we can specify required device orientations. The issue is next: when I once uncheck portrait orientation in Xcode settings, the simulator every time works in landscape mode, even if I checked portrait orientation back and reset all settings on the...

Simulate a particular view among many views?

xcode,ios-simulator
In my project I have around 20 views . Is there any possible way in xcode to simulate a particular view ? For example: The flow of the views is like this: View A-----> View B------>View C----->View D IF I want to go to view D, I need to go...

Xcode changes location of applications folder on build

ios,xcode,core-data,filesystems,ios-simulator
I am storing an .mp3 in my iOS apps documents directory and saving the path to Core Data. When I rebuild the app Xcode seems to move the application data to a different directory thus making the stored path invalid. Why is this happening and what are the best practices...

Is the sound coming from the iphone or the watch?

ios,iphone,ios-simulator,watchkit
I have two simulated apple devices. One is an iphone the other is simulated watch connected to the same phone. Is there anyway to indicate or determine if a played sound is coming from the simulated iphone or the watch?...

capture traffic from emulator to a server on the same machine

android,http,ios-simulator,pcap,libpcap
I am trying to capture http traffic using pcap4j from an android emulator / ios simulator to a server which is hosted on the same machine. The machine can run either linux / windows or osx. I tried capturing packets from wireshark first for testing, but it didn't catch any....

Can you automate the App UDID when running a test from the command line?

iphone,ios-simulator,instruments
I run a command line test that runs Instruments on the iPhone Simulator. Unfortunately, every time I do a Build the UDID changes which means I have to update my script. E.g. see this error message: Instruments Usage Error : Specified target process is invalid: /Path/To/Library/Developer/CoreSimulator/Devices/9B0DF4D4-941C-4B65-84E0-ETC/data/Containers/Bundle/Application/8EE5CBCA-3107-48B5-8A54-ETC/myApp.app Is there any way...

didFailToReceiveAdWithError not working for iOS 8 simulators

xcode,ios8,admob,ios-simulator,iad
My iAd/AdMob mediation works fine with all iOS 7 simulators and devices. However, iOS 8 didFailToReceiveAdWithError method doesn't work for any simulators but it works for iOS 8 devices. Problem is I don't have an iPhone 6/6+ device to test. So i'm counting on iOS 8 simulator. -(void)bannerViewDidLoadAd:(ADBannerView *)banner{ [UIView...

Is it possible to generate simultaneous touch events in the iOS simulator?

ios,touch,ios-simulator
From time to time we get bug reports with our iOS iPad application where the steps to reproduce require 2 buttons to be pressed simultaneously (or at least within a very short space of time, a tenth of a second or less). To reproduce these bugs I have to use...

Is there a way to show the entire simulator screen?

ios,ios-simulator,xcode6.3.1
This is what the screen displays on my MacBook. After I updated Xcode, it changed from showing the entire screen of the device to showing part of the screen. I now have to scroll to see everything that would be displayed on the screen. ...