bamlab / react-native-image-resizer

🗻 Resize local images with React Native
MIT License
1.6k stars 342 forks source link

iOS 15: Using react-native-image-resizer will crash release app launch due to signing isues #332

Closed tautvilas closed 1 year ago

tautvilas commented 1 year ago

This is the error that is displayed when debugging app launch on console:

-[IXSErrorPresenter presentErrorForBundleIDs:code:underlyingError:errorSource:]: Asked to present alert for error 17 source MobileInstallation underlying error Error Domain=MIInstallerErrorDomain Code=13 "Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.XniWlr/extracted/Payload/Example.app/Frameworks/react_native_image_resizer.framework : 0xe8008029 (The code signature version is no longer supported.)" UserInfo={NSLocalizedDescription=Failed to verify code signature of /var/installd/Library/Caches/com.apple.mobile.installd.staging/temp.XniWlr/extracted/Payload/Example.app/Frameworks/react_native_image_resizer.framework : 0xe8008029 (The code signature version is no longer supported.), LegacyErrorString=ApplicationVerificationFailed, FunctionName=+[MICodeSigningVerifier _validateSignatureAndCopyInfoForURL:withOptions:error:], SourceFileLine=75, LibMISErrorNumber=-402620375} for bundle IDs ( "com.example.stage" )

tautvilas commented 1 year ago

@taboulot do you think this issue will be addressed? Thanks

tautvilas commented 1 year ago

Might be not related to this library but this issue https://github.com/CocoaPods/CocoaPods/issues/11402

tautvilas commented 1 year ago

I do not get this error when library is not compiled as static with use_frameworks! enbaled, so probably this was somewhat related to my pod config.

This is how to compile thi lib with use_frameworks! enabled:

https://github.com/bamlab/react-native-image-resizer/issues/327