error: Embedded binary is not signed with the same certificate as the parent app
error: Embedded binary is not signed with the same certificate as the parent app. Verify the embedded binary target's code sign settings match the parent app's.
Embedded Binary Signing Certificate: Not Code Signed
Parent App Signing Certificate: Apple Development: XXX
当电脑更新至M1或M2芯片的mac时,作为一个iOS开发可能会遇到上面的错误,甚至会出现其他问题。
解决上述问题的方法网上已经有很多了,最常见的如钥匙串中的证书的信任方式:
证书要使用系统默认,而非始终信任,如果此方法对你有效,恭喜你,下面的内容对您没有意义了。
如果上述方法对你无效,您的项目中包含多target,比如Share Extension,Notification Extension。
如果您的此类错误中包含bitcode错误,您可以参考 # Flutter: add Share Extension
如果此文章对您无效,你可以参考一下我遇到的问题,根据错误队列的运行数据,
找到 target build时是否有运行错误,如果有警告或者错误,则根据警告和错误做修改,
Showing Recent Messages
None of the architectures in ARCHS (arm64) are valid. Consider setting ARCHS to $(ARCHS_STANDARD) or updating it to include at least one value from VALID_ARCHS (arm64, arm64e, armv7, armv7s) which is not in EXCLUDED_ARCHS (arm64).
则在NotificationService(或你对应的target)--->build setting 对Architectures做以下修改
希望能帮助到你。