Ios10+xcode8 problems with real-machine testing
Today the iphone and Xcode are updated to the latest version, the real-time debugging with a direct prompt two error:
1.BDVRClientSample requires a provisioning profile. Select a provisioning the "Debug" build configuration in the Project editor.
2.Code signing is required for product type ' application ' in SDK ' IOS 10.0 '
The first one is simply inexplicable, my application is to study Baidu Voice demo, but before the need to debug so much;
The second Baidu answer is: Select Project->build Settings, code Signing, code Signing Identity, Debug, any iOS SDK will change the option to: Iphon E Developer. No hair, and it can't be changed to iphone Developer
Tried other equipment iOS10 below all can run, is iOS10 not.
However I have solved.
SOURCE Citation: http://stackoverflow.com/questions/37806538/ Code-signing-is-required-for-product-type-application-in-sdk-ios-10-0-stic (the average person is good for the text)
The following is the Gao Chinese version
1. Holy Molly, I had to do it all in order to work. A picture is worth 1000 words. If you get this error archive then continue reading.
2. Go to your application and click on the General tab. The undersigned section cancels "Automatic management signing". Once you do this you will get a status of the red error as shown below.
3. Now this is a tricky part and you need to cancel the "auto manage signing" target in your project. This step is very important.
4. Now under "Build Settings" tab under each target and set the identity of code signing under "iOS developer". Do the same steps for your project.
5. Now Xcode-> (product) product-> (empty) clean. Close your project in Xcode, again. The essential!!!
6. After this go to your each goal of the General tab, and check the "Auto Manage signature" and the team dropdown to select your developer account.
7. Archive your project and everything should work. Is it really an apple? This is to make our life easier? Select the configuration profile for debug in the project build configuration Editor. (The foreign aid ends here)
If your project is written by yourself, then you should be able to run it (yourself), and if the project is to refer to a demo (demo) running someone else, then proceed to the next step.
8. Replace the package identifier of your newly created project in General->bundle Ldentifier to have the compiler run the program under your name.
Note whether the project is running on the emulator or running on the real machine!
Ios10+xcode8 real-machine test problems