square / reader-sdk-ios-quickstart

Reader SDK Quick Start Sample iOS App
https://developer.squareup.com/docs/reader-sdk/quick-start/start
Apache License 2.0
23 stars 4 forks source link

Integration error : dyld: Library not loaded #5

Closed maulikpat closed 6 years ago

maulikpat commented 6 years ago

Hi,

I have added framework in my project. Its running fine in simulator but when I tried to run in device it give below error with crash : Reason: no suitable image found. Did find: /private/var/containers/Bundle/Application/1B084028-3532-4156-8671-A2FD4614988F/appName.app/Frameworks/SquareReaderSDK.framework/Frameworks/CorePaymentCard.framework/CorePaymentCard: code signature invalid for '/private/var/containers/Bundle/Application/1B084028-3532-4156-8671-A2FD4614988F/appName 2.5.app/Frameworks/SquareReaderSDK.framework/Frameworks/CorePaymentCard.framework/CorePaymentCard'

Have added framework in Embedded Binaries as well.

Also if I make it optional then its not crashing but also not working.

maulikpat commented 6 years ago

ok this is resolved by following steps 2nd and 3rd from this : https://docs.connect.squareup.com/payments/readersdk/setup-ios#step-3-configure-your-ios-project-for-reader-sdk