Run custom shell script '[cp] embed pods frameworks ..... errSecInternalComponent

項目添加證書後, clean 然後 打包, 一直報錯: Run custom shell script '[cp] embed pods frameworks .....  errSecInternalComponent  看起來好像是AFnetworking的錯,

原因:  這似乎是簽名機制(code signing mechanism) 的 bug, Xcode 中賬號多了,就會產生很多過期的PP文件,Xcode 沒有自帶刪除功能會導致重複導入provisioning profile.

解決辦法: 

      1. Xcode 中所有的PP文件,都在 ~/Library/MobileDevice/Provisioning Profiles  這個文件夾下;進入該文件夾,刪除不需要的

                打開 ~/Library/MobileDevice 文件夾的方法: 在 Finder 中 command + shift + G, 粘貼 ~/Library/MobileDevice 然後點擊前往

      2.  重啓Mac!

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章