當我在 xcode 中使用產品 > 存檔時,我無法構建我的 ios 產品...
我使用flutter進行開發,并且確實運行過flutter ios build --release。
然后我去xcode運行產品>存檔,我得到這個錯誤
Showing All Issues
Multiple commands produce '/Users/yomate/Library/Developer/Xcode/DerivedData/Runner-ddhhkruxpbzezodlfgvmogmaieov/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework':
1) Target 'GoogleUtilities-00567490' has create directory command with output '/Users/yomate/Library/Developer/Xcode/DerivedData/Runner-ddhhkruxpbzezodlfgvmogmaieov/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework'
2) Target 'GoogleUtilities-54e75ca4' has create directory command with output '/Users/yomate/Library/Developer/Xcode/DerivedData/Runner-ddhhkruxpbzezodlfgvmogmaieov/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework'
哪里有問題?兩天前我已經成功了,但是我現在需要更新版本,它出錯了
uj5u.com熱心網友回復:
試圖將其添加到 pod
target 'Runner' do
use_frameworks!
use_modular_headers!
pod 'GoogleUtilities', '7.7.0'
flutter_install_all_ios_pods File.dirname(File.realpath(__FILE__))
end
post_install do |installer|
installer.pods_project.targets.each do |target|
flutter_additional_ios_build_settings(target)
end
end
target 'ImageNotification' do
use_frameworks!
pod 'Firebase/Messaging'
pod 'GoogleUtilities', '7.7.0'
end
uj5u.com熱心網友回復:
打開終端并執行此命令
rm -rf ~/Library/Developer/Xcode/DerivedData
這將洗掉派生的資料檔案夾。然后在您的專案中洗掉 Pods 檔案夾、Podfile.lock 和 .symlinks 檔案夾。然后運行 ??pod install 并再次運行專案。
轉載請註明出處,本文鏈接:https://www.uj5u.com/ruanti/491665.html
上一篇:以編程方式收藏按鈕Swift
