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

Add audio files to iOS 17.0.1 simulators not working
My Xcode just updated and now I can't add audio files to the simulators. Nothing happens when sharing .wav or .mp3 files to the 17.0.1 simulators. Txt files share no problem. When a .wav or .mp3 file is dragged onto a simulator it opens Messages. Does anyone else have this problem? Is there a workaround on how to get audio files onto a 17.0.1 simulator? Is there a way to get my old simulators back? Any help greatly appreciated!
2
1
614
Nov ’23
Is this a bug or a feature?
I recently encountered a "potential bug" with SwiftData. I save my model with modelContent.insert and after that I get following error when trying to delete it with modelContent.delete: Could not cast value of type 'Swift.Optional<Any>' (0x1f5b871f8) to 'Foundation.UUID' This I mentioning the let id: UUID field marked with @Attribute(.unique). This build doesn't crash running in an iOS Sim but if it's running thought TestFlight on my iPhone it just crashes. If I try to delete elements that aren't just created, I don't get this error.
4
0
952
Jan ’24
Cannot pair watch simulator with iPhone simulator, Xcode 15
Hello, When I open Watch application on any of my IPhone simulators it says "Simulator Not Paired"... you can pair in Xcode Devices window. The problem is that there is no "PAIRED WATCHES" section there like shown in the help. when I run the xcrun simctl list command I see a lot of devices listed and even some paired. See the command output below. The problem started when I installed Xcode 15. When I had Xcode 14 the watches were paired with the devices and everything worked. I can actually only see the IPhone 15s and watches with watchOS 9.4 and 10. May be that is a part of the problem. Do I have to somehow delete them all and reinstall the latest? Thanks
1
0
997
Nov ’23
No Vision Pro Simulator available for Xcode 15.1 beta 2
Hi, I downloaded Xcode 15.1 beta 3 but my Unity project gives a tons of errors. In Unity forum one person from Unity said that the current ver. of Unity is not ready for Xcode 15.1 beta 3. So I downloaded Xcode 15.1 beta 2 but seems like Apple already took down the VisionOS Simulator compatible with the ver. of Xcode. Would you be able to allow us to download VisionOS 1.0 beta 4 again? I tried to find dmg for it but no luck.
2
2
649
Nov ’23
Xcode New Simulator Not Showing Up
Hey, I'm using Xcode 15.0. I added a new iPhone simulator for the 5.5" screenshots necessary for App Store Connect. However, the new iPhone simulator I created will not show up as an option when running the app on Xcode. I can open the simulator from the Simulator app, but that still doesn't allow it to be chosen. I have attached a few screenshots showing that Xcode knows about the new simulator (called 5.5" iPhone), but not selectable.
1
1
279
Nov ’23
iOS 17 keeps disappearing from simulator device options
I havent been able to figure out a pattern/cause, but every week or so, my simulator loses most of its available iOS version options. I should have 16.4 and 17 available, but you see I do not. When I go into xcode, iOS 17.0 has 2 entries, one allegedly available, and one awaiting download. Clicking "GET" on the grey one just pops a download windows which says its already downloaded. The only thing that sorts this is a reboot and it's back to normal again - with all my iOS versions available in the simulator. I dont want to keep having to reboot my dev machine. What is going on with XCode and how do I fix it for good?
3
3
761
Jan ’24
Verifying "iOS 17.0.simruntime" developer cannot be verified
Hey guys Ive been having this awful error “iOS 17.0.simruntime” cannot be opened because the developer cannot be verified. I can only click eject disk image, cancel, none of them solve this. What can I do to fix this? how is this Apple package not detected as verified developer? Note that this happened when I opened the iphone simulator, not that I installed or download anything. My setup: Macbook pro M1 Sonoma 14.1.1 Version 15.1 beta (15C5042i) I used the simulator without an issue a couple days before this started happening, thank you in advance.
3
4
1.2k
Nov ’23
XCUITest: Reset authorization status for Biometrics?
Hello everybody. I have a pack of UI tests for the Biometrics authentication. And in the beginning of each test I need there to be no permissions for Biometrics (granted or denied). I found the resetAuthorizationStatus(for:) method that allows resetting everything except Biometrics :( Is there any way I can reset this permission without deleting the whole app in tearDown()?
0
1
687
Nov ’23
Build setting variant for Designed for iPad
We're building one of our iPad apps for "Apple Vision Pro (Designed for iPad)" simulator and need to have certain different build settings for that simulator variant, compared to the default iOS simulator variant. It seems both variants use the iphonesimulator SDK. And in the Xcode build settings, the "Any iOS Simulator SDK" variant of any setting is what is also used, even when building for "Apple Vision Pro (Designed for iPad)". We tried adding a variant to the "Any iOS Simulator SDK" variant for one of the settings by editing the project file directly, using some possible variants we could think of. The added variant does show in the Xcode UI but it shows as "Any iOS Simulator SDK" also. But when building for "Apple Vision Pro (Designed for iPad)" Xcode still uses the original variant, as if it doesn't see that the added variant is matching the build destination. Example, where we want to exclude arm64 for iOS simulator builds, but not for "Apple Vision Pro (Designed for iPad)" builds. Original "Any iOS Simulator SDK" variant: "EXCLUDED_ARCHS[sdk=iphonesimulator*]" = "arm64"; Added variant: "EXCLUDED_ARCHS[sdk=iphonesimulator*][variant=Apple Vision Pro]" = ""; We have tried using variant names such as 'xr', 'xors', 'vision', 'visionos' and of course 'Apple Vision Pro' to no avail. The variant shows in the UI but the build doesn't use it. Does anyone know if there is a variant (or other property or other way of distinguishing such variant) that we can use that Xcode will recognize and use when building for "Apple Vision Pro (Designed for iPad)"? Thanks.
1
5
658
Nov ’23
SBMainWorkspace - The request was denied by service delegate
Hello here ! I’m encountering a bug when launching an app on the simulator which is: The request was denied by service delegate (SBMainWorkspace). I know that there are some topic about this error, but any solution works for me. 
This is what I have already try: Clean Derived data + project Reset simulator Check empty environment variables (for all target + pod) Update Xcode Reinstall Xcode Restart the Mac (multiple time) Check for Mach-O Type build settings is set to executable Try on different simulators (iPhone 15, 15 Pro & 15 Plus) Try on different iOS versions (16, 17 & 17.0.1) Desintegrate + reinstall pod Kill simulators, restart Xcode Clear Xcode cache from storage settings Try on different Xcode versions (15, 15.0.1, 14.3.1) Many of the things mentioned above at the same time Note that this bug only occurs on one specific project. I can run any other project on simulator normally. The same project run also normally on other Mac. Here’s my configuration: Xcode 15.0.1 (15A507) MacOS Sonoma 14.0 (23A344) Here’s the full error log: Simulator device returned an error for the requested operation. Domain: FBSOpenApplicationServiceErrorDomain Code: 1 Failure Reason: The request was denied by service delegate (SBMainWorkspace). User Info: { BSErrorCodeDescription = RequestDenied; FBSOpenApplicationRequestID = 0x9ca3; IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher; SimCallingSelector = "launchApplicationWithID:options:pid:error:"; } -- The request to open "com.abc.xyz" failed. Domain: FBSOpenApplicationServiceErrorDomain Code: 1 Failure Reason: The request was denied by service delegate (SBMainWorkspace). User Info: { BSErrorCodeDescription = RequestDenied; FBSOpenApplicationRequestID = 0x9ca3; } -- The operation couldn’t be completed. The process failed to launch. Domain: FBProcessExit Code: 64 Failure Reason: The process failed to launch. User Info: { BSErrorCodeDescription = "launch-failed"; } -- The operation couldn’t be completed. Launch failed. Domain: RBSRequestErrorDomain Code: 5 Failure Reason: Launch failed. -- Launchd job spawn failed Domain: NSPOSIXErrorDomain Code: 111 -- Event Metadata: com.apple.dt.IDERunOperationWorkerFinished : { "device_model" = "iPhone16,1"; "device_osBuild" = "17.0.1 (21A342)"; "device_platform" = "com.apple.platform.iphonesimulator"; "dvt_coredevice_version" = "348.1"; "dvt_mobiledevice_version" = "1643.2.4"; "launchSession_schemeCommand" = Run; "launchSession_state" = 1; "launchSession_targetArch" = arm64; "operation_duration_ms" = 11035; "operation_errorCode" = 1; "operation_errorDomain" = FBSOpenApplicationServiceErrorDomain; "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher; "operation_name" = IDERunOperationWorkerGroup; "param_debugger_attachToExtensions" = 0; "param_debugger_attachToXPC" = 1; "param_debugger_type" = 3; "param_destination_isProxy" = 0; "param_destination_platform" = "com.apple.platform.iphonesimulator"; "param_diag_MainThreadChecker_stopOnIssue" = 0; "param_diag_MallocStackLogging_enableDuringAttach" = 0; "param_diag_MallocStackLogging_enableForXPC" = 1; "param_diag_allowLocationSimulation" = 1; "param_diag_checker_tpc_enable" = 1; "param_diag_gpu_frameCapture_enable" = 0; "param_diag_gpu_shaderValidation_enable" = 0; "param_diag_gpu_validation_enable" = 0; "param_diag_memoryGraphOnResourceException" = 0; "param_diag_queueDebugging_enable" = 1; "param_diag_runtimeProfile_generate" = 0; "param_diag_sanitizer_asan_enable" = 0; "param_diag_sanitizer_tsan_enable" = 0; "param_diag_sanitizer_tsan_stopOnIssue" = 0; "param_diag_sanitizer_ubsan_stopOnIssue" = 0; "param_diag_showNonLocalizedStrings" = 0; "param_diag_viewDebugging_enabled" = 1; "param_diag_viewDebugging_insertDylibOnLaunch" = 1; "param_install_style" = 0; "param_launcher_UID" = 2; "param_launcher_allowDeviceSensorReplayData" = 0; "param_launcher_kind" = 0; "param_launcher_style" = 0; "param_launcher_substyle" = 0; "param_runnable_appExtensionHostRunMode" = 0; "param_runnable_productType" = "com.apple.product-type.application"; "param_structuredConsoleMode" = 1; "param_testing_launchedForTesting" = 0; "param_testing_suppressSimulatorApp" = 0; "param_testing_usingCLI" = 0; "sdk_canonicalName" = "iphonesimulator17.0"; "sdk_osVersion" = "17.0"; "sdk_variant" = iphonesimulator; } -- I have a different error when running on iOS 16: Application launch for 'com.abc.xyz' did not return a process handle nor launch error. Domain: NSPOSIXErrorDomain Code: 3 Failure Reason: No such process Thanks in advance !
4
0
3k
Nov ’23
LLDB "unable to attach" on Xcode v10.1 (10B61)
I am running the most up to date version of Xcode (v10.1 (10B61)) on a High Sierra system (10.13.6 (17G10021)) and find that compiling for macOS will work, but not visually display in the sumulator. I get the LLDB message: "unable to attach". Advice online suggested submitting new security certificates, which I have done, but still the simulator will not show up, even though the code compiles.
0
0
279
Nov ’23
App Crash with 'EXC_CRASH (SIGABRT)' Error - Missing Symbol Issue
Hello Apple Developer Community, I'm encountering a crash issue while running my iOS application in the iOS Simulator. The crash is accompanied by the following error message: Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: DYLD 4 Symbol missing Symbol not found: _$sSo24OS_dispatch_queue_serialC8DispatchE10AttributesVMa Referenced from: /Users/USER/Library/Developer/CoreSimulator/Devices/635DF164-98FC-48BB-81FD-BDAF562695EB/data/Containers/Bundle/Application/93882CE2-9B8E-4665-BCF2-5B4E0E557734/myapp.app/myapp Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 15.5.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/libswiftDispatch.dylib (terminated at launch; ignore backtrace) I'm currently using Xcode 15.0.1 and running the application on the iOS Simulator version 15.5.
1
2
416
Nov ’23
Having trouble picking the iOS Simulator I want to use
Running Xcode 15.0.1 on Sonoma 14.1. I would like to run my app in an iPhone 14* simulator running iOS 16.* to verify something has changed between 16.* and 17.*. I clicked on the Run Destination dropdown and clicked manage run destinations to open that dialogue. I then added the + on the simulators tab to add a new Simulator, clicked on the OS version, and clicked on the download more simulators to open the platforms tab in Xcode settings. Clicked the plus sign there and downloaded iOS 16.4 Now back in the run destinations dialogue I have all the iPhone 14 models with iOS 16.4 available. However, Back in the main Xcode windows when I click on the Run Destinations dropdown I still only see iPhone 15 models. I checked my target minimum deployments setting and made sure it was at iOS 16.4. I've cleaned and rebuilt my app, deleted the app out of the derived data folder and rebuilt. Restarted Xcode. I'm sure I'm missing something, but I'm not really sure what it is at this point. Any thoughts?
1
0
366
Nov ’23
Cycle inside Runner; building could produce unreliable results.
Hi, after upgrading to new SDKs I can no longer run the app on the simulator. I insert the debugger result here. Showing Recent Issues Cycle inside Runner; building could produce unreliable results. Cycle details: → Target 'Runner': ExtractAppIntentsMetadata ○ Target 'Runner' has copy command from '/Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex' to '/Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex' ○ That command depends on command in Target 'Runner': script phase “Thin Binary” ○ Target 'Runner' has process command with output '/Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist' ○ Target 'Runner' has copy command from '/Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex' to '/Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex' Raw dependency cycle trace: target: -> node: <all> -> command: <all> -> node: /Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Objects-normal/arm64/ExtractedAppShortcutsMetadata.stringsdata -> command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ExtractAppIntentsMetadata -> node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5--cp--embed-pods-frameworks> -> command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase5--cp--embed-pods-frameworks -> node: /Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/InputFileList-1EF15891FDC30E5AB246A27A-Pods-Runner-frameworks-Debug-input-files-f84ae2d16402feb0918249beabe0354e-resolved.xcfilelist -> command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:WriteAuxiliaryFile /Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/InputFileList-1EF15891FDC30E5AB246A27A-Pods-Runner-frameworks-Debug-input-files-f84ae2d16402feb0918249beabe0354e-resolved.xcfilelist -> node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase4-copy-files> -> command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase4-copy-files -> node: <Copy /Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex> -> CYCLE POINT -> command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy /Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex /Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex -> node: <target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase3-thin-binary> -> command: P0:::Gate target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49--fused-phase3-thin-binary -> node: <execute-shell-script-18c1723432283e0cc55f10a6dcfd9e02f1eee2015e8ff5ebcd27678f788c2826-target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-> -> command: P2:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:PhaseScriptExecution Thin Binary /Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Intermediates.noindex/Runner.build/Debug-iphonesimulator/Runner.build/Script-3B06AD1E1E4923F5004D2608.sh -> node: /Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist/ -> directoryTreeSignature: � -> directoryContents: /Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist -> node: /Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist -> command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:ProcessInfoPlistFile /Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/Runner.app/Info.plist /Users/MACPC/Desktop/MYAPP/ios/Runner/Info.plist -> node: /Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex -> command: P0:target-Runner-18c1723432283e0cc55f10a6dcfd9e0288a783a885d8b0b3beb2e9f90bde3f49-:Debug:Copy /Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/Runner.app/PlugIns/OneSignalNotificationServiceExtension.appex /Users/MACPC/Library/Developer/Xcode/DerivedData/Runner-fjykmfstetqpxeegotevlnbgnqtk/Build/Products/Debug-iphonesimulator/OneSignalNotificationServiceExtension.appex I cannot understand what's the problem. Thank you all.
0
0
520
Nov ’23
Unable to Verify "iOS 17.0.simruntime" after iOS 17.0.1 Attempted Download
After Xcode 15 update, to update my older iOS apps, Xcode says I must install the iOS 17.0 something. When I choose to install, the iOS 17.0.1 Simulator (21A342) downloads completely (~7gb) but even after 10-15 minutes the dialog Verifying "iOS 17.0.simruntime"... never progresses even once. I am unable to do anything with Xcode Because of this I am unable to build my updated iOS apps because it keeps cycles in this same loop with the same results, now 2 or 3 times. Does this verify take hours? How can I get this to verify and get back to updating/building my iOS apps?
2
3
2.8k
Nov ’23
Sending MSMessage in iOS 17 Simulator Fails
Using iOS 17 I notice when I compose an MSMessage and insert it into the active conversation and send it in the simulator the message does not appear in the the message thread. The didStartSending(_ message: MSMessage, conversation: MSConversation) function is called when the message is sent, but there are no errors. I'm expecting there is an error with iOS 17 Simulator and sending messages. Also, being able to debug sending a message and going to the receiver to open the message still crashes. I hope this gets solved as well as it makes it very hard to test iMessage apps.
2
0
661
Nov ’23
How to create iOS 15.x simulators in Xcode 15
I'm using Xcode 15.0 (15A240d) and I need to test some code on iOS 15. I'm unable to create a new iOS 15 simulator. If I select the "Download more" option I'm presented with the "Platforms" tab in settings. There's no option to actually select a platform here (which as you can see Xcode itself indicates I have on disk). Neither double-click nor secondary-click do anything for me either. Am I doing something wrong or is this just bad design?
0
0
1.1k
Nov ’23
Xcode simulators get deleted/corrupted after a restart
I'm running the latest Xcode 15.0.1 installed manually (not from App Store). Tried installing the iOS 17.0 runtime directly from Xcode. It usually gets corrupted mid installation, or when it finally installs, the simulators are still not available. Afterwards I tried installing simulators directly through .img files, it worked in the past, but now it tells me there are duplicates. I've tried reinstalling Xcode with deleting all of it's caches, but I still have this problem.
1
0
813
Oct ’23