Skip to content

[CP] Upgrading to Xcode 14.3 will not build when plugin transitive dependencies have a low deployment target #124529

Closed
@jmagman

Description

@jmagman

issue_link

#124340

Commit Hash

c60f20

Target

stable

pr_link

#124527

Impacted Users

App developers running latest Xcode building iOS or macOS apps with certain plugins, including some firebase plugins

Impact Description

When running latest Xcode (14.3) iOS and macOS apps will not build when using certain plugins that have dependencies with very low iOS target versions. This includes any apps that use firebase_auth.

Workaround

  1. Downgrade to Xcode 14.2
  2. Add a workaround to ios/Podfile and macos/Podfile that sets the pods to the same version the Flutter app is targeting. https://stackoverflow.com/questions/75574268/missing-file-libarclite-iphoneos-a-xcode-14-3

Screenshot 2023-04-06 at 1 23 41 PM``

Risk

low

Test Coverage

yes

Validation Steps

  1. Check out 3.7.10 or be on master to pick up Upgrading to Xcode 14.3 breaks iOS app publishing: link_stat failed: No such file or directory #123890
$ flutter create test_create
$ cd test_create
  1. Add a plugin with a lower-than-9 iOS dependency target (I used flutter_appauth) as a pubspec dependency.
$ flutter build ios

On master this does not build:

Error (Xcode): File not found: /Users/m/Applications/Xcode-14-3.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a


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

On this PR it does build.

Metadata

Metadata

Assignees

Labels

cp: approvedApproved cherry-pick requestcp: merge-to-stableCherry-picks that should be merged to stablecp: mergedCherry-pick has been merged to the release branch.cp: reviewCherry-picks in the review queue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions