I am trying to run unit tests for a Mac application in xcode 5.0.
Testing the device is working fine, if my sandbox is disabled, but as soon as I turn on the test environment, the tests cannot be run, error with the error loading package (IDEBundleInjection.c: Error loading the package).
I saw several other posts about this error and it seems like a general assumption is that this will not work. The proposed solution is to create a new configuration in xcode with the sandbox disabled and run tests with this configuration.
This works, of course, but it seems like a bad workaround, since it will run tests in a different environment than a regular application, and as a rule, it will be absent from the whole category of errors that arise due to different permissions, directories, etc. .d.
I can hardly believe that Apple intended developers to disable the sandbox for testing, it seems very near. Has anyone understood the best solution for running unit tests for an application designed to work in sandbox mode?
source
share