我遇到的问题(四)

2020-07-06  本文已影响0人  BestVast

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
解决办法:开发者账号里面,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

原因:其中一个静态库不支持当前iOS版本
解决办法:静态库处理,在xcode中查看project --> summary --> Deployment target, 修改成合适版本,重新打包给App使用。

上一篇下一篇

猜你喜欢

热点阅读