ios 使用CocoaPods时Xcode 14.3更新失败

h5qlskok  于 2023-04-22  发布在  iOS
关注(0)|答案(1)|浏览(324)

我试图使我的项目存档,但它失败,给出以下错误:

sync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework" "/[AppPath]/Build/Intermediates.noindex/ArchiveIntermediates/QA/InstallationBuildProductsLocation/Applications/[APP NAME].app/Frameworks"
building file list ... rsync: link_stat "/[APP_PATH]../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.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
  • MacBook:M1 MacBook Pro
  • MacOS:Ventura 13.2.1
  • Xcode版本:14.3
  • Pod版本:1.12.0

以下是我的PODFILE:

# Uncomment the next line to define a global platform for your project
platform :ios, '13.0'

target '[APP NAME]' do
  # Comment the next line if you don't want to use dynamic frameworks
  use_frameworks!

  pod 'Moya', '~> 14.0.0'
  pod 'Moya/RxSwift',' ~> 14.0.0'
  pod 'Eureka'
  pod 'SwiftSignalRClient'
  
  pod 'Kingfisher'
  #pod 'FMPhotoPicker', '~> 1.3.0'
  
  pod 'iOSDropDown'
  
  #Material TextFields
  pod 'MaterialComponents/TextControls+OutlinedTextAreas'
  pod 'MaterialComponents/TextControls+OutlinedTextFields'
  
  pod 'Blueprints'

  pod 'PhoneNumberKit'
  
  pod 'Firebase/Analytics'
  pod 'Firebase/Crashlytics'
  pod 'FirebaseMessaging'
  pod 'FittedSheets'

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
  end

end

我还注意到,如果我通过包管理器添加依赖项,我的archvive会成功,但如果我使用CocoaPods应用程序归档失败,则会失败

wgmfuz8q

wgmfuz8q1#

第一
1.按“Command + Shift + F”并查找source="$(readlink "${source}")
1.在上面的代码中插入'-f',如source="$(readlink -f "${source}")"
第二
1.移动到“目标〉YourAppName〉构建阶段”。
1.将'Firebase crashlytics'拖到最后Build Phases
(In在我的例子中,Xcode 14.3改变了构建阶段的顺序,这导致了一个问题。所以,你应该确认Firebase Crashlytics shell命令在最后。)

相关问题