Real machine test: can build successfully, but Error app installation failed A valid provisioning profile for this executable is not found.
APP installation failed, this executable program does not have a valid second speed file. I clearly chose the description of the document, Ah, what the nerve.
Really is xcode to make a nerve, we really machine test, not like before the need to configure the udid of the phone, the description file needs Xcode automatically configure your phone information, this can be verified, in the developer center, after running the real machine, The name of your phone is in the Devices list in the developer center.
Therefore, this step is necessary for automatic configuration.
Development needs to be constantly tested, simulators, real machines, packaged for others to test.
Just run the program and make the next few
Premise:
Project--> APP NAME--general--building setting
Targects--> app NAME-to-general--building setting code signing identity settings, Debug Development certificate, Release release certificate, free APP LeID here is the automatic line.
1. Simulator
In general, the direct run simulator is available, it is better to
Target----signing set to Automatic, automacitcally manage signing tick on??
2. Real Machine
Target----signing set to Automatic, automacitcally manage signing tick on??
3, hit test package Archive
Target----signing set to automacitcally manage signing do not tick on
Which tick off automacitcally manage signing after the red, to manual bar provisioning profile selected, you re-download or install. Then building
If not, first completely out of Xcode, yes, the nerve to go back to the background to reflect on it, and then directly delete all the description file:
1. Open Finder
2, cmd + SHIFT + G
3. Paste a path ~/library/mobiledevice/provisioning\ profiles/to the search box
4. Delete all
5. Restart Xcode cmd + to open preferences
6. Accounts---check the required AppID--Download manual profiles
Build again.
Xcode 9, real-computer testing, APP installation failed