PurpleSoftSrl / sumup_flutter_plugin

A Flutter wrapper to use the SumUp SDK. With this plugin, your app can easily connect to a SumUp terminal, login and accept card payments on Android and iOS.
https://www.purplesoft.io
MIT License
16 stars 17 forks source link

Crash: Unsupported Swift architecture - sumup 0.7.0 #39

Open lcsvcn opened 1 year ago

lcsvcn commented 1 year ago

Environment

Terminal Output Error:

Swift Compiler Error (Xcode): Unsupported Swift architecture
/Users/lcsvcn/Documents/GitHub/super_totem/build/ios/Debug-iphonesimulator/XCFrameworkIntermediates/SumUpSDK/SumUpSDK.framework/Headers/SumUp-GeneratedHeader-Swift.h:262:1

Swift Compiler Error (Xcode): Could not build Objective-C module 'SumUpSDK'
/Users/lcsvcn/.pub-cache/hosted/pub.dev/sumup-0.7.0/ios/Classes/SwiftSumupPlugin.swift:1:7

Could not build the application for the simulator.
Error launching application on iPad Pro (11-inch) (4th generation).

I already tried this post and also to clean all cache (for flutter and podfile). The issue persisted.

Important Note: When I downgrade to sumup version 0.6.1, it works fine. Seems like an issue with version 0.7.0.

sstasi95 commented 1 year ago

Hi @lcsvcn, sorry for the late response. Is this still an issue?

deveasyshop commented 1 year ago

same problem for me work on physical device but not on simulator. I can't update the package with version 0.7.0

sstasi95 commented 1 year ago

Hi @deveasyshop, maybe this is the issue?

danilorpneves commented 11 months ago

I have the same issue

mahmoudalaa97 commented 10 months ago

I found the workaround that fixes the issue for me you can use this in Podfile

post_install do |installer|
  installer.pods_project.build_configurations.each do |config|
    config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
  end
end