My App crash on startup for ios (Flutter)

Whenever I build the app with square_in_app_payments: ^1.7.5 dependencies installed, the app crashes on startup and gives me the error from the ios simulator below (the same happens on building on a physical device on ios).


Translated Report (Full Report Below)

Incident Identifier: CD9FAB2E-2A57-495D-9181-6251AAD889C8
CrashReporter Key: 85A50935-1763-54DE-36E9-464A49EB0CA1
Hardware Model: MacBookPro17,1
Process: Runner [7545]
Path: /Users/USER/Library/Developer/CoreSimulator/Devices/26831C8E-0E1A-480A-B31B-355794728BE4/data/Containers/Bundle/Application/80EC1213-1F37-42E0-8043-C56BF514BBB0/Runner.app/Runner
Identifier: com.shack15llc.shack15.v2
Version: 2.0.0 (1)
Code Type: X86-64 (Native)
Role: Foreground
Parent Process: launchd_sim [3012]
Coalition: com.apple.CoreSimulator.SimDevice.26831C8E-0E1A-480A-B31B-355794728BE4 [2405]
Responsible Process: SimulatorTrampoline [2767]

Date/Time: 2023-08-30 13:22:07.6637 +0000
Launch Time: 2023-08-30 13:22:07.0370 +0000
OS Version: macOS 13.5.1 (22G90)
Release Type: User
Report Version: 104

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: DYLD 1 Library missing
Library not loaded: @rpath/ThreeDS_SDK.framework/ThreeDS_SDK
Referenced from: /Users/mac/Library/Developer/CoreSimulator/Devices/26831C8E-0E1A-480A-B31B-355794728BE4/data/Containers/Bundle/Application/80EC1213-1F37-42E0-8043-C56BF514BBB0/Runner.app/Frameworks/SquareBuyerVerificationSDK.framework/SquareBuyerVerificationSDK
Reason: tried: ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/ThreeDS_SDK.framework/ThreeDS_SDK’ (no such file), ‘/usr/lib/swift/ThreeDS_SDK.framework/ThreeDS_SDK’ (no such file, no dyld cache), ‘/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/swift/ThreeDS_SDK.framework/ThreeDS_SDK’ (no such file), ‘/usr/lib/swift/ThreeDS_SDK.framework/ThreeDS_SDK’ (no such file, no dyld cache), '/Applicati
(terminated at launch; ignore backtrace)

Triggered by Thread: 0

Kernel Triage:
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage
VM - (arg = 0x0) pmap_enter retried due to resource shortage

Thread 0 Crashed:
0 ??? 0x1008309a8 ???
1 0x1008e4b8c ???
2 dyld 0x200ae5fd7 abort_with_payload_wrapper_internal + 82
3 dyld 0x200ae6009 abort_with_payload + 9
4 dyld_sim 0x108e87829 abort_with_payload + 26
5 dyld_sim 0x108e32fea dyld4::halt(char const*) + 375
6 dyld_sim 0x108e31535 dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3953
7 dyld_sim 0x108e3025f _dyld_sim_prepare + 577
8 dyld 0x200a68424 dyld4::prepareSim(dyld4::RuntimeState&, char const*) + 1490
9 dyld 0x200a66abc dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 249
10 dyld 0x200a663bd start + 1805

Thread 1:: com.apple.rosetta.exceptionserver
0 ??? 0x7ff7fff4f634 ???

Thread 0 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000006 rbx: 0x0000000000000133 rcx: 0x0000000000000001 rdx: 0x0000000304f89a10
rdi: 0x000000201f437000 rsi: 0x00000000646822b2 rbp: 0x0000000000000000 rsp: 0x0000000304f89610
r8: 0x0000000304f89610 r9: 0x0000000000000000 r10: 0x0000000000000133 r11: 0x00000000609f142a
r12: 0x0000000000000133 r13: 0x0000000304f89a10 r14: 0x0000000000000001 r15: 0x0000000000000006
rip: rfl: 0x0000000000000283
tmp0: 0xffffffffffffffff tmp1: 0x000000010083097c tmp2: 0x0000000200ae5fd7

Have you added all the dependencies for verifyBuyer? :slight_smile:

I have a same issue. Can you fix it?

Stopped working after switching to flutter version 3.0.
Because of this, I can’t make changes to the app, which is currently in production. Fix it as soon as possible.

Can you confirm that the build step script was updated as well? :slight_smile:

Okay so for Flutter I thought once you add the square_in_app_payments dependencies in the pubspec.yaml file that’s all. How to i add verifyBuyer dependencies for a flutter app then, the docs you provided is for native ios and android.