braintree / braintree_ios

Braintree SDK for iOS
https://developer.paypal.com/braintree/docs/start/hello-client/ios/v5
MIT License
556 stars 290 forks source link

Fix Demo app crash (PayPalMessages dependency) #1329

Closed scannillo closed 1 month ago

scannillo commented 1 month ago

JIRA: DTMOBILES-702

Summary

The demo app currently crashes when running on device. It crashes with the following:

dyld[2527]: Library not loaded: @rpath/PayPalMessages.framework/PayPalMessages
  Referenced from: <13BF88A7-5934-34EF-B939-0432239ADD13> /private/var/containers/Bundle/Application/64E0AE18-8E3E-4B36-99E5-04C5A34A0029/Demo.app/Frameworks/BraintreePayPalMessaging.framework/BraintreePayPalMessaging
  Reason: tried: '/usr/lib/swift/PayPalMessages.framework/PayPalMessages' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/PayPalMessages.framework/PayPalMessages' (errno=2), '/private/var/containers/Bundle/Application/64E0AE18-8E3E-4B36-99E5-04C5A34A0029/Demo.app/Frameworks/PayPalMessages.framework/PayPalMessages' (errno=2), '/private/var/containers/Bundle/Application/64E0AE18-8E3E-4B36-99E5-04C5A34A0029/Demo.app/Frameworks/BraintreePayPalMessaging.framework/Frameworks/PayPalMessages.framework/PayPalMessages' (errno=2), '/usr/lib/swift/PayPalMessages.framework/PayPalMessages' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/PayPalMessages.framework/PayPalMessages' (errno=2), '/private/var/containers/Bundle/Application/64E0AE18-8E3E-4B36-99E5-04C5A34A0029/Demo.app/Frameworks/PayPalMessages.framework/PayPalMessages' (errno=2), '/private/var/containers/Bundle/Application/64E0AE18-8E3E-4B36-99E5-04C5A34A0029/Demo.app/Frameworks/PayPalMessages.framework/PayPalMessages' (errno=2), '/usr/lib/swift/PayPalMessages.framework/PayPalMessages' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/PayPalMessages.framework/PayPalMessages' (errno=2), '/private/var/containers/Bundle/Application/64E0AE18-8E3E-4B36-99E5-04C5A34A0029/Demo.app/Frameworks/PayPalMessages.framework/PayPalMessages' (errno=2), '/private/var/containers/Bundle/Application/64E0AE18-8E3E-4B36-99E5-04C5A34A0029/Demo.app/Frameworks/PayPalMessages.framework/PayPalMessages' (errno=2), '/private/preboot/Cryptexes/OS@rpath/PayPalMessages.framework/PayPalMessages' (errno=2), '/usr/lib/swift/PayPalMessages.framework/PayPalMessages' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/PayPalMessages.framework/PayPalMessages' (errno=2), '/private/var/containers/Bundle/Application/64E0AE18-8E3E-4B36-99E5-04C5A34A0029/Demo.app/Frameworks/PayPalMessages.framework/PayPalMessages' (errno=2), '/private/var/containers/Bundle/Application/64E0AE18-8E3E-4B36-99E5-04C5A34A0029/Demo.app/Frameworks/BraintreePayPalMessaging.framework/Frameworks/PayPalMessages.framework/PayPalMessages' (errno=2), '/usr/lib/swift/PayPalMessages.framework/PayPalMessages' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/PayPalMessages.framework/PayPalMessages' (errno=2), '/private/var/containers/Bundle/Application/64E0AE18-8E3E-4B36-99E5-04C5A34A0029/Demo.app/Frameworks/PayPalMessages.framework/PayPalMessages' (errno=2), '/private/var/containers/Bundle/Application/64E0AE18-8E3E-4B36-99E5-04C5A34A0029/Demo.app/Frameworks/PayPalMessages.framework/PayPalMessages' (errno=2), '/usr/lib/swift/PayPalMessages.framework/PayPalMessages' (errno=2, not in dyld cache), '/private/preboot/Cryptexes/OS/usr/lib/swift/PayPalMessages.framework/PayPalMessages' (errno=2), '/private/var/containers/Bundle/Application/64E0AE18-8E3E-4B36-99E5-04C5A34A0029/Demo.app/Frameworks/PayPalMessages.framework/PayPalMessages' (errno=2), '/private/var/containers/Bundle/Application/64E0AE18-8E3E-4B36-99E5-04C5A34A0029/Demo.app/Frameworks/PayPalMessages.framework/PayPalMessages' (errno=2)

Changes

Checklist

Authors

@scannillo

KunJeongPark commented 1 month ago

I think this is same item that was attached as one of the AC to Rich's PR - https://github.com/braintree/braintree_ios/pull/1327

scannillo commented 1 month ago

Covered in https://github.com/braintree/braintree_ios/pull/1327