Application's and Test's info.plist has:
App Transport Security Settings:
Allows Local Networking: True
Privacy - Local Network Usage Description
Thanks
I don’t see an easy way around this. In a unit test you can avoid this issue by hosting the unit test within your app, but that’s tricky for a UI test.
What sort of network access patterns do your tests need? If it’s just a matter of setting things up in advance, you could do that from your Mac prior to running the test. But if it’s an interactive sequence — set up the accessory, run a test, set up the accessory in a different way, run the test, and so on — that won’t work.
Another option might be to run a proxy on the Raspberry Pi and configure your test device to use that proxy.
Regardless, I think you should file a bug against Xcode’s testing infrastructure. The local network privacy feature was not created to protect users from UI test code (-:
Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@apple.com"