Post

Replies

Boosts

Views

Activity

Reply to How to access files when running XCTests in Ventura. Currently I receive "unauthorised access" errors.
hello again, Thanks for your experiment and answer. Sorry for my negative question ;-) I did run my tests in Xcode. I tried in Terminal and it works...although in my case, the ability to review the test outputs in Xcode is invaluable because I have about 1800 tests in this package. So I tried your second option: I created a macOS app project next to my package. I call it <Package>Tester I added the package to test as a local package by dragging the package folder in the Xcode sidebar (see below) I added my tests to the app test node by dragging the folder containing all my test classes in the sidebar. I had to choose to add that folder as a Group. I would have preferred to add it as a Reference but Xcode does not find the test classes when using Reference. It's a shame, but I can live with that. I simply have to make sure that I add new test classes from the new <Package>Tester app and not from the package. (The package will sync when new classes are added) I made my project compile by tweaking a few things but not much When launching the tests for the first time, I get the prompt for the "Tester" app to access Removable volumes. From there it works fine. I suspect that something has changed in Ventura, maybe Monterey because I could run this test suite from Xcode, while working in the package. Maybe the xctest is the culprit. Adding TCC privileges to xctest does not work anymore Thanks for your great assistance with this. I add the layout of my Xcode project for reference below:
Oct ’22