Skip to content

SDK version 3.8.0+ causes Xcode build failure due to std::terminate_handler issues in Flutter #106

Description

@MichaelAmadheo

We're using the SDK in a Flutter project. Currently, version 3.7.0 is working as expected.

However, per VISA compliance, we are required to upgrade to a version of the SDK that includes cardholder information support. After upgrading to version 3.9.0 (the issue also appears starting from 3.8.0), the iOS build fails with the following Xcode errors:

`Semantic Issue (Xcode): No type named 'terminate_handler' in namespace 'std'
/Users/admin/Documents/flutter%20projects/xxxxx/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCras
hMonitor_CPPException.cpp:58:12

Semantic Issue (Xcode): No member named 'set_terminate' in namespace 'std'
/Users/admin/Documents/flutter%20projects/xxxxx/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCras
hMonitor_CPPException.cpp:193:46

Semantic Issue (Xcode): No type named 'set_terminate' in namespace 'std'
/Users/admin/Documents/flutter%20projects/xxxxx/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCras
hMonitor_CPPException.cpp:195:17

Could not build the application for the simulator.
Error launching application on iPhone 16.`

Notes:

  • This issue only occurs from SDK version 3.8.0 onward.
  • Reverting back to 3.7.0 resolves the issue.
  • Our environment uses Flutter, targeting iOS.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions