Loading

xcframework编译失败,其中iOS simulator framework成功,device framework失败

脚本编译xcframework会报错,报错信息为

the path does not point to a valid framework

具体指向xxxxxxxx/device.xcarchive/xxxxxxxx/你的framework名找不到。但是模拟器的目录是能找到。也就是说xcframework内包含的两个framework,device失败,simulator成功。
一步步排查上去,定位到错误:

Command CodeSign failed with a nonzero exit code

是code sign 报错了,也就是使用证书对framework签名时报错。
再定位到报错为

unable to build chain to self-signed root for signer "(null)"

是根证书出问题了。
在 钥匙串-系统 中有一个证书,名为Apple Worldwide Developer Relations Certification Authority,删除它。
下载新证书,地址为:
https://www.apple.com/certificateauthority/AppleWWDRCAG3.cer
重新编译,成功。

posted @ 2021-11-04 09:11  白叶Stuart  阅读(509)  评论(0编辑  收藏  举报