stripe / stripe-ios

Stripe iOS SDK
https://stripe.com
MIT License
2.03k stars 944 forks source link

XCode 15.3 unable to build on device #3549

Open RushanB opened 2 weeks ago

RushanB commented 2 weeks ago

Summary

Able to build and run on simulator, but on device it keeps saying library not loaded

Library not loaded: @rpath/CaptureCore.framework/CaptureCore
  Referenced from: <86ED1679-C998-3378-B8CD-E6D368549409> /private/var/containers/Bundle/Application/7CBB2F91-307E-4CD8-A36A-899CAFF4DA13/ABCD.app/Frameworks/ABCD.framework/ABCD

  Reason: tried: '/Users/abcd/Library/Developer/Xcode/DerivedData/ABCD-glawfeexxlunkjdqtsoifnzacoot/Build/Products/Debug-iphoneos/PackageFrameworks/CaptureCore.framework/CaptureCore' (no such file), '/private/preboot/Cryptexes/OS/Users/abcd/Library/Developer/Xcode/DerivedData/ABCD-glawfeexxlunkjdqtsoifnzacoot/Build/Products/Debug-iphoneos/PackageFrameworks/CaptureCore.framework/CaptureCore' (no such file), '/private/var/containers/Bundle/Application/7CBB2F91-307E-4CD8-A36A-899CAFF4DA13/ABCD.app/Frameworks/CaptureCore.framework/CaptureCore' (no such file), '/private/var/containers/Bundle/Application/7CBB2F91-307E-4CD8-A36A-899CAFF4DA13/ABCD.app/Frameworks/ABCD.framework/Frameworks/CaptureCore.framework/CaptureCore' (no such file), '/Users/abcd/Library/Developer/Xcode/DerivedData/ABCD-glawfeexxlunkjdqtsoifnzacoot/Build/Products/Debug-iphoneos/PackageFrameworks/CaptureCore.framework/CaptureCore' (no such file),

Code to reproduce

Just trying to build on device

iOS version

17.4.1

Installation method

Swift package manager

SDK version

23.27.1

When I check the contents of PackageFramework folder, it is empty and the CaptureCore.framework is located in the folder level with all the other frameworks

RushanB commented 2 weeks ago

Looks like when I downgrade to 23.26.0, I'm able to run on device

davidme-stripe commented 2 weeks ago

Hello, thanks for filing this! Which framework are you trying to use? Is it StripeIdentity, or a payments-related framework?

RushanB commented 2 weeks ago

StripeIdentity framework

davidme-stripe

RushanB commented 2 weeks ago

@davidme-stripe Also got this email from Apple when submitting a build to the app store

image
sgrant-stripe commented 2 weeks ago

Hi @RushanB, can you verify two things:

1) You're app to build and run the ImageVerification Example app on device. 2) Your app includes the listed missing framework in the "General" tab under "Frameworks, Libraries, and Embedded Content"?

Here's what it looks like for the sample app:

ImageVerification Example

mohit-kapadia-at-lirisoft commented 1 week ago

Even I see this issue, but a different framework. Any help?

Screenshot 2024-05-06 at 11 28 20 AM