# Mobile Payments SDK iOS runtime crash

**URL:** <https://developer.squareup.com/forums/t/mobile-payments-sdk-ios-runtime-crash/17101>\
**Category:** Questions\
**Created:** [June 8, 2024, 1:41pm UTC](https://developer.squareup.com/forums/t/mobile-payments-sdk-ios-runtime-crash/17101 "2024-06-08T13:41:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fobos531](https://avatars.discourse-cdn.com/v4/letter/f/8dc957/32.png) [@fobos531](https://developer.squareup.com/forums/u/fobos531)\
**Post date:** [June 8, 2024, 1:41pm UTC](https://developer.squareup.com/forums/t/mobile-payments-sdk-ios-runtime-crash/17101/1 "2024-06-08T13:41:09Z")

</div>

Hello @wootmoot!

Congratulations on the release and many thanks for these improvements! Looking forward to future improvements!

I already started integrating this into my apps and Android implementation was a breeze, everything working so far. However, I am having some issues with iOS. I added and integrated the SDK according to the instructions, but I am getting runtime crashes when the app launches, supposedly something about the CorePaymentCard.framework not being due to it not being found.

```auto
dyld[32584]: Library not loaded: @rpath/CorePaymentCard.framework/CorePaymentCard
  Referenced from: <788E2AB0-3071-3109-832B-57AE73EE184C> /Users/jakovglavina/Library/Developer/CoreSimulator/Devices/FF7FB197-345E-4140-9AD9-CEFCACA8E173/data/Containers/Bundle/Application/BD8FFA1E-BA09-46F2-BF67-8EFA2FA7A11C/reactnativesquarereadersdk2example.app/Frameworks/SquareMobilePaymentsSDK.framework/SquareMobilePaymentsSDK
  Reason: tried: '/Users/jakovglavina/Library/Developer/Xcode/DerivedData/reactnativesquarereadersdk2example-fsfjamellizadtfjouxomutgjpwt/Build/Products/Debug-iphonesimulator/CorePaymentCard.framework/CorePaymentCard' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/CorePaymentCard.framework/CorePaymentCard' (no such file), '/usr/lib/swift/CorePaymentCard.framework/CorePaymentCard' (no such file, not in dyld cache), '/Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/CorePaymentCard.framework/CorePaymentCard' (no such file), '/usr/lib/swift/CorePaymentCard.framework/CorePaymentCard' (no such file, not in dyld cache), '/Users/jakovglavina/Library/Developer/CoreSimulator/Devices/FF7FB197-345E-4140-9AD9-CEFCACA8E173/data/Containers/Bundle/Application/BD8FFA1E-BA09-46F2-BF67-8EFA2FA7A11C/reactnativesquarereadersdk2example.app/Frameworks/CorePaymentCard.framework/CorePaymentCard' (no such file), '/Users/jakovglavina/Library/Developer/CoreSimulator/Devices/FF7FB197-345E-4140-9AD9-CEFCACA8E173/data/Containers/Bundle/Application/BD8FFA1E-BA09-46F2-BF67-8EFA2FA7A11C/reactnativesquarereadersdk2example.app/Frameworks/CorePaymentCard.framework/CorePaymentCard' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/CorePaymentCard.framework/CorePaymentCard' (no such file), '/usr/lib/swift/CorePaymentCard.framework/CorePaymentCard' (no such file, not in dyld cache), '/Users/jakovglavina/Library/Developer/CoreSimulator/Devices/FF7FB197-345E-4140-9AD9-CEFCACA8E173/data/Containers/Bundle/Application/BD8FFA1E-BA09-46F2-BF67-8EFA2FA7A11C/reactnativesquarereadersdk2example.app/Frameworks/CorePaymentCard.framework/CorePaymentCard' (no such file), '/Users/jakovglavina/Library/Developer/CoreSimulator/Devices/FF7FB197-345E-4140-9AD9-CEFCACA8E173/data/Containers/Bundle/Application/BD8FFA1E-BA09-46F2-BF67-8EFA2FA7A11C/reactnativesquarereadersdk2example.app/Frameworks/CorePaymentCard.framework/CorePaymentCard' (no such file), '/Library/Developer/CoreSimulator/Volumes/iOS_21F79/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 17.5.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/CorePaymentCard.framework/CorePaymentCard' (no such file)

```

As you can see, it looked up a bunch of different folders to try and find the framework but it seems it’s looking in the wrong place. I can find the framework on my filesystem located at

`/Users/jakovglavina/Library/Developer/CoreSimulator/Devices/FF7FB197-345E-4140-9AD9-CEFCACA8E173/data/Containers/Bundle/Application/BD8FFA1E-BA09-46F2-BF67-8EFA2FA7A11C/reactnativesquarereadersdk2example.app/Frameworks/SquareMobilePaymentsSDK.framework/Frameworks/CorePaymentCard.framework/`

So, with that said, I don’t know if I’m missing anything… any help would be greatly appreaciated!

---

<div class="post-metadata">

**Author:** ![Bryan-Square](https://sea1.discourse-cdn.com/square/forums/user_avatar/developer.squareup.com/bryan-square/32/38_2.png) [@Bryan-Square](https://developer.squareup.com/forums/u/Bryan-Square)\
**Post date:** [June 10, 2024, 9:55pm UTC](https://developer.squareup.com/forums/t/mobile-payments-sdk-ios-runtime-crash/17101/2 "2024-06-10T21:55:12Z")

</div>

Have you tried to clean and rebuild the the app? 🙂
