Thanks
Zipzy Games
o
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
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.'
xcode 15.2, mac m2 mini, 14.2.1 sonoma
i need a pdf file to stage my app for screen shots for the market. icloud wont sync, cant drag files to the home screen or any screen, it just does not work.
i am at the end of my rope here, i just need some screen shots, my app is approved and ready
am i wrong>? is there a way to do this or is it just broken now in the name of (lazy) security?
edit--the more i read the more i angry and frustrated i get. this is broken and will not be fixed. i need to just workaround via email. so happy my second 100 dollar developer subscription bill is coming up!
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.
=> Cannot copy the image because the disk is almost full
The disk of my Mac is not full. Or is it another logical disk? Every time I try to install the iOS 17.0 simulator (21A5303d) it creates a copy of itself and fails. It is filling my HD and I do not know how to delete those files. And it differs by the last letter. Different versions?
Registering simulator runtime with CoreSimulator failed.
Domain: DVTDownloadableErrorDomain
Code: 29
User Info: {
DVTErrorCreationDateKey = "2023-08-09 20:41:08 +0000";
}
Cannot copy the image because the disk is almost full
Domain: com.apple.CoreSimulator.simdiskimaged.SimDiskImageError
Code: 14
--**
System Information
macOS Version 14.0 (Build 23A5312d)
Xcode 15.0 (22004) (Build 15A5219j)
Timestamp: 2023-08-09T17:41:08-03:00
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.
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.
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
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 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.
On Xcode 15 (released version), the iOS 17 Simulator will stall / lag as soon as an AVAudioPlayer is initialized.
let audioPlayer = try AVAudioPlayer(contentsOf: URL)
audioPlayer.volume = 1.0
audioPlayer.delegate = self
audioPlayer.prepareToPlay()
Typically you would not notice this in a music app for example, but it is especially noticable in games where multiple sounds are being played using multiple instances of AVAudioPlayer. The entire app slows down because of it.
It works fine on real devices and on iOS <=16 Simulators.
I noticed that the iOS 17 simulator immediately shows an error in the console:
66.051 HALC_ProxyIOContext.cpp:1.329 HALC_ProxyIOContext::IOWorkLoop: skipping cycle due to overload
and in the past iOS Simulators have been having trouble with audio.
Unfortunately I cannot find a solution. Anyone?
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
When I play a m4a file on the new iOS 17 Simulator (17.0 and 17.2), the following error message appears and there is a noticeable lag on the simulator.
The error and the lag don't happen on a real device (iOS 17.2) or the 16.4 simulator. This significantly affected my development experience as when there's a sound, I can't tell whether there's a performance issue of my code or not.
Error Message:
AudioQueueObject.cpp:5933 DetermineMetadataTimestamp unable to obtain valid timestamp, estimate:33506.000000
Code:
var player: AVAudioPlayer!
let url = Bundle.main.url(forResource:"k-be", withExtension: "m4a")!
if player != nil { player?.stop() player = nil }
player = try AVAudioPlayer(contentsOf: url)
guard let player = player else { return }
player.play()
Here's the Feedback ID:
FB13473463 (iOS 17 Simulator: Error Message and lag when playing audio via AVAudioPlayer)
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
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.
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.