I implemented multiple languages through Localizable.strings in the visionOS App. Now I want to test whether multiple languages can work properly, so I want to change the system language in the settings before testing, but I can't find the relevant page in the settings. What should I do?
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
Hello and happy new year to all!
I've updated Xcode but I'm having a problem installing the iOS 17.2 Simulator.
It's the 4th time I'm trying to download it, but it gives me this error:
I've also download watchOS which is successfully installed, but I can't understand why only iOS is having some issues.
If someone knows how to fix this issue, please help me, I'm unable to use Xcode without the iOS simulator :(
Thanks in advance.
In the latest updates, the app I am testing using the simulator cannot be removed. Clicking on the quick menu with the option to 'Remove App' does not yield any result. Another issue pertains to running the app.
Two out of three runs are successful, but on the third attempt, I encounter a black screen or have to wait up to 5-10 minutes before the run. Xcode status bar shows message: "Installing ... to iPhone ..." The only solution is to close and restart the simulator, which doubles the time required to work on a single feature.
App crashes when I try to run my project in simulator I am using XCode 15.1 and MacOS 14 Sonoma. I have tried different solutions.
Please help as soon as possible
Some functions cannot be tested in the normal state of the visionOS virtual machine, such as hand tracking, and I need to test these functions. Excuse me, in addition to applying for Dev Kit and participating in the laboratory, how can I test these special functions?
Hello i downloaded Xcode from the AppStore and when i try to run the Simulator, there's a message saying to GET iOS17.2 to run the Simulator, then i click on GET and when the download is ended i get this error always (See image attached)
FAILED - REGISTERING SIMULATOR RUNTIME WITH CORESIMULATOR FAILED
How can i solve this?
Many thanks for your time
Breakpoints do not work on simulators with iOS version 15.5, but they work on simulators with iOS version 17.0.1
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!
I develop an application on iOS 13.0+ and we use a proprietary SDK for maps, so our situation is a bit more specific than usual. We have always had problems with the Zoom feature, and always appreciated the ability to simulate it in the Xcode simulators. I understand I cannot do anything against this, but is there any workaround or, at least somebody that knows the reason why they are removing it ? it is disappeared also if you select a simulator with a lower deployment target. Thanks for the attention.
I was just prompted in Xcode to update/download iOS 17.2. I wasn't paying attention but I think it was downloading iOS 17.2 and then iOS 17.2 Simulator. The latter failed during "Verifying iOS 17.2 simruntime". I opened Xcode > Settings > Platforms and I see iOS 17.2, but I don't see iOS 17.2 Simulator.
Must I have both iOS 17.2 and iOS 17.2 Simulator?
Do I always have to have iOS xyz and iOS xyz Simulator present in the Platforms window?
What is the difference between the two? What's the iOS 17.2 for?
I'm not sure if having once enabled Rosetta on the Xcode simulators for older builds is a performance issue or not, but it seems like installing apps on them is slower than it used to.
I'm trying to completely remove Rosetta support on the simulators but can't figure it out. I've installed Xcode on top of the older version, removed Xcode, removed all the simulators and yet it still shows:
iPhone 15 Pro (Rosetta)
as a target.
Can someone help me remove Rosetta support on the simulators please?
I have an unusual situation. I'm working through some self study training and this particular project is a game similar to fruit ninja where things are flying around the screen and you slice through them by swiping your finger. Anyway the instructor provided a series of "*.caf" files for various sounds while playing the game. For some reason I can't hear any of the sounds on my personal Mac when running the app via Xcode to either an iOS iPad simulator or to a real iPad that I have attached to my mac and setup for developer use in Xcode.
Yes sound is working on the mac (hear new email come in etc. and can play videos in the browser).
In the iPad simulator I can play youtube videos in mobile safari. While adjusting the sound doesn't seem to raise or lower the volume I can hear the audio in the youtube videos.
On the real iPad: yes the sound is on and I can hear audio while playing videos in the browser etc.
Lastly, I pushed the code up to GitHub and pulled it to my work Mac. There the sound plays just find in the iOS iPad simulator on that Mac (not allowed to attach my personal iPad to my work mac so can't try the iPad there). So I fell like this confirms the code is correct for playing the sounds in the running app.
Oh, and I can select the file in left nav and click the little play button icon to hear it played in Xcode.
so, I feel like this is an issue on my personal Mac with Xcode etc., but I'm at a loss as to what the issue is. Can anyone suggest some things to look for on my Mac to get sound working in this app?
if you want to see the code it's here and the free training i'm following is at https://www.hackingwithswift.com/100/77.
TIA
Hi dear all,
I have just started working with Xcode and I am trying to download the iOS simulator to run my code on.
When downloading it shows the size being 7.21GB, but when installing it it says my Disk is too full when my disk has at least 20GB available space.
Here is the error message I get:
Registering simulator runtime with CoreSimulator failed.
Domain: DVTDownloadableErrorDomain
Code: 29
User Info: {
DVTErrorCreationDateKey = "2023-12-05 09:08:19 +0000";
}
Cannot copy the image because the disk is almost full
Domain: com.apple.CoreSimulator.simdiskimaged.SimDiskImageError
Code: 14
System Information
macOS Version 13.6 (Build 22G120)
Xcode 15.0.1 (22266) (Build 15A507)
Timestamp: 2023-12-05T17:08:19+08:00
Any help or direction is very appreciated.
Thank you,
Misael
I updated my Mac Air M1 to Sonoma 14.1.2 (23B92)
The Simulator was slow and stuck.
It wasn't like this before the update
Hello,
I am trying to test a speech to text feature in several iPhone simulators, but microphones don't seem to work.
The microphone and speech recognition permissions are correctly asked for the feature. My internal and external microphones are detected in I/O options in simulators. But nothing happens when I launch the recognition.
The recognition doesn't work also for speech to text in native messages keyboard or Siri. This problem is the same for all the simulators so I believe the issue is about Xcode permissions not accessing microphone.
In my settings > Privacy & Security > Microphone : can't see Xcode
(Considering an other issue, I can't see Xcode Source Editor in Extensions as well)
I've already tried to uninstall and reinstall Xcode.
I use Xcode 15.0.1 under Sonoma 14.1.2.
Any help is welcome.
I am unable to switch from iPhone 15(IOS 17 sim) to iPhone 14 pro(IOS 16.4 sim). I have both iOS 17 and iOS 16.4 simulators installed
p.s : Trying to switch to IOS 16.4 sim because 17 causes my M2 Air overheat alot to the extent that i can't touch it.
I have noticed that, as of late, the iOS simulator has been incredibly slow. Even simple (and perhaps silly) actions like changing the wallpaper take an unreasonably long time, to the point where it is no longer clear whether the process has hanged. I tried to change the wallpaper to a photo of mine, but it simply would not appear.
Even booting up takes several seconds, and home screen animations are laggy. I've given up on testing my build for now.
I have tried with an iPhone Xr and an iPhone 15 Pro simulator - both running iOS 17.0. Both are extremely laggy. This is on an M1 MacBook Air running the stable version of macOS Sonoma 14.0. with Xcode version 15.0.1 and Simulator version 15.0.1. I have checked the Activity Monitor for CPU and RAM. There is nothing abnormal.
I would appreciate any suggestions.
When use Xcode15 and iOS 14 simulator to run app, it will crash, and the crash stack is:
Thread 1 Queue : com.apple.main-thread (serial)
#0 0x0000000104b074a5 in __cxx_global_var_init.4 ()
#1 0x000000014fb6ec95 in ImageLoaderMachO::doModInitFunctions(ImageLoader::LinkContext const&) ()
#2 0x000000014fb6f08a in ImageLoaderMachO::doInitialization(ImageLoader::LinkContext const&) ()
#3 0x000000014fb69bb7 in ImageLoader::recursiveInitialization(ImageLoader::LinkContext const&, unsigned int, char const*, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) ()
#4 0x000000014fb67ec7 in ImageLoader::processInitializers(ImageLoader::LinkContext const&, unsigned int, ImageLoader::InitializerTimingList&, ImageLoader::UninitedUpwards&) ()
#5 0x000000014fb67f68 in ImageLoader::runInitializers(ImageLoader::LinkContext const&, ImageLoader::InitializerTimingList&) ()
#6 0x000000014fb5b26b in dyld::initializeMainExecutable() ()
#7 0x000000014fb5ff56 in dyld::_main(macho_header const*, unsigned long, int, char const**, char const**, char const**, unsigned long*) ()
#8 0x000000014fb5a1c2 in start_sim ()
#9 0x000000024760e424 in dyld4::prepareSim(dyld4::RuntimeState&, char const*) ()
#10 0x000000024760cabc in dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) ()
#11 0x000000024760c3bd in start ()
And I found two same issues:
1.https://issuetracker.google.com/issues/301372178; 2.https://github.com/realm/realm-swift/issues/8369
From these two issue, I know Xcode15 use new linker(ld_prime), and not support iOS <15;
So if we want to support iOS 14, we only have one solution that add the -Wl,-ld_classic options to the OTHER_LDFLAGS?
And for now, the crash only happened in iOS 14 simulator, but will it affect the iPhone device if we don't add the -Wl,-ld_classic options to the OTHER_LDFLAGS?
I am developing an iOS app using SwiftUI and have encountered an Auto Layout constraint conflict issue that appears when tapping on a TextField within a LoginView. I've tried several troubleshooting steps but haven't been able to resolve it.
Error Message:
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x6000021298b0 'accessoryView.bottom' _UIRemoteKeyboardPlaceholderView:0x10460dd10.bottom == _UIKBCompatInputView:0x1059220e0.top (active)>",
"<NSLayoutConstraint:0x60000217a620 'assistantHeight' SystemInputAssistantView.height == 45 (active, names: SystemInputAssistantView:0x10591ce60 )>",
"<NSLayoutConstraint:0x60000217d090 'assistantView.bottom' SystemInputAssistantView.bottom == _UIKBCompatInputView:0x1059220e0.top (active, names: SystemInputAssistantView:0x10591ce60 )>",
"<NSLayoutConstraint:0x60000217d040 'assistantView.top' V:[_UIRemoteKeyboardPlaceholderView:0x10460dd10]-(0)-[SystemInputAssistantView] (active, names: SystemInputAssistantView:0x10591ce60 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x60000217d040 'assistantView.top' V:[_UIRemoteKeyboardPlaceholderView:0x10460dd10]-(0)-[SystemInputAssistantView] (active, names: SystemInputAssistantView:0x10591ce60 )>
This error appears in the console when I click on the TextField in my LoginView while running the code on a simulation. The app doesn't crash, but the console indicates there is a constraint conflict related to the keyboard. Here's my LoginView:
struct LoginView: View {
@StateObject var viewModel = LoginViewModel()
var body: some View {
NavigationStack {
VStack {
Spacer()
Image("logo")
.resizable()
.scaledToFit()
.frame(width: 150, height: 100)
VStack {
TextField("Enter your email", text: $viewModel.email)
.autocapitalization(/*@START_MENU_TOKEN@*/.none/*@END_MENU_TOKEN@*/)
.modifier(TextFieldModifier())
SecureField("Enter your password", text: $viewModel.password)
.modifier(TextFieldModifier())
}
Button {
print("Show forgot password")
} label: {
Text("Forgot Password")
.font(.footnote)
.fontWeight(.semibold)
.padding(.top)
.padding(.trailing, 20)
}
.frame(maxWidth: .infinity, alignment: .trailing)
Button {
Task { try await viewModel.signIn() }
} label: {
Text("Login")
.font(.subheadline)
.fontWeight(.semibold)
.foregroundColor(.white)
.frame(width: 360, height: 44)
.background(Color(.black))
.cornerRadius(8)
}
.padding(.vertical)
HStack {
Rectangle()
.frame(width: (UIScreen.main.bounds.width / 2) - 40, height: 0.5)
Text("OR")
.font(.footnote)
.fontWeight(.semibold)
.foregroundColor(.gray)
Rectangle()
.frame(width: (UIScreen.main.bounds.width / 2) - 40, height: 0.5)
}
.foregroundColor(.gray)
HStack {
Image("facebook_logo")
.resizable()
.frame(width: 20, height: 20)
Text("Continue with Facebook")
.font(.footnote)
.fontWeight(.semibold)
.foregroundColor(Color(.systemBlue))
}
.padding(.top, 8)
Spacer()
Divider()
NavigationLink {
AddEmailView()
.navigationBarBackButtonHidden(true)
} label: {
HStack (spacing: 3) {
Text("Don't have an account?")
Text("Sign Up")
.fontWeight(.semibold)
}
.font(.footnote)
}
.padding(.vertical, 16)
}
}
}
}
#Preview {
LoginView()
}
And my TextFieldModifier:
struct TextFieldModifier: ViewModifier {
func body(content: Content) ->some View {
content
.font(.subheadline)
.padding(12)
.background(Color(.systemGray6))
.cornerRadius(10)
.padding(.horizontal, 24)
.padding(.top)
}
}
Attempts to Resolve:
I've checked the TextFieldModifier for any potential issues but it seems standard.
I've tried simplifying the view by removing other elements, but the issue persists.
The issue seems to occur regardless of the simulator device or iOS version I use.
Questions:
What could be causing this Auto Layout constraint conflict in a SwiftUI app?
Are there any known issues with SwiftUI's TextField and keyboard interactions that might lead to such constraints issues?
Any suggestions on how to debug or resolve this constraint conflict?
My device has an M2 Max chip, and I am using Xcode version 15.1 Beta 3. My app runs normally in iOS and iPad simulators, but when I attempt to run it in the Vision Pro simulator, even though the compilation is successful, a dialog box appears stating, 'AppName's architectures (Intel 64-bit) include none that Apple Vision Pro can execute (arm64).' Consequently, the app is not successfully installed in the Vision Pro simulator. Additionally, my project uses Cocoapods for dependency management. I would appreciate any help, thank you!