Unable to run XCTests on iOS device

前端 未结 1 824
迷失自我
迷失自我 2021-01-29 00:01

I\'ve recently noticed that I can\'t run tests on my iOS devices. I\'ve tried on both an iPhone 5 and an iPhone 6. Both fail with an error like this:

2015-07-13          


        
相关标签:
1条回答
  • 2021-01-29 00:36

    So... despite my belief to the contrary, this is a code-signing issue. Manually setting the provisioning profile on the test target (not the product target) in Xcode got my test up and running through the device.

    The test fails in a new and unexpected (something semaphore-related) way compared to the iOS Simulator, but that's a whole different discussion.

    Hope this helps somebody.

    0 讨论(0)
提交回复
热议问题