一次发版的时候发现在使用苹果公证命令公证后,收到公证成功邮件后分发出现未知开发者
codesign -s "Developer ID Application: ------" --entitlements ./slide.entitlements -v --timestamp --options=runtime -f --deep test.app
于是用codesign -vvv --deep --strict test.app测试依然提示签名正常
./test.app: valid on disk
./test.app: satisfies its Designated Requirement
但是分发出去依然是不信任的开发者
看git提交记录,发现添加了一个dylib,这个dylib是一个dylib依赖的,不是执行文件依赖的
修改公证脚本为
codesign -s "Developer ID Application:" --entitlements ./slide.entitlements -v --timestamp --options=runtime -f --deep test.app/Contents/Frameworks/*.dylib
codesign -s "Developer ID Application:" --entitlements ./slide.entitlements -v --timestamp --options=runtime -f --deep test.app
收到公证成功邮件后分发,无警告