項目添加證書後, 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!