iOS 13.3.1 真机(无越狱)动态库签名无效

这是新建的 Single View App + Framework

dyld: Library not loaded: @rpath/hook3.framework/hook3
  Referenced from: /private/var/containers/Bundle/Application/5D835B1B-590E-436A-839B-29253D858DB9/test3.app/test3
  Reason: no suitable image found.  Did find:
	/private/var/containers/Bundle/Application/5D835B1B-590E-436A-839B-29253D858DB9/test3.app/Frameworks/hook3.framework/hook3: code signature invalid for '/private/var/containers/Bundle/Application/5D835B1B-590E-436A-839B-29253D858DB9/test3.app/Frameworks/hook3.framework/hook3'

	/private/var/containers/Bundle/Application/5D835B1B-590E-436A-839B-29253D858DB9/test3.app/Frameworks/hook3.framework/hook3: stat() failed with errno=25

查看签名是一致的

$ codesign -d -vv .
Executable=/Users/moeshin/Library/Developer/Xcode/DerivedData/test3-enebtxfnddcbcudxbdujhvxdlqmu/Build/Products/Debug-iphoneos/test3.app/test3
Identifier=site.littlehands.test3
Format=app bundle with Mach-O thin (arm64)
CodeDirectory v=20400 size=1018 flags=0x0(none) hashes=23+5 location=embedded
Signature size=4819
Authority=Apple Development: xxx@qq.com (22AxxxxNU3)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=Apr 18, 2020 at 2:46:44 PM
Info.plist entries=27
TeamIdentifier=3GZxxxx927
Sealed Resources version=2 rules=10 files=10
Internal requirements count=1 size=188
$ codesign -d -vv Frameworks/hook3.framework
Executable=/Users/moeshin/Library/Developer/Xcode/DerivedData/test3-enebtxfnddcbcudxbdujhvxdlqmu/Build/Products/Debug-iphoneos/test3.app/Frameworks/hook3.framework/hook3
Identifier=site.littlehands.hook3
Format=bundle with Mach-O thin (arm64)
CodeDirectory v=20400 size=634 flags=0x0(none) hashes=13+3 location=embedded
Signature size=4819
Authority=Apple Development: xxx@qq.com (22AxxxxNU3)
Authority=Apple Worldwide Developer Relations Certification Authority
Authority=Apple Root CA
Signed Time=Apr 18, 2020 at 3:00:05 PM
Info.plist entries=21
TeamIdentifier=3GZxxxx927
Sealed Resources version=2 rules=10 files=0
Internal requirements count=1 size=188

https://stackoverflow.com/questions/60015309/running-ios-apps-causes-runtime-error-for-frameworks-code-signature-invalid

这是 iOS 13.3.1 的 BUG,我去升级看看。