1、打包時證書錯誤
“xxxx Co.,Ltd.” has 3 Apple Distribution certificates but their private keys are not installed. Contact the creator of one of these certificates to get a copy of the private key.

image.png
解決辦法:開發(fā)者賬號里面,xcode自動生成的證書太多了,刪掉自己的證書,重新打包就Ok了。
2、運行項目時App閃退
dyld: lazy symbol binding failed: Symbol not found: _objc_alloc_init
Referenced from: /Users/xxx/Library/Developer/CoreSimulator/Devices/D8AE0B3A-0E1D-4884-BD95-38CE42D4B6D3/data/Containers/Bundle/Application/BC8E7CFC-22E8-485B-BDD1-CAB8534C8D37/project.app/project
Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 11.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib
dyld: Symbol not found: _objc_alloc_init
Referenced from: /Users/xxx/Library/Developer/CoreSimulator/Devices/D8AE0B3A-0E1D-4884-BD95-38CE42D4B6D3/data/Containers/Bundle/Application/BC8E7CFC-22E8-485B-BDD1-CAB8534C8D37/project.app/project
Expected in: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 11.3.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libobjc.A.dylib
原因:其中一個靜態(tài)庫不支持當(dāng)前iOS版本
解決辦法:靜態(tài)庫處理,在xcode中查看project --> summary --> Deployment target, 修改成合適版本,重新打包給App使用。