Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up the SumupSDK with Swift #137

Open
luukjansen opened this issue Feb 2, 2024 · 3 comments
Open

Setting up the SumupSDK with Swift #137

luukjansen opened this issue Feb 2, 2024 · 3 comments

Comments

@luukjansen
Copy link

luukjansen commented Feb 2, 2024

I am trying to integrate Sumup in an existing SwiftUI project.
However, whatever I try I get the "#error unsupported Swift architecture" on line 263 in theSumup-GeneratedHeader-Swift file.

If I create a 'normal' swift application with a story board then it does compile. I am trying to find what is exactly the reason and if I can easily change it but the file is a bit hard to read.

Is there an easy way around this problem, as I cannot find anybody else having it. Just creating a new SwiftUI project and adding the SDK will trigger the issue.

[EDIT]
It doesn't work without SwiftUI either. The sample project works, but I cannot figure out what the difference is with a new project. Creating a new Swift project, adding the SDK and importing it in any controller will give the unsupported Swift Version error.

@luukjansen luukjansen changed the title Setting up the SumupSDK with SwiftUI Setting up the SumupSDK with Swift Feb 3, 2024
@luukjansen
Copy link
Author

I figured out the problem, I guess because I use a MacBook with an M1.
After comparing all parameters between the test and a default project the arm64 architecture needs to be excluded from the build.
Build Settings -> Architectures -> Excluded Architectures -> add arm64.
Would this be something that can be corrected in the SDK, or added as a note in the installation instruction?

@jadeburton-sumup
Copy link
Collaborator

Hi @luukjansen, sorry you had this experience. We're working on removing an internal library that is preventing us from supporting ARM64 simulator, so this issue should be resolved in an upcoming version.

@jadeburton-sumup
Copy link
Collaborator

@luukjansen is this still an issue with SDK 5 or later? We added ARM64 simulator support in v5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants