Skip to content

Upgrade from Xcode 14.2 to 14.3 rsync: link_stat failed: No such file or directory (2) for pods that were working earlier. #11808

Closed
@soch

Description

@soch

Report

What did you do?

Archive an iOS app on Xcode Version 14.3 beta 2 (14E5207e)

What did you expect to happen?

create an .ipa file

What happened instead?

error below:

Xcode Version 14.3 beta 2 (14E5207e)

PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users//Library/Developer/Xcode/DerivedData//Build/Intermediates.noindex/ArchiveIntermediates/Staging/IntermediateBuildFilesPath/.build/Release-iphoneos/*.build/Script-887C37B6C54D972D35131B16.sh (in target '' from project '**')

/bin/sh -c /Users/***/Library/Developer/Xcode/DerivedData/......./Script-887C37B6C54D972D35131B16.sh

Symlinked...

rsync --delete -av --filter P ..?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework" "/Users//Library/Developer/Xcode/DerivedData/-fhmnysqlfziamdezcdnckgrfgtgn/Build/Intermediates.noindex/ArchiveIntermediates/Staging/InstallationBuildProductsLocation/Applications/**.app/Frameworks"

building file list ... rsync: link_stat "/Users/***/***App/iOSRelease/../../../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

Any solution for this issue?
none

CocoaPods Environment

ℹ Please replace these two lines with the output of pod env.
e.g. via pod env | pbcopy

Stack

   CocoaPods : 1.11.3
        Ruby : ruby 2.7.6p219 (2022-04-12 revision c9c2245c0a) [arm64-darwin21]
    RubyGems : 3.1.6
        Host : macOS 13.2.1 (22D68)
       Xcode : 14.2 (14C18)
         Git : git version 2.37.1 (Apple Git-137.1)
Ruby lib dir : /Users/***/.rbenv/versions/2.7.6/lib
Repositories : cocoapods - git - https://github.com/CocoaPods/Specs.git @ a8ba572ab530b5f51fddb18ce369c773d38522c7

               MDLCocoapodSpecs - git - https://github.com/***/MDLCocoapodSpecs.git @ 67ff502c183138829b2aa3b9ec037ddb59bff66c

             

Installation Source

Executable Path: /Users/***/.rbenv/versions/2.7.6/bin/pod

Plugins

cocoapods-deintegrate : 1.0.5
cocoapods-plugins     : 1.0.0
cocoapods-search      : 1.0.1
cocoapods-trunk       : 1.6.0
cocoapods-try         : 1.2.0

Podfile

source '[email protected]:****/MDLCocoapodSpecs.git'
source 'https://github.com/CocoaPods/Specs.git'

ensure_bundler! '~> 2.4.3'

project 'iOSRelease/****.xcodeproj', 'DebugStaging'=>:debug, 'DebugProduction'=>:debug

inhibit_all_warnings!
# Uncomment this line to define a global platform for your project
platform :ios, '13.0'

***
use_frameworks!

def shared_pods
    ****
end

target '****' do
    shared_pods
    app_test_shared_pods
    config = use_native_modules!(".")


    pod 'MMDrawerController', '~> 0.6.0'
   
   ****
 pod 'Alamofire', '~> 5.6.2'
    pod 'Polyline', '~> 5.1.0'

end


post_install do |installer_representation|
    installer_representation.pods_project.targets.each do |target|
        if ['****','IQShaker', '****'].include? target.name
          target.build_configurations.each do |config|
            config.build_settings['SWIFT_VERSION'] = '5.0'
          end
        end
      end


    # Fixed iOS simulator Link error for arm64 architecture on xCode 12.* for Apple M1 chip?
    # alse added on **** -> Build Settings -> Excluded architectures -> DebugStaging
    installer_representation.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
        end
    end

    # Fixed XCode 14 signing pods issue
    installer_representation.generated_projects.each do |project|
      project.targets.each do |target|
        target.build_configurations.each do |config|
          config.build_settings["DEVELOPMENT_TEAM"] = "****"
        end
      end
    end

    #There was a code signing issue after use_frameworks, where each framework Provisioning Profile specifier was set to NO_SIGNING. This was breaking the build.
    # The fix was to add the logic in pod file to go through each and explicitly set the PROVISIONING_PROFILE_SPECIFIER to ''
    # Please refer: https://discuss.circleci.com/t/xcode-9-build-failures-due-to-code-signing-errors-in-pods/16713/2
    installer_representation.pods_project.build_configurations.each do |config|
        config.build_settings['PROVISIONING_PROFILE_SPECIFIER'] = ''
    end
    installer_representation.pods_project.targets.each do |target|
***

        
    end
end

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions