You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
luukjansen
changed the title
Setting up the SumupSDK with SwiftUI
Setting up the SumupSDK with Swift
Feb 3, 2024
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?
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.
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.
The text was updated successfully, but these errors were encountered: