Simulator

RSS for tag

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

Posts under Simulator tag

200 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

Where is the iOS 16.3 simulator? Why doesn't Apple release it?
The app I created works normally on 16.2 and 16.4. However, the app reviewer says it doesn't work on iPad 16.3. It didn't work when I actually saw the screenshot. I want to fix this problem, but 16.3 Simulator is not available. I bought a MacBook for app development, bought an iPhone for testing, and now I have to buy an iPad. I don't know why simulators exist. This is very nonsense.
6
2
2.2k
Sep ’23
Video not working on 16.4 simulator
I'm testing a video stream (HLS) with AVPlayer. On XCode 14.3 and simulators running iOS 16.4, there is no video image, only black screen. The audio is playing normally, also progress/duration of the video is showing as expected. The problem does not occur on same XCode version with earlier versions of the simulator. Is this a simulator bug? I've also tested it on real device with iOS 16.4 - no problem there.
23
31
11k
Sep ’23
Class CDPCAReporter is implemented in both...
Seeing these logs in the iOS 16.2 iPad Air simulator with a SwiftUI app. Clutters up the logs and clearly something implemented internal to the simulator. Any ideas on how to address the issue or suppress the logs? thanks objc[69650]: Class CDPCAReporter is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreCDPInternal.framework/CoreCDPInternal (0x160b7d1d8) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreCDP.framework/CoreCDP (0x159028eb0). One of the two will be used. Which one is undefined. objc[69650]: Class CDPCABackupRecoveryReporter is implemented in both /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreCDPInternal.framework/CoreCDPInternal (0x160b7def8) and /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/CoreCDP.framework/CoreCDP (0x1590290e0). One of the two will be used. Which one is undefined.
2
4
1.1k
Aug ’23
CarPlay Simulator not receiving microphone input (Siri)
CarPlay Simulator not receiving microphone input (Siri) Running carplay simulator Version 1.1 (480.26) Running on: M1 Macbook Pro running macOS Ventura 13.3.1 Connected to: iPhone 13 pro max running iOS 16.4 (20E246) When launching Siri by "Hey Siri", the, the siri indicator apppears and I am able to communicate and send a command, such as "send a text". Then, the Siri will say "who do you want to message", but it is no longer able to hear my voice as input.
1
0
686
Dec ’23
Xcode 14 live issues broken, shows false errors, but the real errors show only after build and disappear couple of seconds later
Hello, I have several extremely annoying Xcode 14 issues that completely destroyed my productivity. They've been hunting me for the last three or so months. I even searched the darkest corners of the Internet to find the cure, but although I found some solutions for people that had similar problems as mine, they unfortunately didn't help me at all. I have a Swift UIKit project that targets iOS 13.0 and newer (only for iPhone), contains 3 schemas (dev, show and prod channels), uses swift packages with remote and local dependencies. No cocoa pods or something like this. Each schema only defines compilation conditions (so I determine in my code which channel I use), nothing more was affected in the settings. I also use a custom build script that only copies Firebase configuration file to the executable folder depending on project's schema. Even though I tried my best by keeping the project structure as clear as I can do and not changing any other settings, leaving them by default as is, I'm still experiencing frustration, rage and sadness at the same time when I'm working with this project. I encountered the first issue when I was using different Swift Packages depending on project's schema (for dev channel I used an autogenerated dev backend api and so on for show and prod - I wrapped them in #if #else blocks). I also updated Xcode at that time. So the problem was, I got a lot of in-editor error messages saying that Xcode could not find in scope, although the required package was already included in the file. And here comes the frustration - the project still successfully builds. I tried to solve this problem by merging these three packages into one and import them without #if #else tricks, but that didn't help. To make things even worse, autocompletion and code suggestion were broken for all imported Swift Packages - it doesn't matter if package was remote or local. I tried to clean, rebuild, close Xcode, remove DerivedData folder, open Xcode in every combination I can imagine, but that didn't work, the problem didn't go away. After a couple of updates I also realized that live issues were completely broken. I didn't get any warnings and errors while coding. Only after building the project, real warnings and errors appeared in the editor and issue navigator, but only for three-four seconds, and then disappeared again. That drove me crazy. Tried to solve this problem with the same methods, it didn't help. Only after disabling live issues, the real warnings and errors did not disappear, but code suggestion and completion were still not working. I enabled Xcode indexing log by typing defaults write com.apple.dt.Xcode IDEIndexShowLog -bool YES in the Terminal app. I found out that Xcode was not able to find one module: /somePath/SomeFile.swift 0.2 seconds no such module 'somePackageName' This error appeared for every file I open and every character I type, but the error was pointing only at that specific file that actually imports that module. So I import this module (also added in the project settings), but still get an error that the module was not found, but again the project successfully compiles and runs. It is an Xcode Framework from a third-party developer that they provided for us. The framework contains binaries only for ios-arm64 and ios-arm64_x86_64-simulator. I use a glorious M1 Mac. I decided yesterday to create a new project and copy there all code and resource files. I thought that I accidentally broke something in the settings and so I made them again from scratch. I did not had my Lightning cable this time, so I built the app for iPhone 14 Pro simulator. And the Xcode heard my prayers - everything was working great. The live issues worked as they should, I did not get any false errors and the autocompletion and code suggestions were fine. I got relief on that cloudy evening... But that's too good to be true, here is the plot twist. I got today my Lightning cable back, connected an iPhone to my Mac. And now I got all these issues again 💀 So now it looks like these issues only happen when I select a physical device as a run destination. I discovered it while writing this post. Any suggestions how to solve this?
4
10
3.9k
Aug ’23
Simulator not reflecting simctl override --time command as expected
I have a simulator named "iPhone 14 Pro" created and booted. The override --time command doesn't appear to take anymore. This worked months ago, but broke somewhere along the road of Xcode 14.x. It is a drag setting the system time to 9:41 for App Store Connect screenshots which is why I used the command in the first place. I cannot seem to successfully set the status bar time of the simulator via the following command anymore: xcrun simctl status_bar "iPhone 14 Pro" override --time "9:41" Is this working for anyone else lately? Feedbacks; Created these Dec 7, 2022 FB11859751 - Simulator: iOS simulator not responding to simctl set time FB11859744 - Simulator: watchOS simulator not responding to simctl set time
2
0
1.4k
Jan ’24
iOS Simulators not listed as Run Destinations (Xcode 14.3)
For all my iOS projects only simulators running iOS 16.4 are listed as Run Destinations ... although I've installed the iOS 13 simulator and corresponding entries are listed under "Devices & Simulators". I've toggled "Show run destination" from "Automatic" to "Always" with no avail. Deployment target is e.g. iOS 13, and I'm running Xcode Version 14.3 (14E222b) on a 14" MBP with Apple Silicon. As a current bypass I'm booting up the simulator manually and install apps by "xcrun simctl install booted APP.app" to allow some basic testing, but that's no sustainable solution. Any help is much appreciated! Mattes
6
4
9.9k
Jul ’23
Xcode 14.1/2 always resets watchos9.1 simulator runtime to 20S71
Hello, Previously I posted simulator 9.1 runtime not found although it is installed in the system. (https://developer.apple.com/forums/thread/723603) I found out there is a command xcrun simctl runtime match set to designate simulator runtime for current Xcode. I also figured out the fact that watchos 9.1 simulator runtimes for Xcode 14.1 and 14.2 always indicate 20S71, which is patched to 20S75 for now. (We can check downloadable simulators list from https://devimages-cdn.apple.com/downloads/xcode/simulators/index2.dvtdownloadableindex ) $ sudo xcode-select -s /Applications/Xcode/Xcode_14.1.app $ xcrun simctl runtime match list == Evaluation Results == appletvos16.1: SDK Version: 16.1 SDK Build: 20K67 Platform: com.apple.platform.appletvos Chosen Runtime: tvOS 16.1 (16.1 - 20K67) - com.apple.CoreSimulator.SimRuntime.tvOS-16-1 User Override: (null) Preferred: (null) Default: tvOS 16.1 (16.1 - 20K67) - com.apple.CoreSimulator.SimRuntime.tvOS-16-1 iphoneos16.1: SDK Version: 16.1 SDK Build: 20B71 Platform: com.apple.platform.iphoneos Chosen Runtime: iOS 16.1 (16.1 - 20B72) - com.apple.CoreSimulator.SimRuntime.iOS-16-1 User Override: (null) Preferred: (null) Default: iOS 16.1 (16.1 - 20B72) - com.apple.CoreSimulator.SimRuntime.iOS-16-1 watchos9.1: SDK Version: 9.1 SDK Build: 20S71 Platform: com.apple.platform.watchos Chosen Runtime: 20S71 User Override: (null) Preferred: (null) Default: 20S71 $ xcode-select -p /Applications/Xcode/Xcode_14.2.app/Contents/Developer $ xcrun simctl runtime match list == Evaluation Results == appletvos16.1: SDK Version: 16.1 SDK Build: 20K67 Platform: com.apple.platform.appletvos Chosen Runtime: tvOS 16.1 (16.1 - 20K67) - com.apple.CoreSimulator.SimRuntime.tvOS-16-1 User Override: (null) Preferred: (null) Default: tvOS 16.1 (16.1 - 20K67) - com.apple.CoreSimulator.SimRuntime.tvOS-16-1 iphoneos16.2: SDK Version: 16.2 SDK Build: 20C52 Platform: com.apple.platform.iphoneos Chosen Runtime: iOS 16.2 (16.2 - 20C52) - com.apple.CoreSimulator.SimRuntime.iOS-16-2 User Override: (null) Preferred: (null) Default: iOS 16.2 (16.2 - 20C52) - com.apple.CoreSimulator.SimRuntime.iOS-16-2 watchos9.1: SDK Version: 9.1 SDK Build: 20S71 Platform: com.apple.platform.watchos Chosen Runtime: 20S71 User Override: (null) Preferred: (null) Default: 20S71 $ xcode-select -p /Applications/Xcode/Xcode_14.3.1_Release_Candidate.app/Contents/Developer $ xcrun simctl runtime match list == Evaluation Results == appletvos16.4: SDK Version: 16.4 SDK Build: 20L489 Platform: com.apple.platform.appletvos Chosen Runtime: 20L489 User Override: (null) Preferred: (null) Default: 20L489 iphoneos16.4: SDK Version: 16.4 SDK Build: 20E238 Platform: com.apple.platform.iphoneos Chosen Runtime: iOS 16.4 (16.4 - 20E247) - com.apple.CoreSimulator.SimRuntime.iOS-16-4 User Override: (null) Preferred: (null) Default: iOS 16.4 (16.4 - 20E247) - com.apple.CoreSimulator.SimRuntime.iOS-16-4 watchos9.4: SDK Version: 9.4 SDK Build: 20T248 Platform: com.apple.platform.watchos Chosen Runtime: 20T248 User Override: (null) Preferred: (null) Default: 20T248 and I assume that the problem I suffered from (watchOS 9.1 not installed error but simulators and runtime already installed in Mac) is recurring because the watchOS runtime for Xcode 14.1/14.2 is frequently returned to default when reset or switch to other versions of Xcode, even though the user forced to choose a certain SDK version. What I want to know is: What file does contain the data of xcrun simctl runtime match list ? Where is it? Is there any reason or factor for runtime to be set to default? I am in the team running macOS as CI server. Can I use watchOS 9.x Simulator runtimes while using Xcode 14.2, other than 9.1? Thanks in advance.
1
0
638
Jul ’23
visionOS Simulator is completely blank in macOS Sonoma VM
Hi, I have macOS 14 Sonoma beta 2 (build 23A5276g) running in a VM powered by Virtualization.framework with Xcode 15 beta 2 (build 15A5161b) installed. My host machine is an M1 MacBook Air running macOS Ventura 13.4.1. The iOS and iPadOS simulators work fine. However, when I launch the visionOS simulator from Xcode, all I get is a blank screen. Would anyone be able to help with this? I also noticed that when the visionOS simulator is open, none of the other simulators work. However, as soon as I close the visionOS simulator, everything else starts working again. Thanks!
4
0
1.4k
Jul ’23
[UIKeyboardImpl] Unsupported action selector setShiftStatesNeededInDestination:autoShifted:shiftLocked:
In iOS 17 Swift, I am encountering an issue where the method textField(_:shouldChangeCharactersIn:replacementString:) is being called two times on each keyboard button press. This behavior is causing a disruption in my functionality. Additionally, I am receiving the following warning messages in the console: 2023-06-27 13:29:09.745854+0530[79059:1391219] [UIKeyboardImpl] Unsupported action selector setShiftStatesNeededInDestination:autoShifted:shiftLocked: 2023-06-27 13:29:09.746747+0530[79059:1391219] [UIKeyboardImpl] Unsupported action selector clearKeyboardSnapshot 2023-06-27 13:29:15.773321+0530[79059:1391219] [KeyboardUIClient] Failed to retrieve snapshot. 2023-06-27 13:29:15.776752+0530[79059:1391219] [RTILog] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID 2023-06-27 13:29:15.777341+0530[79059:1391219] [RTILog] -[RTIInputSystemClient remoteTextInputSessionWithID:performInputOperation:] perform input operation requires a valid sessionID
1
2
1.5k
Jul ’23
Crash When Run app On Xcode15 Simulator
When UICollectionViewFlowLayoutAlertForInvalidItemSize Occured Some Log Like These Occurred, and then app crash *** Assertion failure in void _UIGraphicsBeginImageContextWithOptions(CGSize, BOOL, CGFloat, BOOL)(), UIGraphics.m:410 crash Output *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UIGraphicsBeginImageContext() failed to allocate CGBitampContext: size={0, 16}, scale=3.000000, bitmapInfo=0x2002. Use UIGraphicsImageRenderer to avoid this assert.'
31
5
19k
Feb ’24
XCode Simulator Device Class Size Problem
I'm having trouble with XCode Simulator and device rotation using SwiftUI app. (Simulator Version 14.3.1 (994) SimulatorKit 629 CoreSimulator 885.2) The horizontalSizeClass/verticalSizeClass as reported by simulator does not match the sizes given in https://developer.apple.com/design/human-interface-guidelines/layout when rotating the device. It is correct on initial start, but on first device rotation (say e.g. portrait to landscape orientation) the values remain the same, despite monitoring with .onChange suggesting that they have changed! Then it appears to lag one device rotation behind the actual orientation for subsequent rotations. Such that on second device rotation (say landscape back to portrait) the values change to those associated with landscape instead of portrait - and so on for all subsequent rotations. It's a particular issue with "large" iPhones when simulator gives width = .compact and height = .regular in landscape orentation when it should be the other way round! Any insights from anyone as what is going on? Is it a bug or am I doing something wrong? Thanks
2
0
610
Jul ’23
XCode 14.3.1 - M1 runner - UI tests doesn't create clones of simulators
I'm having problems with UI tests on an M1 runner using Xcode 14.3.1. In my project, I need to build using the Rosetta simulator because I have a dependency that is not updated to support the arm simulator. This dependency relies on OpenCV." This is the command that I use when I want to run UI tests on CI: xcodebuild ARCHS=x86_64 clean test -scheme UITests -configuration Debug -destination 'id=50E9C593-9A40-4E4D-B58D-1DE437CFBE3A' -parallel-testing-enabled YES -parallel-testing-worker-count 3 -maximum-concurrent-test-simulator-destinations 4 -test-iterations 3 -retry-tests-on-failure And this code run only with 1 clone of simulator. Anyone know why?
2
0
1.7k
Oct ’23