Skip to content

docs+ci: minimum Xcode for Facebook iOS SDK v19 - #524

Closed
DennisAlund wants to merge 14 commits into
mainfrom
ci/minimum-xcode
Closed

DennisAlund wants to merge 14 commits into
mainfrom
ci/minimum-xcode

Conversation

@DennisAlund

@DennisAlund DennisAlund commented Nov 17, 2026 •

Copy link
Copy Markdown
Member

Stacked on #523 and #522; merge those first.

Problem

Since 0.32.0 (Facebook iOS SDK v19) the plugin needs a recent Xcode, but nothing said so. On an older one the build fails inside the SDK's frameworks with errors that do not point at the cause:

.../FBAEMKit.swiftmodule/arm64-apple-ios.private.swiftinterface:13:63: error: Expected type
.../arm64-apple-ios.private.swiftinterface:13:81: error: Consecutive statements on a line must be separated by ';'

This is what #517 ran into. That PR attributes it to an arm64 simulator exclusion; the SDK's interfaces are the same for every architecture and use Swift module selectors, which need Swift 6.3.

Evidence

A temporary probe in this PR built the example with two Xcode versions on the same runner, same commit:

Xcode Result
26.3 (17C529) Fails with the errors above, on a device build
26.4.1 (17E202) Builds

The runner image has no 26.4.0, so 26.4.1 is what "26.4" was verified with. The probe cell is removed again in the second commit.

Change

  • README: "Configure iOS" states the Xcode 26.4 minimum, and Troubleshooting has an entry with the error text and the two ways out (update Xcode, or stay on ^0.31.1 and run pod update FBSDKCoreKit).
  • CI: a permanent "Xcode 26.4 (minimum)" cell in the iOS SwiftPM job, so the documented minimum keeps building.

.idea/, android/.idea/ and the .iml file are machine-specific, and
because they were tracked they were also published to pub.dev. The
local files stay on disk.
Meta retired Facebook Analytics in 2021; the pubspec description and
podspec summary still named it.
A test checks that pubspec, podspec and the newest CHANGELOG entry
agree on the version, that the Graph API pin is the same in Kotlin,
Swift and the README, and that all three Facebook SDK ranges follow one
major. The publish job also refuses a tag that differs from pubspec.
…stale runs

- Dart checks now run on Flutter 3.41 (floor) as well as stable, with
  flutter analyze on both and a dart format check on stable.
- A new push to a pull request cancels the runs of its older commits.
- Runs on main queue instead of overlapping.
- iOS logPurchase and logProductItem passed any string to the SDK as a
  currency, while Android rejected unknown codes. iOS now validates
  against the ISO 4217 list and returns INVALID_ARGUMENT too.
- Both platforms accept currency codes in any letter case; Android
  only accepted upper case.
- Android logPushNotificationOpen failed on payload values a Bundle
  cannot hold (lists), while iOS accepted them. The SDK only reads the
  fb_push_payload string, so Android now leaves such values out.
Flutter 3.50 reports the example's package:flutter/material.dart import
as a deprecation info. Its replacement is not available on the 3.41
floor, so infos cannot be fatal while both are supported.
Adds a cell that builds with the oldest Xcode expected to work with
Facebook iOS SDK v19, plus a temporary probe on 26.3 that is expected
to fail, to confirm where the floor is before documenting it.
It failed as expected with the SDK's .swiftinterface parse errors,
while the Xcode 26.4 cell built. The 26.4 cell stays.
@DennisAlund
DennisAlund marked this pull request as ready for review November 17, 2026 02:50
The earlier commit with this intent only added the .gitignore entries;
the files themselves stayed tracked.
@DennisAlund

Copy link
Copy Markdown
Member Author

All commits of this PR reached main through #525, which was stacked on top of it. Merging this branch now would change nothing in main (checked with a trial merge). It still showed as open only because its branch carries one extra merge commit that #525's branch does not. Closing as merged via #525.

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