New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
readlink -f added in XCode < 14.3 causes archiving error #125286
Comments
Hi @rafaellop, please provide the full verbose output of Thank |
Here's the log from the |
Thanks for the logs. Can you also share your Thank you |
This isn't coming from Flutter, which explicitly doesn't add the flag unless you're running >= Xcode 14.3 flutter/packages/flutter_tools/lib/src/migrations/cocoapods_script_symlink.dart Lines 36 to 40 in 5d3c1ca
This is coming from CocoaPods: Essentially CocoaPods 1.12.1 isn't compatible with Xcode 13.x if that doesn't understand the |
@rafaellop I strongly suggest filing an issue with CocoaPods with reproduction steps. The workaround from Flutter would be to figure out which Xcode version understands this flag and bump the minimum required to that. |
I archived and
@rafaellop can you give very specific reproduction steps? I don't see it. |
@jmagman I also think it's from cocoapods. Regarding the reproduction steps, I've given them in my issue:
I can reproduce that each time I try them. To be more sure you can also clean build in Xcode. @danagbemava-nc Are the |
I believe it might help us reproduce the issue. I also tried to repro with a few of the plugins I saw in your logs with Xcode 13.4.1 and cocoapods 1.12.1 on codemagic and I could not reproduce the bug. |
OK, attached below. I'd like to mention one thing specific to my project if that may matter. Some of my project files in the
In the file system it looks this way: Now the files you asked:
|
Yeah I saw that, I'm asking for actually specific steps starting with a |
Platform "as above" is the information about Flutter, MacOS, XCode, versions. I didn't tested using other versions. It's the only platform/environment I use. OK, now I get what you mean as "steps". I'll try to go all the way starting from |
So I did a test on a clean project in the same environment:
Finally checked in the XCode the I also did another test and instead of the |
I have same question😢. MacOS big sur 11.7.6 with xcode 13.2.1. mkdir -p /Users/Apple/Library/Developer/Xcode/DerivedData/Runner-cvmzclsfhrthrpcxtfbbfpvtascf/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/Runner.app/Frameworks |
This comment was marked as duplicate.
This comment was marked as duplicate.
The
I'm not sure what else we could do here other than bump the minimum Xcode version to 14. |
I am going to bump the Flutter-enforced minimum version to Xcode 14. If you're seeing this:
Ideally they would add a workaround to this on their side but I don't see a single issue actually reporting it, so they may not even know. |
Looks like CocoaPods 1.12.1 is incompatible with < Xcode 14 due to CocoaPods/CocoaPods#11828 (see #123890 for context). Bump the minimum Xcode version allowed by tooling to 14, released September 2022. ``` [!] Xcode - develop for iOS and macOS (Xcode 13.4) � Flutter requires Xcode 14 or higher. Download the latest version or update via the Mac App Store. ``` Fixes #125286. Previous bump at #97746.
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 |
Is there an existing issue for this?
Steps to reproduce
Unfortunately the fix with
readlink -f
(#123890) doesn't work for older Xcode/MacOS reporting error:readlink: illegal option -- f
when trying toflutter build ipa
. My env is:[✓] Flutter (Channel stable, 3.7.12, on macOS 12.0)
[✓] Xcode - develop for iOS and macOS (Xcode 13.4.1)
It started to happen when I did
flutter upgrade
to the latest (from 3.7.7 or so).To reproduce:
flutter clean
flutter build ipa
or precede it withflutter pub get
(doesn't matter in fact)Encountered error while archiving for device.
and a few rows above there's error message:Expected results
No errors when building archives. No -f flag added on XCode version < 14.3
Actual results
Building archive is broken with error message
Encountered error while archiving for device.
caused by the -f flag.Code sample
Code sample
[Paste your code here]
Screenshots or Video
Screenshots / Video demonstration
[Upload media here]
Logs
Logs
Flutter Doctor output
Doctor output
I don't have Android and Chrome installed on this machine so not included in the doctor log.
The text was updated successfully, but these errors were encountered: