Skip to content

fix: restore SPM-only setup for the example app - #44

Merged
prongbang merged 4 commits into
mainfrom
fix/example-spm-cocoapods-regression
Aug 15, 2026
Merged

prongbang merged 4 commits into
mainfrom
fix/example-spm-cocoapods-regression

Conversation

@prongbang

Copy link
Copy Markdown
Collaborator

Summary

PR #41 (migrate-to-built-in-kotlin) accidentally reintroduced the CocoaPods setup into the example app that had been removed during the Swift Package Manager migration in 1.2.1:

  • example/ios/Podfile was added back
  • example/ios/Flutter/Debug.xcconfig and Release.xcconfig got their Pods #include lines back

This removes them again so the example builds purely via SPM, and bumps the version to 1.2.3.

Changes

  • Delete example/ios/Podfile
  • Drop the Pods #include lines from Debug.xcconfig / Release.xcconfig
  • Bump 1.2.2 -> 1.2.3 in pubspec.yaml and example/pubspec.lock, with a CHANGELOG entry
  • Commit the customLLDBInitFile scheme migration that the Flutter 3.44 tool writes into Runner.xcscheme

Verification

Tested on Flutter 3.44.1 / Xcode 26.1.1:

  • flutter build ios --simulator --no-codesign succeeds (Built build/ios/iphonesimulator/Runner.app)
  • No Pods/ directory or Podfile is generated during the build
  • IOSSecuritySuite is resolved through SPM into build/ios/SourcePackages/checkouts/ (1.9.11) and statically linked into Runner.debug.dylib
  • The app installs and launches on an iPhone 17 simulator without crashing, and the method channel returns real values from the Swift side:
isNotTrust: true
isRealDevice: false
isTampered: false
JailbreakIssue.cydiaFound
JailbreakIssue.notRealDevice

isRealDevice: false / notRealDevice are the expected simulator results, and cydiaFound is the usual simulator false positive — the README already notes that real-device testing is required.

Not covered: only a simulator debug build was verified. A release build on a physical device has not been run.

🤖 Generated with Claude Code

https://claude.ai/code/session_012KsJeLm3N9GSbKbdmRAWX7

prongbang and others added 4 commits August 15, 2026 12:51
PR #41 reintroduced example/ios/Podfile and the Pods xcconfig includes
that were removed during the Swift Package Manager migration in 1.2.1.
Remove them again so the example builds via SPM, and bump to 1.2.3.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012KsJeLm3N9GSbKbdmRAWX7
The Flutter 3.44 tool adds customLLDBInitFile to the Runner scheme so
debugging works on newer iOS runtimes. Committing the generated change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012KsJeLm3N9GSbKbdmRAWX7
Building the example with Flutter 3.44 makes the migrator write
builtInKotlin=false and newDsl=false into example/android/gradle.properties.
Committing them keeps the build reproducible instead of leaving the file
dirty after every build.

Note: builtInKotlin=false keeps the example on the KGP 2.0.0 that the
Flutter Gradle plugin supplies, which the build already warns about. Trying
builtInKotlin=true is left for a separate change.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012KsJeLm3N9GSbKbdmRAWX7
Both CI jobs pinned Flutter 3.35.4 (Dart 3.9.2), but 1.2.2 raised the
constraint to sdk ^3.12.0 / flutter >=3.44.0, so `flutter pub get` failed
version solving before either build could start.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012KsJeLm3N9GSbKbdmRAWX7
@prongbang
prongbang merged commit 437f432 into main Aug 15, 2026
2 checks passed
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.

1 participant