Simulator

RSS for tag

Rapidly prototype and test builds of your app during the development process using Simulator.

Simulator Documentation

Posts under Simulator tag

318 results found
Sort by:
Post not yet marked as solved
23 Views

Random Black Screen In Xcode Simulator?

I have ran countless tests in the simulator to work on my app, however when I tried to run it today, nothing happens. My app opens to the launch screen and then instead of going to my main storyboard, it goes to a black screen and stays there. I have never had this issue before and do not know how to solve it. I have removed the app from the simulator and restated/shut down my computer, Xcode, and the simulator numerous times.
Asked
by Vastars22.
Last updated
.
Post not yet marked as solved
175 Views

running Simulators with pre iOS 12 versions?

Hi, I have Xcode 13.1 installed on my Mac running macOS Monterey 12.0.1. I'd like to test my App on Simulators running iOS 11.0 to 11.4. Actually Xcode only offers to install the 11.4 simulator (no older version!) but even after doing so I can't add a device running iOS 11.4 (it's never listed in the combobox). How can fix this?
Asked
by martinboe.
Last updated
.
Post not yet marked as solved
101 Views

Crash when running x86 build in CarPlay simulator on Apple Silicon

I'm having issues running a CarPlay app in the simulator on an M1 Mac. I have to build the app for x86 (EXCLUDED_ARCHS=arm64) because one of its dependencies doesn't have arm64 simulator support. The app builds and runs well enough on the iPhone simulator, but as soon as I open CarPlay the app has problems. The app is still based on CPApplicationDelegate. It builds and simulates fine on an Intel Mac. On an M1 Mac, it builds and simulates on the iPhone sim, but right after attaching the CarPlay sim, it throws an exception "Application does not implement CarPlay template application lifecycle methods in its scene delegate." In case the error actually was due to the use of CPApplicationTemplate, I updated the app the use SceneDelegate. It gets a bit further, but I'm unable to set any CP templates -- trying to set a template results in an exception like "Exception setting template: Unsupported object <CPMapTemplate: 0x6000001fa340>.... Allowed classes: (null)" I also tried Apple's CoastalRoads app. When building for arm64 on an M1, the app works as it should. When building an x86 sim build (using EXCLUDED_ARCHS=arm64), the app gives the "Application does not implement CarPlay template..." exception. Has anyone else seen this issue? Is it a known problem when running x64 simulator builds on an M1 Mac?
Asked
by jason0x43.
Last updated
.
Post not yet marked as solved
788 Views

iPhone 12 mini simulator

By debugging in iPhone 12 mini simulator I got different screen size than real iPhone 12 mini. Is there any chance that I can get iPhone 12 mini simulator exactly as real device? Need to debug something but don't want to buy iphone 12 mini for that purpose.
Asked
by januks.
Last updated
.
Post not yet marked as solved
9.1k Views

module map file '/Users/hosein/Library/Developer/Xcode/DerivedData/Sporty-ficshtjjzxcsgkaohfxowaxpyivr/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap' not found

Hi I bought the new MacBook Air m1 and install Xcode 12 on that and I try to run my React Native project on that but I could run normally on intel base MacBook (my old macbook). I face with some error in my new MacBook. I see this errors: 1- building for iOS Simulator, but linking in object file built for iOS, file '/Users/hosein/Desktop/sporty-app/ios/Pods/OpenSSL-Universal/ios/lib/libcrypto.a' for architecture arm64 I fixed this with adding the arm64 on Excluded Architectures 2- module map file '/Users/hosein/Library/Developer/Xcode/DerivedData/Sporty-ficshtjjzxcsgkaohfxowaxpyivr/Build/Products/Debug-iphonesimulator/YogaKit/YogaKit.modulemap' not found I get number 2 when I want run app on simulator but when I run on real device I don't have any errors. How can I fix this error (number 2)? Note: I am running the xxxx.xcworkspace and my target iOS version in pod and general in Xcode is 10.0
Asked
by xrois.
Last updated
.
Post not yet marked as solved
2.5k Views

On Catalina, how to add an iOS 9.3 simulator ?

Now, my Mac have updated to the Catalina, and Xcode version is 11.5. But my company developed app still support iOS 9.0 . Now I have no 9.0 device. And I have to download a 9.0 iOS simulator. I have tried to search on the Internet , there is no answer . So I want apple engineers to help me . thks
Asked Last updated
.
Post not yet marked as solved
1k Views

xcode 13.1, can't find IOS 15.1

I'm working on an app, and it not working after updating ios to 15.1, when running the app on the simulator can't find version IOS 15.1, I tried to add a new simulator but no ios version 15.1 was found my app is stuck on this and can't be uploaded to the store
Asked
by AzzaGar.
Last updated
.
Post not yet marked as solved
948 Views

[M1] xCode simulator error: "_LSSchemaConfigureForStore failed with error"

Hello everyone, MacBook Air M1 2020: For two months I can not use the simulator because I get an error after the build: I tried launching from different versions IOS (14.3 / 14.0), but every time I open the app from simulator I get this error: 2021-02-05 14:30:25.825935+0100 MyApp[56865:1895569] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x64ffa485 dd556ca7 e49bc38c da04e080 ... e817a119 c3dad3ce }, _LSLine=405, WrongSimulatorHash={length = 32, bytes = 0xf74b7cf2 146c7320 f164d932 556def6c ... e5c99aa7 f132eec7 }} This error is repeated 6-8 times per application opening. After opening, I see a white screen of the application. I tried to run a project on MacBook with processor Intel, and this problem does not arise. I also tried to download the Xcode 12.5 beta but nothing changed. Does anyone have a solution to this problem? ASAP, Thanks
Asked
by aleh1317.
Last updated
.
Post marked as solved
134 Views

Installing custom root certificates in AppleTV Simulator

I'm attempting to develop an enterprise AppleTV app, but the organization uses their own in-house certificate authority for HTTPS communication (their root certificate is used to sign second-level certificates used by various web services with which this app would communicate). Their AppleTV hardware devices already receive and trust the root certificate as part of their MDM payload, so physical devices don't have an issue communicating those with web services. While developing in the AppleTV Simulator, however, I encounter an invalid certificate error because my Simulator doesn't have that root certificate. I have a copy of the certificate on hand, but can't figure out how to get it into the AppleTV Simulator. I've followed the instructions here (under the "tvOS Device and Simulator" heading), but they don't work for tvOS 15.2: https://developer.apple.com/library/archive/qa/qa1948/_index.html If I navigate the AppleTV Simulator to Settings > General > About, there is no Certificate Trust Settings option -- just Name, Model, Serial Number, OS version, resolution, and networking information. Similarly, when I navigate to Settings > General > Privacy and select Share Apple TV Analytics, pressing or holding the Play/Pause button (on the virtual AppleTV remote) does not bring up an Add Profile view. What is the current way to add a custom root certificate to the AppleTV 15.2 Simulator, and can the docs be updated to reflect the new steps?
Asked Last updated
.
Post not yet marked as solved
17k Views

failed to prepare device for deployment

I have an iphone xs running public beta 13.5. I have tried running an app I've been working on on my phone and I keep getting a "Failed to prepare this device for deployment" error. I have tried with both the app store version of xcode as well as xcode beta 11.5 beta 2 (11N605f). I'm also using the free provisioning account. Any help getting the app to deploy would be appreciated.
Asked
by lothsun.
Last updated
.
Post not yet marked as solved
2.5k Views

M1 Xcode 12.5 can't paste clipboard

I can't paste anything into my simulator since switching to an M1 MacMini. I've tried ticking and unticking "automatically sync clipboard". I've also tried using the "send clipboard" option manually, but no success. I can seem to paste into safari on the simulator, but not any app I create in Xcode. I've tried multiple and even creating a new one fresh. I get the below snippet in the console complaining its unable to access some file. Looks like its an Xcode / M1 bug. I'm not running via rosetta. Does anyone know how to fix this, its become a real blocker for me testing my app 2021-06-11 12:00:28.656521+0100 camlKit-Example[3736:123707] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x15dde658 ed2a1267 ab2496d7 34f186ad ... ec431c65 02d68f35 }, _LSLine=409, WrongSimulatorHash={length = 32, bytes = 0xaf25dda9 e45baa35 610eaabd 5bc09901 ... 9cbe61f3 81d7b9d9 }} 2021-06-11 12:00:28.656878+0100 camlKit-Example[3736:123707] [db] _LSSchemaConfigureForStore failed with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x15dde658 ed2a1267 ab2496d7 34f186ad ... ec431c65 02d68f35 }, _LSLine=409, WrongSimulatorHash={length = 32, bytes = 0xaf25dda9 e45baa35 610eaabd 5bc09901 ... 9cbe61f3 81d7b9d9 }} 2021-06-11 12:00:28.656957+0100 camlKit-Example[3736:123707] [db] Failed to initialize client context with error Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)" UserInfo={_LSFunction=_LSSchemaConfigureForStore, ExpectedSimulatorHash={length = 32, bytes = 0x15dde658 ed2a1267 ab2496d7 34f186ad ... ec431c65 02d68f35 }, _LSLine=409, WrongSimulatorHash={length = 32, bytes = 0xaf25dda9 e45baa35 610eaabd 5bc09901 ... 9cbe61f3 81d7b9d9 }} 2021-06-11 12:00:28.657397+0100 camlKit-Example[3736:123707] [claims] Upload preparation for claim 1B09A1C9-1B93-4AB0-B91D-F8789C91AB3C completed with error: Error Domain=NSCocoaErrorDomain Code=256 "The file “fb19cda6511c09d17006da7aefa63f10ea73f68b” couldn’t be opened." UserInfo={NSURL=file:///Users/simonmcloughlin/Library/Developer/CoreSimulator/Devices/CD0E07DE-8C9C-4466-978B-1F6E635EE0E2/data/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/fb19cda6511c09d17006da7aefa63f10ea73f68b, NSFilePath=/Users/simonmcloughlin/Library/Developer/CoreSimulator/Devices/CD0E07DE-8C9C-4466-978B-1F6E635EE0E2/data/Library/Caches/com.apple.Pasteboard/eb77e5f8f043896faf63b5041f0fbd121db984dd/fb19cda6511c09d17006da7aefa63f10ea73f68b, NSUnderlyingError=0x600002813ae0 {Error Domain=NSOSStatusErrorDomain Code=-10817 "(null)"}}
Asked
by simonmcl.
Last updated
.
Post not yet marked as solved
7.4k Views

Xcode Simulator m1 - can't pick images

Hi, can anybody confirm that there are a problem with the image picker on Xcode 12.4 / Sim 12.4 on the new apple silicon MacBook m1? Best, Dominik
Asked
by dominik1.
Last updated
.
Post not yet marked as solved
137 Views

Swipe gestures not working on iOS simulator 13.2

I recently upgraded my hardware to 2020 Mac Mini M1 and ported my iOS application to work with XCode 13.2 and iOS 15.x. When I try to test the app on iOS simulator (iPad Air 4th Gen, iPhone 12 Pro Max, iPhon 12 simulators), the swipe gestures are not working. Nothing happens when I try to simulate the swipe using my mouse (I hold the mouse left button, move the mouse and then release the mouse button). Here are the simulator versions: Version 13.2 (972.2) SimulatorKit 613.1 CoreSimulator 783.5 Is this a known issue? Or am I missing something?
Asked
by patait.
Last updated
.
Post not yet marked as solved
1.8k Views

SecItemAdd returns errSecAuthFailed

Hello, I'm experiencing a weird issue on the iOS 15 simulator (unfortunately I don't have a device with 15 installed yet). The issue I see is that the call to SecItemAdd returns OSStatus -25293 (errSecAuthFailed). The attributes dictionary passed looks like this: var query: [String : Any] = [ kSecClass as String: kSecClassGenericPassword, kSecAttrAccount as String: key, kSecAttrService as String: service, kSecAttrAccessControl as String: getSecAccessControl(), kSecUseAuthenticationContext as String: context, kSecValueData as String: data         ] the getSecAccessControl returns a SecAccessControl created like this:         access = SecAccessControlCreateWithFlags(nil,   kSecAttrAccessibleWhenUnlockedThisDeviceOnly,   .userPresence,   &amp;error) if I do not add the kSecAttrAccessControl item I don't see any error. The same code works as expected on the simulator with iOS 14. Looking at the documentation didn't help, anybody has hints about this? Maybe it's bug I'm not aware of? Thank you in advance
Asked
by AlessioP.
Last updated
.