我正在使用命令在macOS上创建我的Qt应用程序包
macdeployqt MyApp.app --verbose --executable=MyApp.app/Content/MacOS/MyApp -codesign=<identity>
并在所有Qt库中获取此类错误:
ERROR: Codesign signing error:
ERROR: "/Users/xxx/Projects/MyApp/deploy/MyAppapp/Contents/Frameworks/QtCore.framework/Versions/5/QtCore: A timestamp was expected but was not found.\n"
如果单独运行codesign
,我可以重现相同的错误
codesign --sign "<identity>" /path/to/Fraworks/.../5/QtCore
我的证书是从Apple Developer网站获得的最新证书。
我在做什么错以及如何解决?