Skip to content

feat(editor): Add iOS export warning for minimum version#628

Merged
limbonaut merged 6 commits intomainfrom
feat/export-warning-ios-version
Apr 7, 2026
Merged

feat(editor): Add iOS export warning for minimum version#628
limbonaut merged 6 commits intomainfrom
feat/export-warning-ios-version

Conversation

@limbonaut
Copy link
Copy Markdown
Collaborator

@limbonaut limbonaut commented Apr 3, 2026

Warn users when iOS "Min iOS version" is below 15.0 required by Sentry Cocoa SDK. FYI, Godot default is 14.0.

Also extracts the hidden export option hack into shared helpers in export_utils.h to reduce duplication across Android, Web, and iOS export plugins (3rd time the same pattern is used).

Screenshot 2026-04-03 at 10 43 52

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

  • (editor) Add iOS export warning for minimum version by limbonaut in #628

Bug Fixes 🐛

  • (build) Set default Apple deployment targets via SConstruct by limbonaut in #627

Internal Changes 🔧

Deps

  • Update Sentry JavaScript to v10.47.0 by github-actions in #624
  • Update Native SDK to v0.13.4 by github-actions in #621
  • Update Sentry Android to v8.37.1 by github-actions in #616
  • Update Sentry JavaScript to v10.46.0 by github-actions in #615
  • Update Sentry Android to v8.37.0 by github-actions in #614
  • Update gdUnit 4 to v6.1.2 by github-actions in #610
  • Bump json from 2.18.0 to 2.19.2 by dependabot in #604
  • Update Cocoa SDK to v9.8.0 by github-actions in #605
  • Update Sentry JavaScript to v10.45.0 by github-actions in #607
  • Update Native SDK to v0.13.3 by github-actions in #606

Other

  • (demo) Replace auto-sending metrics with a tool button by limbonaut in #623
  • (deps-dev) Bump picomatch from 2.3.1 to 2.3.2 in /src/sentry/javascript/bridge by dependabot in #617
  • (web) Adapt and run E2E tests on Web platform by limbonaut in #611
  • Update validate-pr workflow by stephanie-anderson in #625
  • Add PR validation workflow by stephanie-anderson in #618
  • Pin GitHub Actions to full-length commit SHAs by joshuarli in #612
  • Add E2E tests for structured logs and metrics by limbonaut in #602
  • Stabilize flaky SauceLabs integration tests by limbonaut in #601

🤖 This preview updates automatically when you update the PR.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 3, 2026

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 2b80042

Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Autofix Details

Bugbot Autofix prepared a fix for the issue found in the latest run.

  • ✅ Fixed: Warning message hardcodes version instead of using constant
    • The warning text now stringifies SENTRY_IOS_MIN_VERSION, so the displayed minimum iOS version always matches the comparison threshold.

Create PR

Or push these changes by commenting:

@cursor push f6e886e12c
Preview (f6e886e12c)
diff --git a/src/editor/sentry_editor_export_plugin_ios.cpp b/src/editor/sentry_editor_export_plugin_ios.cpp
--- a/src/editor/sentry_editor_export_plugin_ios.cpp
+++ b/src/editor/sentry_editor_export_plugin_ios.cpp
@@ -5,6 +5,9 @@
 #include "export_utils.h"
 #include "gen/sdk_version.gen.h"
 
+#define SENTRY_STRINGIFY_HELPER(x) #x
+#define SENTRY_STRINGIFY(x) SENTRY_STRINGIFY_HELPER(x)
+
 using namespace sentry::editor;
 
 String SentryEditorExportPluginIOS::_get_name() const {
@@ -27,7 +30,7 @@
 	if (is_builtin_option_or_hidden_export_option(p_option, "application/min_ios_version")) {
 		String min_ios_version = get_option("application/min_ios_version");
 		if (min_ios_version.to_float() < SENTRY_IOS_MIN_VERSION) {
-			return "Sentry requires \"Min iOS version\" 15.0 or higher. Please adjust this setting.";
+			return "Sentry requires \"Min iOS version\" " SENTRY_STRINGIFY(SENTRY_IOS_MIN_VERSION) " or higher. Please adjust this setting.";
 		}
 	}
 	return String();

This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

@limbonaut limbonaut requested a review from jpnurmi April 3, 2026 09:07
Copy link
Copy Markdown

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Co-authored-by: J-P Nurmi <jpnurmi@gmail.com>
@limbonaut limbonaut merged commit 10b064f into main Apr 7, 2026
125 of 126 checks passed
@limbonaut limbonaut deleted the feat/export-warning-ios-version branch April 7, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants