Bonjour je travaille sur main storyboard mais quand je mets un bouton pour aller de mon View controller à un autre View controller. J'appuie sur control, je clique show et je ***** sur le simulateur iOS 17 ( iPhone 14 pro max ) et quand je clique sur mon bouton ça me fait un segue Present Modally.
Comment puis je faire pour avoir un vraie segue show à la place d'un segue Present Modally.
Merci
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
Launching lib/main.dart on iPhone 14 Pro in debug mode...
Running Xcode build...
Xcode build done. 26.9s
Failed to build iOS app
Error (Xcode): No such file or directory: 'Metal'
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro.
When using Xcode 15 beta 8 / iOS 17 beta 8 simulator runtime, we can see in Activity Monitor that memory used by "SimRenderServer" proccess grows significantly with each UI test run.
It reproduces even on an empty test, that just wait for a second without launching the application.
Memory usage doesn't go down when test run finishes, so each consecutive run adds more to it.
For example, create an new project with a UI test
// The contents of the test don't actually matter
func testExample() async throws {
try await Task.sleep(for: .seconds(1))
}
Run this test repeatedly 100+ times and observe the "SimRenderServer" process in the Activity Monitor.
From what we observed it only reproduces when "Preferred Capture Format" in the test plan configuration is set to "Video". Setting it back to "Screenshot" does no result in growing memory usage.
This was reproducible on macOS Sonoma beta / macOS Ventura 13.5.1.
Feedback was submitted FB13098749.
Hello,
We have an API that wraps around Game Center API and we would like to have automated tests for our API. The test would need to run in a remote data center, so there is no way to perform manual test steps.
Ideally, we would want to simulate sign in and sign out, test achievements and game saves without the need for any manual input.
Running in the simulator should be enough for our use case, though we could also use real devices if necessary.
Is there any way to accomplish that?
An iOS app running in simulator has complete access to the Mac's file system:
// Files in protected directory like Desktop, Documents, Calendar, etc will need additional permissions.
let filesInSystem = FileManager.default.enumerator(at: .currentDirectory(), includingPropertiesForKeys: nil)?.allObjects
This isn't the case when running in device as the app is sandboxed. Is the same possible when running in simulator? More specifically, is there a way to restrict access to the Mac's file system when running an app in the Simulator? This is particularly useful when trying out binaries/frameworks that are not open sourced.
It's 2023, the latest MacOS is Ventura, and the latest Xcode Version is 14.3.1.
Here's how I solved this problem:
MacOS System Setting > Search for "Storage" > Click on "Developer" > Delete XCode Cache
Hope this helps someone!
I have generated a box in RealityKit with splitFaces property set to true to allow different materials on each cube side.
Applying different SimpleMaterials (e.g. with different colors) works fine on Vision Pro simulator. But combining VideoMaterial and SimpleMaterial does not work. BTW: a 6x video cube can be rendered successfully so the problem seems to be mixing material structures.
Here's my relevant code snippet:
let mesh = MeshResource.generateBox(width: 0.3, height: 0.3, depth: 0.3, splitFaces: true)
let mat1 = VideoMaterial(avPlayer: player)
let mat2 = SimpleMaterial(color: .blue, isMetallic: true)
let mat3 = SimpleMaterial(color: .red, isMetallic: true)
let cube = ModelEntity(mesh: mesh, materials: [mat1, mat2, mat3, mat1, mat2, mat3])
In detail, the video textures are shown whereas the simple surfaces are invisible.
Is this a problem of Vision Pro simulator? Or is it not possible to combine different material structures on a box? Any help is welcome!
I am using a MacBook Pro 13-inch 2020 (i5, 8GB RAM, 256GB SSD) and using Xcode and Simulator to build my first app. However, when I run the Simulator, my MacBook freezes, and I can't do anything other than performing a hard restart (my project is very simple because I'm just learning Swift and SwiftUI). Has anyone encountered a similar issue, and how did you resolve it?
I've been using Xcode from version 13 up to the current version (14.3.1), and this issue continues to happen. Could it be that my MacBook is too old to build Swift projects?
I have a few problems with the visionOS Simulator.
The visionOS simulator does not show up the World Sense permission Pop-up Window, although I have entered the NSWorldSensingUsageDescription in the info.plist. As a result, my app always crashes in the visionOS simulator when I want to run the PlaneDetectionProvider or the SceneReconstructionProvider on my AR session with the Error: „Plane D“
So I can’t test ARKit features in my simulator.
But I have already seen a few videos in which ARKit functions - such as the PlaneDetection - work in the simulator, as in the video I have attached here.
Have you had similar experiences to me, or does it work for you without any problems?
I have a few problems with the visionOS Simulator.
The visionOS simulator does not show up the World Sense permission Pop-up Window, although I have entered the NSWorldSensingUsageDescription in the info.plist. As a result, my app always crashes in the visionOS simulator when I want to run the PlaneDetectionProvider or the SceneReconstructionProvider on my AR session with the Error: 'ar_plane_detection_provider is not supported on this device.'
So I can’t test ARKit features in my simulator.
But I have already seen a few videos in which ARKit functions - such as the PlaneDetection - work in the simulator, as in the video I have attached here.
Have you had similar experiences to me, or does it work for you without any problems?
https://www.youtube.com/watch?v=NZ-TJ8Ln7NY&list=PLzoXsQeVGa05gAK0LVLQhZJEjFFKSdup0&index=2
Dear community,
I've been learning Swift, currently reading "Development Swift Fundamentals" (page 484).
I have added 2 items to the tab bar controller. If I use one of the default "system items" (icon+label), it works fine in the simulator. However, if I change that to "Custom" and choose a different icon from the "Selected Image" menu, it shows that normally in Xcode but it does not show that at all in the Simulator or in my iPhone. Please see the images attached.
Any thought?
Please find below how I see that in the Simulator (or in my iPhone):
Thanks,
Rodrigo
Anyone else seeing this? See attached screenshot.
Xcode 15 RC released today:
Fresh macOS Sonoma install, only Xcode 15 and default simulator. When first launching, it shows progress bar on iPhone for about 10 minutes. After, it shows a desktop for a second and goes into dark screen.
To mention, simulators on Xcode betas were fine.
MacBook Air M1
Hello,
Xcode 15 Release Candidate was released yesterday, but I have issues when using the iPhone 15 Pro and 15 Pro Max simulators. When I want to set system language and region from settings app, it crashes immediately when opening the settings app.
Note: no issue with iPhone 15 simulator.
Any solution to fix this issue ?
Thanks.
Hi, I get anytime crash on the Settings app for iPhone 15 Pro and iPhone 15 Pro Max on Xcode 15 RC.
Translated Report (Full Report Below)
Incident Identifier: DE1BE6D0-4367-4203-A339-1AE20D50218A
CrashReporter Key: 1A043114-8ED1-1A39-B80C-A3825853E7D7
Hardware Model: MacBookPro18,2
Process: Preferences [80787]
Path: /Library/Developer/CoreSimulator/Volumes/iOS_21A328/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.0.simruntime/Contents/Resources/RuntimeRoot/Applications/Preferences.app/Preferences
Identifier: com.apple.Preferences
Version: 1 (1246.2)
Code Type: ARM-64 (Native)
Role: Foreground
Parent Process: launchd_sim [80318]
Coalition: com.apple.CoreSimulator.SimDevice.A989B9A5-9C97-40A3-9082-998713FB7EAB [9443]
Responsible Process: SimulatorTrampoline [51087]
Date/Time: 2023-09-13 16:09:55.5678 +0300
Launch Time: 2023-09-13 16:09:53.8486 +0300
OS Version: macOS 13.5.2 (22G91)
Release Type: User
Report Version: 104
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: Preferences [80787]
Triggered by Thread: 10
Last Exception Backtrace:
0 CoreFoundation 0x18046589c __exceptionPreprocess + 160
1 libobjc.A.dylib 0x18005c09c objc_exception_throw + 56
2 CoreFoundation 0x180350b68 -[__NSPlaceholderArray initWithObjects:count:] + 552
3 CoreFoundation 0x1804508b8 +[NSArray arrayWithObjects:count:] + 36
4 ActionButtonSelector 0x127b6c5ac ABLoadDeviceSceneModel + 2280
5 ActionButtonSelector 0x127b677e4 -[ABDeviceSceneResourceLoader _loadResources] + 68
6 ActionButtonSelector 0x127b673f0 __59-[ABDeviceSceneResourceLoader loadResourcesWithCompletion:]_block_invoke + 40
7 libdispatch.dylib 0x1801424f4 _dispatch_call_block_and_release + 24
8 libdispatch.dylib 0x180143d3c _dispatch_client_callout + 16
9 libdispatch.dylib 0x18014be3c _dispatch_lane_serial_drain + 960
10 libdispatch.dylib 0x18014c9b4 _dispatch_lane_invoke + 388
11 libdispatch.dylib 0x180157d40 _dispatch_root_queue_drain_deferred_wlh + 276
12 libdispatch.dylib 0x18015738c _dispatch_workloop_worker_thread + 448
13 libsystem_pthread.dylib 0x1062e3878 _pthread_wqthread + 284
14 libsystem_pthread.dylib 0x1062e263c start_wqthread + 8
Thread 0:: Dispatch queue: com.apple.shortcuts.VCVoiceShortcutClient.InternalState
0 libsystem_kernel.dylib 0x1063c91d0 mach_msg2_trap + 8
1 libsystem_kernel.dylib 0x1063da298 mach_msg2_internal + 76
2 libsystem_kernel.dylib 0x1063d13d8 mach_msg_overwrite + 540
3 libsystem_kernel.dylib 0x1063c9540 mach_msg + 20
4 libxpc.dylib 0x1800a9b2c _xpc_pipe_mach_msg + 52
5 libxpc.dylib 0x1800a9028 _xpc_pipe_routine + 396
6 libxpc.dylib 0x180089e60 _xpc_interface_routine + 168
7 libxpc.dylib 0x18008a4a0 _xpc_look_up_endpoint + 264
8 libxpc.dylib 0x1800923e4 _xpc_connection_bootstrap_look_up_slow + 296
9 libxpc.dylib 0x180095174 _xpc_connection_init + 724
10 libxpc.dylib 0x180092a8c _xpc_connection_activate_if_needed + 300
11 libxpc.dylib 0x180093cd4 xpc_connection_resume + 92
12 VoiceShortcutClient 0x196b0ebf8 -[VCVoiceShortcutClient unsafeSetupXPCConnection] + 308
13 VoiceShortcutClient 0x196b10554 __81-[VCVoiceShortcutClient asynchronousRemoteDataStoreWithErrorHandler:synchronous:]_block_invoke + 200
14 libdispatch.dylib 0x180143d3c _dispatch_client_callout + 16
15 libdispatch.dylib 0x180153dc8 dispatch_sync_invoke_and_complete_recurse + 96
16 libdispatch.dylib 0x180153778 dispatch_sync_f_slow + 188
17 VoiceShortcutClient 0x196b0e584 -[VCVoiceShortcutClient asynchronousRemoteDataStoreWithErrorHandler:synchronous:] + 156
18 VoiceShortcutClient 0x196addb44 -[VCVoiceShortcutClient(Staccato) fetchAvailableStaccatoActions:] + 92
19 ActionButtonConfigurationUI 0x10549c2d0 0x105488000 + 82640
20 Combine 0x19e00dbd8 specialized Future.init(:) + 224
21 Combine 0x19e00b4a0 Future.init(:) + 20
22 ActionButtonConfigurationUI 0x1054a295c 0x105488000 + 108892
23 ActionButtonConfigurationUI 0x10549837c 0x105488000 + 66428
24 PreferencesUI 0x104bd7c3c 0x104bb0000 + 162876
25 PreferencesUI 0x104bc5b54 -[PSUIPrefsListController tableView:cellForRowAtIndexPath:] + 260
26 UIKitCore 0x114e3dfc4 -[UITableView _createPreparedCellForGlobalRow:withIndexPath:willDisplay:] + 1376
27 UIKitCore 0x114e11134 -[UITableView _updateVisibleCellsForRanges:createIfNecessary:] + 560
28 UIKitCore 0x114e1174c -[UITableView _updateVisibleCellsNow:] + 1112
29 UIKitCore 0x114e2b53c -[UITableView layoutSubviews] + 144
30 UIKitCore 0x115126b1c -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1492
31 QuartzCore 0x1884d3dd4 CA::Layer::layout_if_needed(CA::Transaction*) + 440
32 QuartzCore 0x1884deb30 CA::Layer::layout_and_display_if_needed(CA::Transaction*) + 124
33 QuartzCore 0x1883fa3bc CA::Context::commit_transaction(CA::Transaction*, double, double*) + 460
34 QuartzCore 0x188429bf0 CA::Transaction::commit() + 652
35 UIKitCore 0x114c2c504 __34-[UIApplication _firstCommitBlock]_block_invoke_2 + 32
36 CoreFoundation 0x1803c6464 CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK + 20
37 CoreFoundation 0x1803c5bac __CFRunLoopDoBlocks + 352
38 CoreFoundation 0x1803c0450 __CFRunLoopRun + 788
39 CoreFoundation 0x1803bfd28 CFRunLoopRunSpecific + 572
40 GraphicsServices 0x18986ebc0 GSEventRunModal + 160
41 UIKitCore 0x114c13fdc -[UIApplication _run] + 868
We run our UI tests in parallel on 3 simulators, and I noticed, that the first one starts executing tests way faster then the rest (because others are still booting, I guess). Also we have our backend server running locally which is used in UI tests. And here comes the problem - I noticed that tests on first simulator are often failing because of the problems with local backend(requests take much more time than usual) exactly in period when other simulators are still booting(tests stop failing when all 3 simulators started running tests). When I tried running tests without parallel simulators problems with backend disappear. So my guess is that simulators booting they take some resources(CPU, memory) which interferes with backend. So my question is there some way to start executing tests only when all parallel simulators are booted?
As the title suggests, I cannot open the Settings app on the iOS 17 simulator.
Therefore, I cannot make changes to settings such as language and region.
Will this bug be fixed?
I have two apps which uses the CloudKit public folder so that my users can access data. There's also a private database for them to save data. One is supposed to be able to access the public database without being logged into an iCloud account. And it was working fine. But now, with the simulator, I get the titled error message. It's fine on a device. But, if I log into the simulator with my iCloud account, I can access the public data.
Hi,
I just realized that all logs from the watchOS 10 simulator are not showing in the Xcode 15 console. When I run the same code to log on the iOS simulator the output is showing as expected.
Here's my sample code
os_log("Test OSLog", type: .debug)
os_log(.debug, "Test OSLog 2")
if #available(watchOS 7.0, *) {
Logger(subsystem: "Test", category: "Test").debug("Test Logger OSLog")
}
None of the log functions above leads to any output in the console window in Xcode.
Did anyone find a solution for that? I did not find anything about it so far in any other posts.
I'm still on the last Beta, but will update to RC soon.
Running iOS 17 simulator crashes or is extremely slow or freezes. Using Xcode on M2 MacMini 8 gb RAM, 1TB HD.