klarna / klarna-mobile-sdk

Klarna Mobile SDK for iOS
https://docs.klarna.com/mobile-sdk/ios/
Apache License 2.0
29 stars 12 forks source link

Unable to install app on physical device using SPM #72

Closed josecriane closed 3 years ago

josecriane commented 4 years ago

Describe the bug When we try add KlarnaMobileSDK using SPM the app is unable to install on physical device

To Reproduce We add klarna-mobile-sdk to a core library and the app is unable to install. The structure of project is:

App > Core Library > KlarnaMobileSDK (with SPM)

Compile and run, xcode show a alert message "Unable to Install app".

Screenshots

Screenshot 2020-11-13 at 11 24 55

Device and version:

Additional context Adding the sdk manually it works. In the simulator SPM works. I see that Firebase was a similar problem. https://github.com/firebase/firebase-ios-sdk/issues/6360

josecriane commented 4 years ago

I created a example workspace with the problem https://github.com/josecriane/klarna-spm-error-example

polar133 commented 4 years ago

Thanks for the example @josecriane we will take a look at it.

polar133 commented 4 years ago

Hi @josecriane, I checked out the example and found out that it's a xcode bug that is going on since Xcode 12. But i managed to make it work following the pspdfkit guide.

simonpierreroy commented 4 years ago

This is fixed in Xcode 12.2 and is related to bad signing when building to a device from Xcode.

omarbh commented 3 years ago

Hi, this ticket will be closed, feel free to reopen you are still having the issue.