1.Code Sign error: Provisioning profile ‘XXXX'can't be found
問題原因:
在Xcode中當你更新了你的認證,並且再重新編譯你的程式,真機調試一直會出現 Code Sign error: Provisioning profile ‘XXXX’ can't be found。
解決方案:
a.關閉你的項目,找到專案檔XXXX.xcodeproj,在檔案上點擊右鍵,選擇“顯示包內容”(Show Package Contents)。會新開啟一個Finder。註:其實XXXX.xcodeproj就是一個檔案夾,這裡新開啟的一個Finder裡面的三個檔案就是該XXXX.xcodeproj檔案夾裡面的檔案。
b.在新開啟的Finder中找到project.pbxproj,並且開啟。在這之中找到你之前的認證的編碼資訊。我之前報的錯誤資訊是 Code Sign error: Provisioning profile '37D44E7F-0339-4277-9A82-C146A944CD46',所以我用尋找的方式找到了所有包括37D44E7F-0339-4277-9A82-C146A944CD46的行,並且刪除。
c.儲存,重新啟動你的項目,再編譯。就OK了。
說明:我也遇到上上述問題:安裝其他程式到真機上是OK的,就是安裝一個從其他同事那拷過來的程式總是提示認證錯誤,clean也不起作用,很鬱悶。
我在按照上面方法做的時候,還有一個問題,直接從錯誤提示中右擊,選擇“copy”,然後到project.pbxproj這個檔案下去搜尋,總是提示"Not Found"。我就嘗試在錯誤上右擊,選擇"Open XXX As Transcript Text File",然後在其中拷貝37D44E7F-0339-4277-9A82-C146A944CD46,再搜尋,就可以搜尋到了。刪除三行,儲存,再編譯就OK了。
2. putpkt: write failed: Broken pipe.
解決方案: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)
問題原因:運行了多個工程,xcode無法識別。
解決方案:重啟xcode,關閉真機上的app。
4. ‘GL_MAX_SAMPLES' undeclared (first use in this function)
解決辦法:
我所遇到的問題原因是調試時出現了兩個相同的active scheme(在左上方),換成另一個就可以了。
大家有什麼問題可以留言,如果我能力範圍內我盡量幫忙解決。
真機調試教材:點擊開啟連結