Closed
Description
Is there an existing issue for this?
- I have searched the existing issuesI have read the guide to filing a bug
Steps to reproduce
- Run
flutter build ipa --release --target lib/main.dart
Actual results
Cannot archive. But, I was able to archive in Xcode 14.2. I use M2 Mac.
Logs
Logs
mkdir -p
/Users/my_account/Library/Developer/Xcode/DerivedData/Runner-fmlhccukvdybtifbzbangdmvqxwz/Build/Intermediates.noindex/ArchiveIntermediates/Runner/BuildProductsPath/Release-iphoneos/Runner.app/Framework
s
Symlinked...
rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules"
"../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FMDB.framework"
"/Users/my_account/Library/Developer/Xcode/DerivedData/Runner-fmlhccukvdybtifbzbangdmvqxwz/Build/Intermediates.noindex/ArchiveIntermediates/Runner/InstallationBuildProductsLocation/Applications/Runner.
app/Frameworks"
building file list ... rsync: link_stat "/Users/my_account/project/linkpocket/ios/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/FMDB.framework" failed: No such file or directory (2)
done
sent 29 bytes received 20 bytes 98.00 bytes/sec
total size is 0 speedup is 0.00
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/9e200cfa-7d96-11ed-886f-a23c4f261b56/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996)
[sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
note: Building targets in dependency order
note: Run script build phase 'Run Script' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Runner' from project
'Runner')
note: Run script build phase 'Thin Binary' will be run during every build because the option to run the script phase "Based on dependency analysis" is unchecked. (in target 'Runner' from project
'Runner')
Result bundle written to path:
/var/folders/5j/stvmgp9n7034vl1rg74k9gtm0000gn/T/flutter_tools.EUZenq/flutter_ios_build_temp_dirxSM3Fb/temporary_xcresult_bundle
Encountered error while archiving for device.
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.7.9, on macOS 13.2.1 22D68 darwin-arm64, locale
ja-JP)
[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.1)
[✓] VS Code (version 1.76.2)
[✓] Connected device (2 available)
[✓] HTTP Host Availability
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
hukusuke1007 commentedon Apr 1, 2023
The path is wrong🤔
These files exist here.
hukusuke1007 commentedon Apr 1, 2023
It appears to be perhaps the following problem.
CocoaPods/CocoaPods#11808
virtualmarc commentedon Apr 1, 2023
There are workarounds in #123852 you can use until it's officially fixed and some discussion in #123857
cerberodev commentedon Apr 3, 2023
this works for me
darshankawar commentedon Apr 3, 2023
The cocoapods issue seem to have been fixed but a new version is not out yet I think, so keep an eye on it and until that time, you may try to use workaround as mentioned here to get it working.
jmagman commentedon Apr 3, 2023
@darshankawar let's duplicate all of these CocoaPods/CocoaPods#11808 reports to #123890.
While this is a CocoaPods issue and has been fixed there, the Flutter team will investigate a workaround. Please follow along in #123890 for updates.
ChegeBryan commentedon Apr 8, 2023
This #123852 worked for me for both iOS Target and Watch Target.