skip to Main Content

I am trying to make an archive of my project but it fails, giving following error:

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 Version: 14.3
  • Pods version: 1.12.0

Following is my 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

I have also note that if I add my dependencies via package manager my archvive is successful but in case if I use CocoaPods App Archive fails

2

Answers


  1. First

    1. Press ‘Command + Shift + F’ and find source="$(readlink "${source}")
    2. Insert ‘-f’ to the above code like source="$(readlink -f "${source}")"

    Second

    1. Move to ‘Targets> YourAppName > BuildPhases’.
    2. Drag ‘Firebase crashlytics’ to last
      Build Phases

    (In my case, the order of Build Phases was changed by Xcode 14.3, which caused a problem.
    So, You should confirm the Firebase Crashlytics shell command is at the end.)

    Login or Signup to reply.
  2. This has been fixed in cocoa pods 1.12.1.

    After updating cocoa pods, also update your pods in the project.

    If it still does not work, try this:

    pod deintegrate
    pod install
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search