I have an Xcode workspace with unit test targets. The unit tests run fine in the simulator, and also run fine on one of my devices (a 4th-gen iPod touch running iOS 6). However, on two other devices (an iPad Air and a 5th-gen iPod touch running iOS 7), when I try to run unit tests I get an alert saying
A valid provisioning profile for this executable was not found
I only get this when running unit tests. If I try to Run the app on these devices, it installs and runs fine.
I have verified that the (developer) provisioning profile set in the Code Signing build settings for the app includes these devices and that it matches my developer code-signing identity and the App ID. I have also tried recreating, re-downloading, and re-installing the profile.
Where should I look? Why would the provisioning profile for Test not be valid when it is valid for Run?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…