I'm trying some sample with xcodebuild test command for i(Pad)OS simulators, figuring out some strange behavior on simulator initiation.
00:00:38 --------------------------
00:00:38 --- Step: xcode_select ---
00:00:38 --------------------------
00:00:38 Setting Xcode version to /Applications/Xcode/Xcode_15.3_beta_3.app for all build steps
00:00:38 Init simulators ...
00:00:39 $DEVELOPER_DIR
00:00:39 /Applications/Xcode/Xcode_15.3_beta_3.app/Contents/Developer
...
00:05:26 ▸ 2024-02-14 15:13:41.319 xcodebuild[12903:1082819] [MT] IDELaunchReport: 4a4f919bfba30580:4a4f919bfba30580: Finished with error: Simulator device failed to install the application.
00:05:26 ▸ Domain: IXErrorDomain
00:05:26 ▸ Code: 2
00:05:26 ▸ Failure Reason: Failed to locate promise.
00:05:26 ▸ User Info: {
00:05:26 ▸ FunctionName = "+[IXPlaceholder _placeholderForBundle:client:withParent:installType:metadata:placeholderType:mayBeDeltaPackage:error:]";
00:05:26 ▸ IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher;
00:05:26 ▸ SimCallingSelector = "installApplication:withOptions:error:";
00:05:26 ▸ SourceFileLine = 803;
00:05:26 ▸ }
00:05:26 ▸ --
00:05:26 ▸ Failed to set icon promise for com.example.myapp
00:05:26 ▸ Domain: IXErrorDomain
00:05:26 ▸ Code: 2
00:05:26 ▸ Failure Reason: Failed to create promise.
00:05:26 ▸ User Info: {
00:05:26 ▸ FunctionName = "+[IXPlaceholder _placeholderForBundle:client:withParent:installType:metadata:placeholderType:mayBeDeltaPackage:error:]";
00:05:26 ▸ SourceFileLine = 803;
00:05:26 ▸ }
00:05:26 ▸ --
00:05:26 ▸ Placeholder did not exist for UUID 2810E06A-4565-4966-BE98-AE4A6A96D916 when called for -[IXSClientConnection _remote_IXSPlaceholder:setIconPromiseUUID:completion:] by client CoreSimulatorBridge (pid 13037)
00:05:26 ▸ Domain: IXErrorDomain
00:05:26 ▸ Code: 3
00:05:26 ▸ Failure Reason: Failed to locate promise.
00:05:26 ▸ User Info: {
00:05:26 ▸ FunctionName = "-[IXSClientConnection _fetchPlaceholderForUUID:method:andRunWithPromise:error:]";
00:05:26 ▸ SourceFileLine = 1945;
00:05:26 ▸ }
00:05:26 ▸ --
00:05:26 ▸ 2024-02-14 15:13:41.323 xcodebuild[12903:1082819] [MT] IDELaunchReport: 4a4f919bfba30580:4a4f919bfba30580: com.apple.dt.IDERunOperationWorkerFinished {
00:05:26 ▸ "device_model" = "iPhone14,7";
00:05:26 ▸ "device_osBuild" = "16.4 (20E247)";
00:05:26 ▸ "device_platform" = "com.apple.platform.iphonesimulator";
00:05:26 ▸ "dvt_coredevice_version" = "355.23";
00:05:26 ▸ "dvt_mobiledevice_version" = "1643.100.52";
00:05:26 ▸ "launchSession_schemeCommand" = Test;
00:05:26 ▸ "launchSession_state" = 1;
00:05:26 ▸ "launchSession_targetArch" = arm64;
00:05:26 ▸ "operation_duration_ms" = 108400;
00:05:26 ▸ "operation_errorCode" = 2;
00:05:26 ▸ "operation_errorDomain" = IXErrorDomain;
00:05:26 ▸ "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher;
00:05:26 ▸ "operation_name" = IDERunOperationWorkerGroup;
00:05:26 ▸ "param_debugger_attachToExtensions" = 0;
00:05:26 ▸ "param_debugger_attachToXPC" = 0;
00:05:26 ▸ "param_debugger_type" = 1;
00:05:26 ▸ "param_destination_isProxy" = 0;
00:05:26 ▸ "param_destination_platform" = "com.apple.platform.iphonesimulator";
00:05:26 ▸ "param_diag_MainThreadChecker_stopOnIssue" = 0;
00:05:26 ▸ "param_diag_MallocStackLogging_enableDuringAttach" = 0;
00:05:26 ▸ "param_diag_MallocStackLogging_enableForXPC" = 0;
00:05:26 ▸ "param_diag_allowLocationSimulation" = 1;
00:05:26 ▸ "param_diag_checker_tpc_enable" = 0;
00:05:26 ▸ "param_diag_gpu_frameCapture_enable" = 3;
00:05:26 ▸ "param_diag_gpu_shaderValidation_enable" = 0;
00:05:26 ▸ "param_diag_gpu_validation_enable" = 1;
00:05:26 ▸ "param_diag_memoryGraphOnResourceException" = 0;
00:05:26 ▸ "param_diag_queueDebugging_enable" = 1;
00:05:26 ▸ "param_diag_runtimeProfile_generate" = 1;
00:05:26 ▸ "param_diag_sanitizer_asan_enable" = 0;
00:05:26 ▸ "param_diag_sanitizer_tsan_enable" = 0;
00:05:26 ▸ "param_diag_sanitizer_tsan_stopOnIssue" = 0;
00:05:26 ▸ "param_diag_sanitizer_ubsan_stopOnIssue" = 0;
00:05:26 ▸ "param_diag_showNonLocalizedStrings" = 0;
00:05:26 ▸ "param_diag_viewDebugging_enabled" = 0;
00:05:26 ▸ "param_diag_viewDebugging_insertDylibOnLaunch" = 0;
00:05:26 ▸ "param_install_style" = 2;
00:05:26 ▸ "param_launcher_UID" = 2;
00:05:26 ▸ "param_launcher_allowDeviceSensorReplayData" = 0;
00:05:26 ▸ "param_launcher_kind" = 0;
00:05:26 ▸ "param_launcher_style" = 0;
00:05:26 ▸ "param_launcher_substyle" = 0;
00:05:26 ▸ "param_runnable_appExtensionHostRunMode" = 0;
00:05:26 ▸ "param_runnable_productType" = "com.apple.product-type.application";
00:05:26 ▸ "param_structuredConsoleMode" = 0;
00:05:26 ▸ "param_testing_launchedForTesting" = 1;
00:05:26 ▸ "param_testing_suppressSimulatorApp" = 1;
00:05:26 ▸ "param_testing_usingCLI" = 0;
00:05:26 ▸ "sdk_canonicalName" = "iphonesimulator17.4";
00:05:26 ▸ "sdk_osVersion" = "17.4";
00:05:26 ▸ "sdk_variant" = iphonesimulator;
00:05:26 ▸ }
When I choose iPad 10th Generation, iPhone 14, 14 plus, 14 pro or 14 pro max devices listed on xcrun simctl list it fails with the log above. (doesn't matter what OS version is selected)
Other than those sims it works (I checked it on iPhone SE 3rd gen, ipad mini 6g)
Are those devices excluded from Xcode 15.3 Beta 3? Then why are those on the xcrun simctl list still?
FYI: myapp took -Wl and -ld_classic for OTHER_LDFLAGS option in xcconfig after first app installation crash, still didn't make any changes.
Simulator
RSS for tagRapidly 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
I'm using Visual Studio for Mac 2022, and building for a physical device. This is the same either on Xcode or VS. The always allow button is just gone. Any fixes? searched the web thin.
After installing the iOS 17.2 simulator in Xcode, I encountered a persistent issue where the simulator displays a black screen upon launch and becomes unresponsive. Despite attempting various troubleshooting methods, including reinstalling the simulator, reinstalling Xcode, and erasing simulator data, the problem persists.
Any guidance or suggestions on how to resolve this issue would be greatly appreciated. Thank you.
Scenario: Use code below or similar. Use Xcode simulator or physical device. Have on-screen keyboard hidden. Tap at the end of one of the lowest 5 lines of text that are visible. Using the iPad 10th gen simulator in landscape orientation, this is likely line 14 or so. The on-screen keyboard should have displayed. The text in the TextEditor may scroll up a bit. Using the bottom right key of the on-screen keyboard, dismiss the keyboard. The lines of text after the cursor position are not shown making the TextEditor about half-blank (when in landscape orientation).
How do I avoid this unexpected behavior?
I'm currently using Xcode 15.1. The code below is just test code to demonstrate the issue.
import SwiftUI
let alpha = "abcdefghijklmnopqrstuvwxyz"
let araAlpha = Array(alpha).map { String($0) }
struct ContentView: View {
@State var text = ""
var body: some View {
TextEditor(text: $text)
.padding(60).font(.largeTitle)
.onAppear {
for i in 1 ... 40 {
let n = Int.random(in: 5 ... 20)
text += String(i) + " "
+ araAlpha.shuffled()
.joined().prefix(n) + "\n"
}
}
}
}
Hi! I have been following an iOS App Dev Tutorial to create an app called Scrumdinger. Before creating the app, I installed the iOS 17.2, watchOS 10.2, tvOS 17.2, visionOS 1.0 simulators. Halfway through creating the project, somehow, all the simulators were uninstalled without my instruction. I am unable to now run or build my app in Xcode or open a new simulator. I have attached screenshots. However when I click "Get" to get the simulator, it says I have already installed it. Help me please.
Shaabaz Khan (KoderKhan)
Hello getting error in [installation]
for Xcode 15.3 beta
Thanks
Zippy Games
I just updated to Xcode 15.2 and disk usage increased about 20GB (with macOS 13.6.3). Should this be expected? Are there ways to mitigate this?
In particular, I have only iOS installed, and I see an iOS simulator DMG here (Library > Developer > CoreSimulator > Images) which is 7.35GB. Is it necessary to retain this file?
Thanks!
In Xcode 15.2, I need to select a dictionary to verify that a word is valid. When I go to Settings>General>Dictionary on the simulated iPhone 15 Pro, I get the following message... "Dictionary Unavailable, Connect to the Internet and Try Again". I can go to websites from the Safari app in the simulated iPhone without an issue. How do I fix this? Thanks.
hi everyone does anyone understand this issues below ? What to do or change in my code when this appear my code is over more than 20 swift file I don't know which one to share lol
dyld[1060]: Symbol not found: _$s21DeveloperToolsSupport17UVPreviewRegistryCMn
Referenced from: /private/var/containers/Bundle/Application/ACD0F0D4-CAF4-4101-BFC0-3990E29F316E/MyPmV1.app/MyPmV1
Expected in: /System/Library/Frameworks/DeveloperToolsSupport.framework/DeveloperToolsSupport
I'm experiencing an issue with the Accessibility Inspector. It's worked fine.
Since the update, I'm unable to perform an audit while in the Simulator. I have the following message: "Select a target app to view Accessibility warnings and audit information." However, VoiceOver and Dynamic Type functionalities are working fine.
The audit only works when I test on my iPhone. How can I connect the target for the audit?
Thank you.
Accessibility Inspector V5
Simuator 15.2
Hello
Which Xcode version should I use to test my app on an iPhone simulator with iOS 17.3 (the latest one)?
Thanks
Issue
The documentation for get_app_container mentions the use of group identifier, but that does not seem to be working
Print the path of the installed app's container
Usage: simctl get_app_container <device> <app bundle identifier> [<container>]
container Optionally specify the container. Defaults to app.
app The .app bundle
data The application's data container
groups The App Group containers
<group identifier> A specific App Group container
Steps to reproduce
The following command lists the groups and the respective root paths
% xcrun simctl get_app_container booted com.apple.DocumentsApp groups
group.com.apple.DocumentManager /Users/<username>/Library/Developer/CoreSimulator/Devices/1308FA26-FB67-4582-89B2-37774D0BCBCE/data/Containers/Shared/AppGroup/80B132E9-43A1-490C-89D1-C935523797BA
group.com.apple.FileProvider.LocalStorage /Users/<username>/Library/Developer/CoreSimulator/Devices/1308FA26-FB67-4582-89B2-37774D0BCBCE/data/Containers/Shared/AppGroup/2A5B9F5E-B9DC-42AE-AE12-50257B58F02C
group.com.apple.tipsnext /Users/<username>/Library/Developer/CoreSimulator/Devices/1308FA26-FB67-4582-89B2-37774D0BCBCE/data/Containers/Shared/AppGroup/77292BF1-0ED5-493A-
But using either group.com.apple.DocumentManager or group.com.apple.FileProvider.LocalStorage as the group identifier does not return the root path for the corresponding groups
~ % xcrun simctl get_app_container booted com.apple.DocumentsApp group.com.apple.FileProvider.LocalStorage
Print the path of the installed app's container
Usage: simctl get_app_container <device> <app bundle identifier> [<container>]
container Optionally specify the container. Defaults to app.
app The .app bundle
data The application's data container
groups The App Group containers
<group identifier> A specific App Group container
This issue was also described in a Stackoverflow question about a year ago
I'm trying to develop a watchOS app with location.
I've got the proper privacy settings in the info.plist, similar code works on other devices. (also simulators).
But on watchOS simulators everything is grayed out.
Privacy & Location -> Location Services
App shows up correctly, but everything is grayed out.
I've tried:
Different simulators (with/without paired iPhone)
Different app configurations (Watch-Only app, Watch App with new companion)
Toggling Supports Running Without iOS App Installation.
It's always grayed out!
This is with watchOS 10 simulators across any model, and Xcode 15.2
Any help would be appreciated.
Hello,
I am new to Apple development and am wondering if I have configuration missing to enable access to FaceTime within the visionOS Simulator. I am on XCode 15.2, Simulator Version 15.2, and visionOS 1.0. I am trying to use the "Destinations Video" code as reference for implementing a shared activity but even running this in the simulator doesn't seem to prompt the SharePlay buttons shown in the video: https://developer.apple.com/documentation/visionos/destination-video
I am trying to test out SharePlay and GroupActivities but am not sure where exactly to download the developer Persona specified in the release notes here and how to configure that: https://developer.apple.com/documentation/visionos-release-notes/visionos-release-notes#FaceTime
Can someone advise on how to enable FaceTime + SharePlay in the visionOS Simulator?
Hello everyone, good day. For months now, I have been trying to get the iOS 17 simulator on my MacBook Pro. Unfortunately, it failed during the installation process. When it reached 100%, it showed 'installing,' but, regrettably, it failed and displayed the following error:
(-67061 invalid signature (code or signature have been modified)
Domain: SimDiskImageErrorDomain
Code: 5
User Info: {
DVTErrorCreationDateKey = "2024-02-02 13:57:23 +0000";
unusableErrorDetail = "";
}
Has anyone ever come across this error? I would appreciate it if anyone could shed light on what it means and provide guidance on how to bypass it before attempting the installation again.
Hello everyone, good day. For months now, I have been trying to get the iOS 17 simulator on my MacBook Pro. Unfortunately, it failed during the installation process. When it reached 100%, it showed 'installing,' but, regrettably, it failed and displayed the following error:
(-67061 invalid signature (code or signature have been modified)
Domain: SimDiskImageErrorDomain
Code: 5
User Info: {
DVTErrorCreationDateKey = "2024-02-02 13:57:23 +0000";
unusableErrorDetail = "";
}
Has anyone ever come across this error? I would appreciate it if anyone could shed light on what it means and provide guidance on how to bypass it before attempting the installation again.
Incident Identifier: 3E5D857B-D728-45F8-95AD-C3EC46CE589D
CrashReporter Key: 0156B348-BB10-D3C6-E130-C435AB2763A6
Hardware Model: Macmini9,1
Process: App [10849]
Path: /Users/USER/Library/Developer/CoreSimulator/Devices/FA264C34-054F-4D86-9D62-679DB34F63AF/data/Containers/Bundle/Application/004E0779-762B-43C4-AC08-795C0339AD70/App.app/App
Version: 0.14.1 (1)
Code Type: X86-64 (Native)
Role: Foreground
Parent Process: launchd_sim [9863]
Coalition: com.apple.CoreSimulator.SimDevice.FA264C34-054F-4D86-9D62-679DB34F63AF [6147]
Responsible Process: SimulatorTrampoline [8422]
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: DYLD 1 Library missing
Library not loaded: @rpath/AppAuth.framework/AppAuth
Referenced from: <E20088D5-0655-39D9-B00F-A22EE8D3671C> /Users/USER/Library/Developer/CoreSimulator/Devices/FA264C34-054F-4D86-9D62-679DB34F63AF/data/Containers/Bundle/Application/004E0779-762B-43C4-AC08-795C0339AD70/App.app/App
Reason: tried:
'/Library/Developer/CoreSimulator/Volumes/iOS_21C62/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/AppAuth.framework/AppAuth' (no such file), '/usr/lib/swift/AppAuth.framework/AppAuth' (no such file, no dyld cache), '/Users/#####/Library/Developer/CoreSimulator/Devices/FA264C34-054F-4D86-9D62-679DB34F63AF/data/Containers/Bundle/Application/004E0779-762B-43C4-AC08-795C0339AD70/App.app/Frameworks/AppAuth.framework/AppAuth' (no such file), '/Users/#####/Library/Developer/CoreSimulator/Devices/FA264C34-054F-4D86-9D62-679DB34F63AF/data/Containers/Bundle/Application/004E0779-762B-43C4-AC08-795C0339AD70/App.app/Frameworks/AppAuth.framewo
(terminated at launch; ignore backtrace)
Crash Reports
Error building app
dyld[9610]: Library not loaded: @rpath/AppAuth.framework/AppAuth
Referenced from: <E20088D5-0655-39D9-B00F-A22EE8D3671C> /Users/user251201/Library/Developer/CoreSimulator/Devices/6AE63BE9-F919-4220-A927-D2738BA51CA6/data/Containers/Bundle/Application/F57CAD64-14DD-4E4D-8F93-CA4C16B65928/App.app/App
Reason: tried: '/Users/user251201/Library/Developer/Xcode/DerivedData/App-gfubxhvgdbqiudavsazggfgvzdja/Build/Products/Debug-iphonesimulator/AppAuth.framework/AppAuth' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21C62/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/AppAuth.framework/AppAuth' (no such file), '/usr/lib/swift/AppAuth.framework/AppAuth' (no such file, no dyld cache), '/Users/user251201/Library/Developer/CoreSimulator/Devices/6AE63BE9-F919-4220-A927-D2738BA51CA6/data/Containers/Bundle/Application/F57CAD64-14DD-4E4D-8F93-CA4C16B65928/App.app/Frameworks/AppAuth.framework/AppAuth' (no such file), '/Users/user251201/Library/Developer/CoreSimulator/Devices/6AE63BE9-F919-4220-A927-D2738BA51CA6/data/Containers/Bundle/Application/F57CAD64-14DD-4E4D-8F93-CA4C16B65928/App.app/Frameworks/AppAuth.framework/AppAuth' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21C62/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.2.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/AppAuth.framework/AppAuth' (no such file), '/usr/lib/swift/AppAuth.framework/AppAuth' (no such file, no dyld cache), '/Users/user251201/Library/Developer/CoreSimulator/Devices/6AE63BE9-F919-4220-A927-D2738BA51CA6/data/Containers/Bundle/Application/F57CAD64-14DD-4E4D-8F93-CA4C16B65928/App.app/Frameworks/AppAuth.framework/AppAuth' (no such file), '/Users/user251201/Library/Developer/CoreSimulator/Devices/6AE63BE9-F919-4220-A927-D2738BA51CA6/data/Containers/Bundle/Application/F57CAD64-14DD-4E4D-8F93-CA4C16B65928/App.app/Frameworks/AppAuth.framework/AppAuth' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21C62/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.2.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/AppAuth.framework/AppAuth' (no such file)
Apk breaks when built.
Using Xcode 15.2.
I was shutdown tvOS simulator as hold TV/Control center button and select Shutdown.
How turn on? Im trying press/hold menu/tv/any buttons, simulate not react, I see only black screen
I intend to use Apple Store Connect API for making & updating OFFER CODES in my subscription.
I have created the GET requests needed using an API Key I have generated but the POST requests are not going through and getting an error in the process.
https://api.appstoreconnect.apple.com/v1/subscriptionOfferCodes
This is the API that I am trying to hit using the POST request but the process is not going through for some reason.