Simulator

RSS for tag

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

Simulator Documentation

Pinned Posts

Posts under Simulator tag

359 Posts
Sort by:
Post not yet marked as solved
0 Replies
258 Views
I am using Xcode Version 15.3 (15E204a) and different versions of Simulator runtimes (17.x, 16.x, 15.0) The app makes outgoing calls and can respond to incoming calls. After starting the call, ~2s pass before a hangup occurs. In the Console logs I see that CXEndCallAction was invoked by CallKit and the last suspicious log before invoking the CXEndCallAction is callservicesd Disconnecting call because there wont be a UI to host the call: <CSDProviderCall 0x107054300 type=PhoneNumber, value=sdsddsdds, stat=Sending tStat=0, model=<TUCallModel 0x103f661e0 hold=1 grp=1 ungrp=1> ... This used to work before, but since upgrading to Xcode 15 and iOS 17.x it happens constantly on simulator versions 17.x, and sometimes on 16.x, whereas I wasn't able to reproduce it on 15.0 version. Can someone help me understand why this happens and how to fix it? I provided some logs down below, and I don't see similar logs in the cases when the call is okay and CallKit doesn't hangup it. Also, this does not happen on real devices From the time CXStartCallAction is invoked until the CallKit invokes CXEndCallAction, these are some of the error or warn logs that appear: callservicesd -AVSystemController- +[AVSystemController sharedInstance]: Failed to allocate AVSystemController, numberOfAttempts=3 callservicesd [WARN] +[AVSystemController sharedAVSystemController] returned nil value callservicesd [WARN] Not allowing requested start call action because a call with same UUID already exists callWithUUID: (omitted) callservicesd Error while determining process action for callSource: (omitted) callservicesd Determined that callSource: <CXXPCCallSource 0x103d060a0, ...>, should process action: <CXStartCallAction 0x107232760 UUID=8D34853F-55DD-4DEC-97A7-551BFD27C924, error: Error Domain=com.apple.CallKit.error.requesttransaction Code=5 "(null)" callservicesd [0x103e417a0] invalidated after the last release of the connection object callservicesd [WARN] No paired device, so unable to send message UpdateCallContext callservicesd FaceTime caller ID (null) is not a valid outgoing relay caller ID callservicesd Attempting to find a valid outgoing caller ID in set of available outgoing caller IDs {( )} callservicesd Could not automatically select an outgoing caller ID; multiple telephone numbers are listed in the set of available outgoing caller IDs {( )} callservicesd Adding call <CSDProviderCall 0x107054300 ...> to dirty calls pool callservicesd Entitlement check: ... entitlementCapabilities={( "access-call-providers", "modify-calls", "access-call-capabilities", "access-calls" )}> lacks capability 'access-screen-calls' callservicesd [WARN] ... but no dynamic identifier could be found (1) or no handoff user info exists (1). Not broadcasting frontmost call error com.apple.CallKit.CallDirectoryUnable to initialize CXCallDirectoryStore for reading: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “CallDirectory” in the folder “Library”." ... {Error Domain=NSPOSIXErrorDomain Code=13 "Permission denied"}} The logs provided are in order in which they are logged, but some of them are recurring After these logs there is still a message that CXStartCallAction is fullfilled: callservicesd Start call action fulfilled: <CXStartCallAction 0x107231fe0 UUID=8D34853F-55DD-4DEC-97A7-551BFD27C924 ...> After which the last suspicious log is logged before CXEndCallAction is invoked by CallKit: Disconnecting call because there wont be a UI to host the call: <CSDProviderCall 0x107054300 ...>
Posted
by kemica.
Last updated
.
Post not yet marked as solved
3 Replies
605 Views
Everytime when iOS simulator is launched I het a lot of repeated "*** quit unexpectedly" alerts. Where "***" is a mix of "managedappdistributiond","healthappd", and "findmylocated" Even after the simulator is launched I still het random "*** quit unexpectedly" alerts. Very annoying because the alerts deactivates the active window This is on an MacBook Pro M3 Max,, Xcode 15.2, Sonoma 14.2.1, it also happens with Xcode 15.1 A co developer (MacBook Pro M1 Max,Xcode 15.2, Sonoma 14.2.1) does not have the issue Any idea how I can prevent this from happening? Update Every mentioned service crash happens in libswiftCore.dylib at 0x1929f3938 assertionFailure(:_:file:line:flags:) + 248
Posted
by bitsflew.
Last updated
.
Post not yet marked as solved
2 Replies
251 Views
Hey. I'm a newbie in Xcode developing. I have just installed Xcode 10.2.1 on macOS 11.7.10 (20G1427) (my project cannot built on newer Xcode versions), and I guess that my copy of Xcode (or something related) is broken. Firstly, when Xcode running from Terminal, logs showing this: 2024-04-04 17:31:30.772 Xcode[1062:25499] Failed to load CoreSimulatorService. Access to simulator services will not be available. Error=Error Domain=NSPOSIXErrorDomain Code=61 "Connection refused" UserInfo={NSLocalizedDescription=CoreSimulator.framework was changed while the process was running. This is not a supported configuration and can occur if Xcode.app was updated while the process was running. Service name ((null)) does not match expected service name (com.apple.CoreSimulator.CoreSimulatorService).} 2024-04-04 17:31:30.773 Xcode[1062:36010] CoreSimulatorService connection became invalid. Simulator services will no longer be available. I tried to reinstall Xcode in /Applications, remove all Xcode-related folders, but nothing fixes. Secondly, I can't open Device Manager from Simulator. It says Not yet available. Please use simctl to manage devices. See rdar://problem/16642259. Screenshot: Please, who can help with this? (plz, sorry for my bad english :p)
Posted
by koke228.
Last updated
.
Post not yet marked as solved
1 Replies
256 Views
I have the XCode Version 15.3 (15E204a). When I try to compile my application, the following errors occur: Undefined symbol: _GDTCCTConstructiOSClientInfo Undefined symbol: _GDTCCTNetworkConnectionInfoNetworkMobileSubtype Linker command failed with exit code 1 (use -v to see invocation) Any solution to fix this issue?
Posted Last updated
.
Post not yet marked as solved
0 Replies
229 Views
if I get the string contents of a PDF and print to the console in Xcode . when run on simulator it’s fine but on device some words are missing. same PDF, same code. only difference is simulator and physical device. its only a word or two missing from the page. anyone have any experience or suggestions with PDFKit to explain why a string would be missing the odd word ?
Posted
by RyanTCB.
Last updated
.
Post not yet marked as solved
1 Replies
227 Views
Is it possible to mock the behavior of NWPathMonitor for a specific app? The scenario I want to support I've created an app called RocketSim, a developer tool for Xcode's Simulator. I've already created Airplane mode, which disables networking calls from URLSession from a specific bundle identifier app installed on the Simulator. Now, I want to support blocking NWPathMonitor as well. I believe the Simulator uses macOS's NWPathMonitor and does not use any specific HTTP request or similar to determine the reachability state. Is there a way I can make NWPathMonitor return unsatisfied when my 'airplane mode' is turned on? Potentially using a Network Extension?
Posted
by AvdLee.
Last updated
.
Post not yet marked as solved
0 Replies
239 Views
Hello everyone, my app i'm developing doesn't show up in phone settings. By default, I install the application on the phone, then it starts, but I don't see it in the phone settings. I need it in the settings to enable the use of the camera, but I won't confirm it at the moment. Thanks everyone for your help
Posted
by MORADENS.
Last updated
.
Post not yet marked as solved
2 Replies
447 Views
When building with Xcode 15 or greater to a simulator that is IOS 16 or lower I get a crash. Exception Type: EXC_CRASH (SIGABRT) Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: DYLD 4 Symbol missing Im not 100% sure it is an Xcode issue to be honest. It could be a react native issue. Everything works fine with Xcode 14.3.1 proven by my release builds through the pipeline working. Im really struggling to narrow down the issue. Any suggestions would be appreciated.
Posted Last updated
.
Post not yet marked as solved
1 Replies
295 Views
I am trying to get iPhone and watch simulator to send message to each other. I am getting this error(s) all the time: Error Domain=WCErrorDomain Code=7012 "Message reply took too long." UserInfo={NSLocalizedDescription=Message reply took too long., NSLocalizedFailureReason=Reply timeout occurred.} -[WCSession _onqueue_notifyOfMessageError:messageID:withErrorHandler:] 0F2558A6-6E42-4EF1-9223-FBC5336EE490 errorHandler: YES with WCErrorCodeMessageReplyTimedOut Is there are some guideline on how to connect them together? Maybe I a missing some step. For clarification, sometimes they do connect but it feels like pure luck. Please help.
Posted
by atamanata.
Last updated
.
Post not yet marked as solved
1 Replies
417 Views
It seems cross-device passkey authentication isn't supported by the Simulator, is that right? I can't tell if it's the simulator not supporting it, or my app/server failing. My app, running in the Simulator, presents a QR code during sign-in flow. I scan that with my phone, and it just spins "connecting…". Can anyone confirm that the Simulator just doesn't support this? What are my options for testing this flow? I guess I need another device not sign in to my AppleID.
Posted
by JetForMe.
Last updated
.
Post not yet marked as solved
0 Replies
234 Views
Hello, I am new to app development. I am trying to make an iMessage app. I created it and then added a SwiftUI view. It builds just fine and the view is visible on the storyboard, but the app is not present in iMessage on Simulator or on an actual device. What's wrong? Thanks for any help. import UIKit import Messages import SwiftUI class MessagesViewController: MSMessagesAppViewController { var hostingController: UIHostingController<CalendarView>? override func viewDidLoad() { super.viewDidLoad() } override func willBecomeActive(with conversation: MSConversation) { super.willBecomeActive(with: conversation) let swiftUIView = CalendarView() let hostingController = UIHostingController(rootView: swiftUIView) addChild(hostingController) view.addSubview(hostingController.view) hostingController.view.translatesAutoresizingMaskIntoConstraints = false NSLayoutConstraint.activate([hostingController.view.leadingAnchor.constraint(equalTo: view.leadingAnchor), hostingController.view.trailingAnchor.constraint(equalTo: view.trailingAnchor), hostingController.view.topAnchor.constraint(equalTo: view.topAnchor), hostingController.view.bottomAnchor.constraint(equalTo: view.bottomAnchor)]) hostingController.didMove(toParent: self) self.hostingController = hostingController } override func didResignActive(with conversation: MSConversation) {} override func didReceive(_ message: MSMessage, conversation: MSConversation) {} override func didStartSending(_ message: MSMessage, conversation: MSConversation) {} override func didCancelSending(_ message: MSMessage, conversation: MSConversation) {} override func willTransition(to presentationStyle: MSMessagesAppPresentationStyle) {} override func didTransition(to presentationStyle: MSMessagesAppPresentationStyle) {} }
Posted Last updated
.
Post not yet marked as solved
2 Replies
377 Views
Can anyone tell me why all the simulators (see below) are not available in a project's iOS Simulator list? As an example, I've selected "iPhone 15 Pro" on the Simulators list, but it does not appear as available in the project list of simulators. Thanks for the assistance, Jake
Posted
by javilan.
Last updated
.
Post not yet marked as solved
19 Replies
49k Views
Hello, I'm new to iOS development and I'm trying to take some screenshots of my app to submit to the App Store. I'm running Ventura 13.0.1 and XCode 14.1. So far I've used these simulators to take screenshots: 6.5 inch - iPhone 11 Pro Max 6.7 inch - iPhone 14 Pro Max 12.9 inch - iPad Pro 6th gen What I'm stuck on is getting the 5.5 inch screenshots, which are required for App Store submission. As far as I can tell from some online searching, the latest iPhone with that screen size was the 8 Plus. I've installed the oldest iOS simulator that XCode has listed (iOS 13.7), but it still won't let me run a simulator for the iPhone 8 Plus to get those screenshots. I don't have the physical device to take screenshots on. Does anyone know how to get the 5.5 inch screenshots without having to manually resize them?
Posted Last updated
.
Post not yet marked as solved
0 Replies
188 Views
I installed VisionPro's Simulator with Xcode last year, and now I want to uninstall it, but there is an xrOS1.0 disk in the disk image that cannot be erased. Later, I tried to erase the disk in MacOS recovery, but the display failed. I also tried to uninstall the xrOS1.0 disk, but I can't erase the xrOS1.0 disk. Every time I start up, a pop-up window is verifying xrOS1.0, which affects my normal use. I hope you can give me a solution. Thank you!
Posted Last updated
.
Post not yet marked as solved
6 Replies
1.1k Views
Environment: Xcode Version: 15.3 (15E204a) SDK Runtime: iOS 17.4 (17.4 - 21E213) - com.apple.CoreSimulator.SimRuntime.iOS-17-4 Issue: When calling requestTrackingAuthorization of ATTrackingManager, the completionHandler is immediately called with a value of notDetermined. This behavior is consistent even with async methods used in Runtime 14.0 and above.
Posted
by koo1993.
Last updated
.
Post not yet marked as solved
0 Replies
258 Views
I have latest version Xcode-15.1 & Mac-os version Sonoma-14.3.1 - while running particularly UITest target Xcode not launching the simulator, even after build succeed & test's completed without any errors. I tried cleaning project, re-starting Xcode, restarting system(Mac) - no luck It would be helpful if I get any suggestion on resolving the issue.
Posted Last updated
.
Post not yet marked as solved
1 Replies
200 Views
Similar to this thread: https://developer.apple.com/forums/thread/747417 I built a binary of our app and shared it with two other colleagues. One of them can drag-and.drop to install and run the app on the simulator, the other it crashes immediately on opening. The error it produces on the console isn't very clear: SpringBoard: (FrontBoard) [com.apple.FrontBoard:Process] Bootstrapping failed for <FBApplicationProcess: 0x112811c00; app<***.***.***((null))>:<invalid>> with error: <NSError: 0x600000de8540; domain: RBSRequestErrorDomain; code: 5; "Launch failed."> { NSUnderlyingError = <NSError: 0x600000de9320; domain: NSPOSIXErrorDomain; code: 1> { NSLocalizedDescription = Launchd job spawn failed; }; } His AppleID wasn't on our teams developer list but I already added him, still no luck. Not sure what else can I check, any suggestions would be appreciated.
Posted Last updated
.
Post not yet marked as solved
0 Replies
230 Views
I wish to login simulator using a sandbox account so that I can test on in-app purchase and subscription. I have created a new apple id account using a new email. I have confirmed the new apple id + password is correct, by login into https://appleid.apple.com/#!&page=signin I also added the new apple id account into App Store Connect as sandbox tester - However, I am still not able login to simulator. I am keep getting error - "Username or password is incorrect" You can see in the simulator background. I can login to https://appleid.apple.com/#!&page=signin using the new apple id + password via web browser. But, I am not sure why I am not able login into the simulator itself. Can anyone assist me on this? Thank you.
Posted
by yccheok.
Last updated
.
Post not yet marked as solved
0 Replies
318 Views
Hello. I recently started digging into IOS development with flutter. I am using a MacBook Pro 2018 (intel) and one of my colleagues (with whom we are building an app) is using a very new Pro with M3 chip. We managed to setup, build and run our test app separately. So far so good. But once we started developing our own application, using Firebase and pushing to the same repo, we started having some issues - each time one of us delivers a podfile.lock file and/or Podfile, the other gets some build issues regarding Cocoapods. I started digging and as far as I understood there are differents in how CocoaPods is built depending of the chip - Intel or M. I also checked Cocoapods' documentation - it is suggested that pod files should be under source countrol. Well, okay, but how could we do that if we are using different laptops and that leads to constant build problems? I noticed that when I pull his changes, delete podfile.lock and run pod install, I am able to build the project. But this does not sound like a fix for this... I did not find any info anywhere, so all help would be highly appreciated! Thanks!
Posted Last updated
.
Post not yet marked as solved
0 Replies
342 Views
How does one drag app icons to rearrange them on the iOS Simulator home screen? If I click and hold on an icon, the popover menu will appear and I can click Edit Home Screen, which will put the home screen into edit mode. But I can't find a way to drag the app icons. I've followed the instructions for dragging on this page, but while holding the control key shows a finger pointer, I still can't figure out how to move the app icon. I'm using a trackpad, not a mouse. I don't have a mouse to test with, but I get the same results with both the MacBook Pro internal trackpad and an external Magic Trackpad. https://help.apple.com/simulator/mac/11.0/#/deva6cdf367f
Posted
by mjcotr.
Last updated
.