xcode ios simulator: connect to smb shared folder?


I am working on an app that uses the Files app for accessing files residing on a shared smb folder (by extending the app sandbox), using Xcode version 14.2 and targeting iOS >= 15. The ability to connect to an smb share is a core part of the app’s functionality. The feature works well on a device, but I would like to do debugging and testing on the simulator, where I have access to tools such as slow animations. When I try to use “Connect to server” in the Files app on the simulator, nothing happens: i tried IP address, servername.local, localhost, 127.0.0.1, with an without an smb:// prefix, with no luck: I am completely unable to connect, and I don’t get any messages saying “cannot connect” or anything of the sort; the Connect to Server dialog just sits there, showing “Connecting…”. Ideally, I would like to connect to another machine on my LAN, or, failing that, at least to a shared folder on the machine where Xcode is running. Is this possible at all? Is there any trick to it? Can anyone offer some pointers? Thanks in advance.

Latest articles

spot_imgspot_img

Related articles

Leave a reply

Please enter your comment!
Please enter your name here

spot_imgspot_img