Newest 'ios-simulator' Questions

Q&A for professional and enthusiast programmers

How do I tap a tab in tvOS simulator?

I created a sample tvOS app in Xcode and selected "tabbed application". Now I have a First, Second buttons at the top that looks like the equivilant of a tab bar. The simulator remote says "Press ...

XCode Simulator view (not display) is cut off

I just started using XCode and my simulator is acting weird. On launch, it only displays lower half of the screen while the upper half is cut off. And on resizing simulator window, simulator view ...

Xcode - Error when deleting Simulator

I am trying to delete old simulators from Window -> Devices but I keep getting this error : Error returned in reply: Connection invalid Is there a fix for this ? Or can I delete them from the ...

How can I install an app in a tvOS simulator?

I'm building an application for tvOS and would like our QA department to be able to do sanity/smoke tests without necessarily having an Apple TV device. The people in the department can easily get ...

Trouble with CLI and iOS simulator

I'm moving to a new machine and want to start out fresh. I'm leaving Appcelerator Studio behind and want to go all CLI. The project I'm working on is still on SDK 5.5.1. When I try to build our app ...

Application can't load photos from Photo Library on iOS simulator

I am facing problem in loading photos on simulator but it is working on devices. Even it is working on other mac. I have added the NSPhotoLibraryUsageDescription key into the plist file. But the ...

An Issue Running Adobe Air App on iPhone Simulator

I'm trying to deploy an Adobe AIR application to an iPhone, and while building it as an ipa and deploying using itunes works, the app is not running correctly so I need to debug using the simulator, ...

Run single app in multiple simulator (like iPhone 5S and iPad Air 2)

Anyone have any idea how to run single iOS app in multiple simulator (like iPhone 5S and iPad Air 2)?

How can I trigger xcode simulator menu bar actions by XCTest?

I want to write some test cases that should by-pass the "Touch ID". I can enable simulator as Touch-ID enabled device by tapping Hardware->Touch ID->Toggle Enrolled State in simulators menu bar. ...

Core Data sqlite file's URL is changed every time - how should I debug it?

I am very confused with Core Data in Xcode 8 and Swift 3. I want to use DB Browser for SQLite (or any other app) to edit some of DB records. But each time I run app in iOS Simulator I got different ...

Using Swift3 Package Manager with Xcode 8 with no luck

I'm trying to integrate swift package manager in my project, but with no luck. The iOS simulator crashes at startup. Here are the steps that I followed in order to integrate the package manager: ...

What causes strange differences with background URLSession between ios 8.1 and ios 10.2 on simulator?

I am experiencing a strange behaviour debugging my app. I have a straight forward URLSession with background configuration: let backgroundSessionConfiguration = URLSessionConfiguration....

Video Streaming of iOS Simulator screen - buffering issue

My Goal I am trying to create a live streaming video of an iOS simulator screan (for live demonstrations). In Theory According to xcrun simctl io help: Usage: simctl io < device > < ...

How to debug an app run from the iOS simulator directly? (not from xcode run)

we all know that if we build and run an app from XCode, we can see all the debugging, but what if we want to debug an app preinstalled on iPhone Simulator, I can't seem to find a way to do this, is ...

Slow CADisplayLink Animation In Simulator

I have two methods of achieving the same sprite animation: An UIImage that animates an array of 6 images using animatedImage(with:duration:). A UIView with its CALayer’s contents property set to a ...

ILPDFKit iOS App Cocoapod Doesn't Work?

I'm using the ILPDFKit Github, but I'm having trouble getting the sample code to work... I've been trying to figure this out for a few days as I'm new to Cocoapods, but for some reason, when I attempt ...

Not able to run test case on Simulator using jenkins on MAC

I am getting below error while running XCTest test cases on simulator on jenkins: The operation couldn’t be completed. (OSStatus error -10810.) It happening because Jenkins run as daemon. So, I did ...

iOS Simulator - Certificates not trusted on trusted domains

I have just installed xcode 8 and cannot access any https domains from any of the simulators, both from api calls and from using the browser. All trusted domains such as bbc.co.uk and google.co.uk ...

Can't run an iOS app in React-Native

I'm having multipronged issues to being able to run an iOS app through with react-native. I've just set everything up and when I do run react-native run-ios, my build fails due to 'Port 8081 already ...

Use VS Code on Mac to compile and run simulator Swift iOS projects

I'm basically trying to switch from Xcode to VS Code for iOS development in Swift. Is it possible to run the iPhone simulator when you build your project in VS Code, like it does in Xcode? I've seen ...

iOS Simulator Works only when app is run from Xcode

I have this strange issue where - In viewWillAppear() of a ViewController, I have a function that does a GET service call and stores the response in a global variable. The response is a simple array ...

iOS 10, Xcode 8 Simulator Won't Launch

When I try to run my iOS app in the simulator, I get this error: Unable to lookup service com.apple.CoreSimulator.host_support: 0x3 The app runs just fine when I deploy to my phone. I am on macOS 10....

What's the point of have multiple (same resolution) iOS simulators?

I've been developing iOS apps for some time now and I'm aware that the iOS simulators run code faster than their hardware counterparts - i.e. actual devices. I read the following on Apple's Testing ...

NSRequiresCertificateTransparency = YES makes https fail in iOS 9 simulator

I'm trying to enable NSRequiresCertificateTransparency flag from App Transport Security for my ios app to achieve better security. I tested and it works fine on my device having iOS 10 and in ...

is 'dyld library not loaded- image not found' an error in the simulator or an error in the app extension?

When I run a build with the simulator it crashes with this error, saying 'dyld: Library not loaded' and also 'image not found'; dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from:...

Xamarin Studio C8 Stable iOS simulator custom linker issue

We're working with Blackberry Dynamics SDK which requires the use of a custom linker to meet FIPS compliance. It can be achieved by passing mtouch arguments gcc_flags="-B {path.to.custom.ld}". This ...

React Native code doesn't work without Remote Debugger enabled

This a weird question, but since I'm really curious about this I wanted to ask. I have a piece of code that works in the iOS Simulator when I enable Remote Debugging but it stops working without it. ...

Is there a hotkey (or is it possible to set one) for hiding/dismissing the warnings in the iOS simulator for React Native?

When repetitive warnings come up like "make your javascript faster" or "your debug console is in the background", I'm getting really tired of clicking and "dismiss all" to get them out of the way... ...

url is not working in Safari on IPad and Simulator

If I click a button in my app , I am launching safari browser with an url. That url webPages are coded in javaScript. Safari is loading the url but the functionalities on the webpage are not working. ...

Thread 1: signal SIGABRT

I get the above error when I run the simulation for my Xcode project This appears in the O__abort_with_payload file dyld`__abort_with_payload: 0x10aae66f8 <+0>: movl $0x2000209, %eax ...

where does React-Native AsyncStorage saves data on disk using iPhone Simulator?

Using IOS Simulator, where does React-Native AsyncStorage save the data on disk ? I am using IOS Simulator version 10.0 and running IOS 10.2 and react-native 0.40.0

react-native ios simulator touch not working

I am trying to write my first react native app. I cannot seem to get "TouchableHighlight" to work. I think I have wrapped the text correctly but in the IOS simulator nothing happens. Code compiles ...

Does iOS Simulator not have Current Location

I'm messing about with React Native, and I came across this other post: Permission Denied Geolocation React Native. I wanted to append another question onto that post, but I do not have a high enough ...

Cordova device ready doesn't work on xcode simulator but work on device

don't know why but the device ready event doesn't work anymore on xcode simulator, but it's works on my iphone device. Here my function: document.addEventListener('deviceready', onDeviceReady, false)...

Getting a screenshot of a gradient in the iOS Simulator looks weird

I'm trying to get a screenshot of a view that has a CAGradient layer. The issue I am experiencing is that the simulator will not let me take the screenshot without getting a lot of banding on the ...

Xcode simulator not calling traitCollectionDidChange

I am overriding traitCollectionDidChange(_) to update my compact and regular constraints. When I test this on a device by rotating the constraints get updated correctly. When I however try to test the ...

How does the iOS simulator os macOS determine if it is offline or not?

So, recently I get this error coming up a lot in our builds on Jenkins: [00:28:47]: ▸ testSendingLocalModifications, failed - Failed to log in loginWithUsernamePasswordFailed(Error Domain=...

Xcode 8 Simulator crash if changing device type

I am working around with Xcode 8. But I have one problem, specifically when I try to change the device type in simulator, it crashes and I get a crash message *** Terminating app due to uncaught ...

iOS simulator : How can I see the background apps?

How can I see the background apps on iOS simulator ? What is the keyboard shortcut for it or what I have to select from the simulator menu ?

Is it possible to control the external display option in iOS Simulator in automated testing

My App requires an external display, iOS simulator supports adding an external display and it works well when controlled manually. The app displays different options depending on whether a display is ...

iOS 10 simulator not working

I have a set of UI automation test cases for my iPhone app. These tests run fine on the iOS 9 and 8 simulator however when I change to the most recent simulator (10.2) I get this error in my terminal ...

xcodebuild times out when starting simulator

I am attempting to set up automated testing for my iOS app using TeamCity. Currently, my agent builds, but once building the last target and running codesign, it hangs and displays the following: [19:...

iOS camera-based app for Facebook review

My application is a camera based iOS application. I want to upload my application for Facebook review. But the review guidelines requires me to upload either simulator build file or AppStore link of ...

iPhone simulator crashed when I tried to take screenshot (⌘ + S) (using the libswiftFoundation.dylib plug-in)

I am trying to take screenshot from iPhone 5 simulator. When I click ⌘ + S, the simulator crashes every time with error:- Simulator quit unexpectedly while using the libswiftFoundation.dylib ...

icon badge not appear in IOS 10 simulator

I expect to see a bubble icon badge number after clicking the button that should set a bubble number of app icon - but- I dont see any numbered bubble in icon after pressing homebutton. my question: ...

How to simulate auto-lock using iOS simulator?

How can I simulate the auto-lock in a iOS simulator? I'm not looking for the manual lock cmd + L, but the one where after the auto-lock timer expires (changed in the settings), it locks.

How to implement and test “Invite Friends” feature in a Simulator for iOS 10?

I would like to implement the "Invite Friends" feature in my project (which is a Multiplayer game). I have one device (with my iCould and Game Center accounts) and the simulator (with a second iCloud ...

iOS Simulator white screen on app build Xcode 8.2.1, iOS 10.2

I'm busy developing an iPad app, and everything went fine until 30 minutes ago... The iOS Simulator stopped showing my app and now shows a white screen only. I have added breakpoints, and the ...

Unable to Create a cocoaPod subspec with a 3rd party dependancy with missing i386 & x86_64 slices

I am trying to build a library for a subspec in a CocoaPod podSpec file. This library uses Google's NearbyMessages (Eddystone) pods. When build my pod CocoaPods does not copy the binary slices for ...

Change default simulator in XCode 8

Is there any preference selector or a way to change the default simulator in XCode 8? I'm currently using XCode 8.2, I'm kinda tired of changing the device I want to run my app on.
Translating... 0%