You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[CP] Upgrading to Xcode 14.3 will not build when plugin transitive dependencies have a low deployment target #124529
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.
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)
Anyway, setting the deployment target to 11 is not a valid workaround for us (in 14.3). It is already set to 13, and the error remains: File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.a
This is just an FYI; we're looking at other workarounds
EDIT:
This was the workaround that ended up working (replace the post_install lines in Podfile):
post_install do |installer|
installer.generated_projects.each do |project|
project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '13.0'
end
end
end
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
We don't really need to document the workaround in detail in this hotfix request, you can check stackoverflow, my point is that the workaround involves manually updating files, which developers shouldn't need to do.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
itsjustkevin commentedon Apr 10, 2023
Approving this as it has already been validated by @christopherfujino and @vashworth on the master channel.
christopherfujino commentedon Apr 10, 2023
LGTM
Force plugin transitive dependencies to an ARC compatible version (#1…
larssn commentedon Apr 11, 2023
I think you mean 14.3 🙂
Anyway, setting the deployment target to 11 is not a valid workaround for us (in 14.3). It is already set to 13, and the error remains:
File not found: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphoneos.aThis is just an FYI; we're looking at other workarounds
EDIT:
This was the workaround that ended up working (replace the
post_installlines in Podfile):jmagman commentedon Apr 11, 2023
Thanks, I did, updated.
I linked to https://stackoverflow.com/questions/75574268/missing-file-libarclite-iphoneos-a-xcode-14-3 which says to set
IPHONEOS_DEPLOYMENT_TARGETas you did. The screenshot was to show you how to figure out what version to set it to.We don't really need to document the workaround in detail in this hotfix request, you can check stackoverflow, my point is that the workaround involves manually updating files, which developers shouldn't need to do.
jmagman commentedon Apr 12, 2023
@CaseyHillers since this was included in 3.7.11 (thank you!), can this be closed?
https://github.com/flutter/flutter/wiki/Hotfixes-to-the-Stable-Channel#3711-apr-12-2023
github-actions commentedon Apr 26, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.