1. Code sign error: Provisioning profile 'xxxx' can't be found
Cause:
In xcode, When you update your certificate and re-compile your program, code sign error: Provisioning profile 'xxxx' can't be found will always appear during real machine debugging.
Solution:
A. Close your project, find the project file XXXX. xcodeproj, right-click the file, and select Show package contents ). A new finder is opened. Note: In fact, xxxx. xcodeproj is a folder. The three files in a newly opened finder are the files in the XXXX. xcodeproj folder.
B. Find project. pbxproj in the newly opened finder and open it. Find the encoding information of your previous certificate here. The error message I reported earlier is code sign error: Provisioning profile '37d44e7f-0339-4277-9a82-c146a944cd46 '. Therefore, I found all rows including signature and deleted them.
C. Save, restart your project, and compile again. OK.
Note: I also encountered the above problem: installing other programs on the real machine is OK, that is, installing a program copied from another colleague always prompts a certificate error, and "clean" does not work either, very depressing.
When I followed the above method, I had another problem. Right-click the error prompt and select "copy", and then go to the project. if the file pbxproj is searched, the message "not found" is always displayed ". Right-click the error and select "open xxx As transcript Text File". Then, copy 37d44e7f-0339-4277-9a82-c146a944cd46 and search for it. Delete the three rows, save them, and compile them again.
2. putpkt: write failed: Broken pipe.
Solution: a) Quit xcode (and therefor the gdb it is running) B) unplug devicec) delete app from device (hold icon till x appears) d) Turn off devicee) turn on devicef) Plug in device (if iTunes wants to sync, let it finish) g) Launch xcodeworked for mesolved! I have been able to reliably avoid this error completely: 1. before doing a new build, always stop the debugger first.2. then stop the app on the device.3. only after doing the above 2 steps, then build and go. that's all you need. (No need to restart xcode, restart device, delete app from device, etc .) PS. this is a bug in xcode.3.
Couldn't register XXX with the bootstrap server. Error: unknown error code.3.
This generally means that another instance of this process was already running or is hung in the debugger. (GDB)
Cause: xcode cannot identify the problem because multiple projects are running.
Solution: restart xcode and disable the app on the real machine.
4. 'Gl _ max_samples 'undeclared (first use in this function)
Solution:
The problem I encountered was that two identical active Scheme (in the upper left corner) appeared during debugging, and I could change it to another one.
If you have any questions, please leave a message. If you have any questions, try to solve them.
Real machine debugging materials: Click to open the link