appodeal / Appodeal-Flutter-Plugin

Official Flutter Plugin that adds Appodeal SDK support to your Flutter application.
https://pub.dev/packages/stack_appodeal_flutter
Apache License 2.0
21 stars 3 forks source link

Semantic Issue (Xcode): No type named 'terminate_handler' in namespace 'std' #85

Closed daninow closed 4 weeks ago

daninow commented 2 months ago

XCode version: 16.0 Mac OS Sequoia 15.0 - M1

It seems that when it loads the Sentry dependency, it gives an error...

Failed to build iOS app Semantic Issue (Xcode): No type named 'terminate_handler' in namespace 'std' /xxx/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp:59:12

Semantic Issue (Xcode): No member named 'set_terminate' in namespace 'std' /xxx/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp:206:46

Semantic Issue (Xcode): No type named 'set_terminate' in namespace 'std' /xxx/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp:208:17

Could not build the application for the simulator.

AlexUrrutia commented 2 months ago

Same here, just updated XCode and MacOS Sequoia:

Xcode build done.                                           12.2s
Failed to build iOS app
Semantic Issue (Xcode): No type named 'terminate_handler' in namespace 'std'
/Users/alex/Downloads/Appodeal-Flutter-Plugin-main/example/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp:59:12

Semantic Issue (Xcode): No member named 'set_terminate' in namespace 'std'
/Users/alex/Downloads/Appodeal-Flutter-Plugin-main/example/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp:206:46

Semantic Issue (Xcode): No type named 'set_terminate' in namespace 'std'
/Users/alex/Downloads/Appodeal-Flutter-Plugin-main/example/ios/Pods/Sentry/Sources/SentryCrash/Recording/Monitors/SentryCrashMonitor_CPPException.cpp:208:17

@da2gl any help? Thanks!

da2gl commented 2 months ago

@daninow @AlexUrrutia Hi, we known about this issue. We can find more information here. Our iOS team is preparing a new build with a new Sentry version, but I can't say when it will be released.

For fast solution don't use Sentry adapter in your build. Just remove this line: pod 'APDSentryAdapter', '3.3.2.0'

Thank you for contacting us.

AlexUrrutia commented 2 months ago

@da2gl Thanks for that, I tried removing the SentryAdapter and now I get this error when building the Appodeal Demo Flutter App:

Launching lib/main.dart on iPhone 16 Plus in debug mode...
Warning: Missing build name (CFBundleShortVersionString).
Warning: Missing build number (CFBundleVersion).
Action Required: You must set a build name and number in the pubspec.yaml file version field before submitting to the App Store.
Xcode build done.                                           18.7s
Failed to build iOS app
Error (Xcode): Undefined symbol: _OBJC_CLASS_$_ADClient

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

Could not build the application for the simulator.
Error launching application on iPhone 16 Plus.
da2gl commented 2 months ago

@AlexUrrutia This is another issue with Xcode 16 and MyTracker Now we also don't have new version MyTarget and MyTracker in our SDK. Unfortunately this can also be fixed by deleting the MyTarget and MyTracker pods, because now we have hard reference to old versions.

pod 'APDMyTargetAdapter', '3.3.2.0'
pod 'AppLovinMediationMyTargetAdapter', '5.20.1.1'
pod 'BidMachineMyTargetAdapter', '2.6.0.0'
pod 'myTrackerSDK', '3.1.7'
AlexUrrutia commented 1 month ago

@da2gl it seems they fixed myTrackerSDK pod 3.2.0

https://github.com/myTrackerSDK/mytracker-ios/issues/9#issuecomment-2357845798

da2gl commented 1 month ago

@AlexUrrutia yes, we are waiting for our iOS team to prepare a new build with full support for Xcode 16.

da2gl commented 4 weeks ago

https://github.com/appodeal/Appodeal-Flutter-Plugin/pull/91