Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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
1 task done
soch opened this issue Mar 7, 2023 · 125 comments
Milestone

Comments

@soch
Copy link

soch commented Mar 7, 2023

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 'git@github.com:****/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
@soch
Copy link
Author

soch commented Mar 7, 2023

Same issue with another project, but on a different pod, with Xcode Version 14.3 beta 2 (14E5207e)

PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/***/Library/Developer/Xcode/DerivedData/***-ehzrhcbcmklhkvbkrxeytldhfkbv/Build/Intermediates.noindex/ArchiveIntermediates/***/IntermediateBuildFilesPath/***.build/Release-iphoneos/***.build/Script-1199B50C6A9AA53E8DDB08C3.sh (in target '***' from project '***')
    cd /Users/***/WORK/***ion-iOS
    /bin/sh -c /Users/***/Library/Developer/Xcode/DerivedData/***-ehzrhcbcmklhkvbkrxeytldhfkbv/Build/Intermediates.noindex/ArchiveIntermediates/***/IntermediateBuildFilesPath/***.build/Release-iphoneos/***.build/Script-1199B50C6A9AA53E8DDB08C3.sh

mkdir -p /Users/***/Library/Developer/Xcode/DerivedData/***-ehzrhcbcmklhkvbkrxeytldhfkbv/Build/Intermediates.noindex/ArchiveIntermediates/***/BuildProductsPath/Release-iphoneos/***.app/Frameworks
Symlinked...
rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaLumberjack.framework" "/Users/***/Library/Developer/Xcode/DerivedData/***-ehzrhcbcmklhkvbkrxeytldhfkbv/Build/Intermediates.noindex/ArchiveIntermediates/***/InstallationBuildProductsLocation/Applications/***.app/Frameworks"
building file list ... rsync: link_stat "/Users/***/WORK/***ion-iOS/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaLumberjack.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

Podfile:

source 'ssh://github.com/CocoaPods/Specs.git'

ensure_bundler! '~> 2.4.3'

workspace '***.xcworkspace'
platform :ios, '12.0'
use_frameworks!

target :*** do
    project './***.xcodeproj'
    pod 'CocoaLumberjack/Swift', '3.4.2'
    # pod 'Firebase'
    pod 'DateTools'
    pod 'MBProgressHUD', '1.2.0'
end

target :***Tests do
    project ‘./***.xcodeproj'
    pod 'OCMock', '3.9.1'
    pod 'SwiftFormat/CLI'
end

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
            config.build_settings['SWIFT_VERSION'] = '4.0'
        end
    end
end

@soch
Copy link
Author

soch commented Mar 7, 2023

Attaching a sample Xcode project using one of the pods. Please use Xcode Version 14.3 beta 2 (14E5207e) to see the archiving issue. The app will run on simulator but the archive will fail with following:
building file list ... rsync: link_stat "/Users/***/WORK/test4/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Alamofire.framework" failed: No such file or directory (2)
test4.zip

@deeje
Copy link

deeje commented Mar 21, 2023

same, on Xcode 14.3 RC, across several projects

@captain-black
Copy link

same issue!

Same issue with another project, but on a different pod, with Xcode Version 14.3 beta 2 (14E5207e)

PhaseScriptExecution [CP]\ Embed\ Pods\ Frameworks /Users/***/Library/Developer/Xcode/DerivedData/***-ehzrhcbcmklhkvbkrxeytldhfkbv/Build/Intermediates.noindex/ArchiveIntermediates/***/IntermediateBuildFilesPath/***.build/Release-iphoneos/***.build/Script-1199B50C6A9AA53E8DDB08C3.sh (in target '***' from project '***')
    cd /Users/***/WORK/***ion-iOS
    /bin/sh -c /Users/***/Library/Developer/Xcode/DerivedData/***-ehzrhcbcmklhkvbkrxeytldhfkbv/Build/Intermediates.noindex/ArchiveIntermediates/***/IntermediateBuildFilesPath/***.build/Release-iphoneos/***.build/Script-1199B50C6A9AA53E8DDB08C3.sh

mkdir -p /Users/***/Library/Developer/Xcode/DerivedData/***-ehzrhcbcmklhkvbkrxeytldhfkbv/Build/Intermediates.noindex/ArchiveIntermediates/***/BuildProductsPath/Release-iphoneos/***.app/Frameworks
Symlinked...
rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaLumberjack.framework" "/Users/***/Library/Developer/Xcode/DerivedData/***-ehzrhcbcmklhkvbkrxeytldhfkbv/Build/Intermediates.noindex/ArchiveIntermediates/***/InstallationBuildProductsLocation/Applications/***.app/Frameworks"
building file list ... rsync: link_stat "/Users/***/WORK/***ion-iOS/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/CocoaLumberjack.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

Podfile:

source 'ssh://github.com/CocoaPods/Specs.git'

ensure_bundler! '~> 2.4.3'

workspace '***.xcworkspace'
platform :ios, '12.0'
use_frameworks!

target :*** do
    project './***.xcodeproj'
    pod 'CocoaLumberjack/Swift', '3.4.2'
    # pod 'Firebase'
    pod 'DateTools'
    pod 'MBProgressHUD', '1.2.0'
end

target :***Tests do
    project ‘./***.xcodeproj'
    pod 'OCMock', '3.9.1'
    pod 'SwiftFormat/CLI'
end

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            config.build_settings.delete 'IPHONEOS_DEPLOYMENT_TARGET'
            config.build_settings['SWIFT_VERSION'] = '4.0'
        end
    end
end

I think the problem is coming by the command: "cd /Users/***/WORK/***ion-iOS"

@andrewmurraydavid
Copy link

andrewmurraydavid commented Mar 22, 2023

Update: Can confirm that running in XCode Cloud 14.2 (14C18) does not have this issue, but any 14.3 reveals this issue.

Same issue with a basic Capacitor config:

require_relative '../../node_modules/@capacitor/ios/scripts/pods_helpers'

platform :ios, '13.0'
use_frameworks!

# workaround to avoid Xcode caching of Pods that requires
# Product -> Clean Build Folder after new Cordova plugins installed
# Requires CocoaPods 1.6 or newer
install! 'cocoapods', :disable_input_output_paths => true

def capacitor_pods
  pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
  pod 'CapacitorCamera', :path => '../../node_modules/@capacitor/camera'
  pod 'CapacitorLocalNotifications', :path => '../../node_modules/@capacitor/local-notifications'
  pod 'CapacitorNetwork', :path => '../../node_modules/@capacitor/network'
  pod 'CapacitorPreferences', :path => '../../node_modules/@capacitor/preferences'
  pod 'CapacitorPushNotifications', :path => '../../node_modules/@capacitor/push-notifications'
  pod 'CapacitorShare', :path => '../../node_modules/@capacitor/share'
  pod 'CapacitorStatusBar', :path => '../../node_modules/@capacitor/status-bar'
end

target 'App' do
  capacitor_pods
  # Add your Pods here
end

post_install do |installer|
  assertDeploymentTarget(installer)
end
mkdir -p /Volumes/workspace/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/App/BuildProductsPath/Release-iphoneos/App.app/Frameworks

Symlinked...

rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Capacitor.framework" "/Volumes/workspace/DerivedData/Build/Intermediates.noindex/ArchiveIntermediates/App/InstallationBuildProductsLocation/Applications/App.app/Frameworks"

building file list ... rsync: link_stat "/Volumes/workspace/repository/ios/App/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/Capacitor.framework" failed: No such file or directory (2)

done

@skuske
Copy link

skuske commented Mar 23, 2023

Same issue here, any workaround or fix?

@chrisvasselli
Copy link
Contributor

I think I found the issue, created a PR: #11828

@chrisvasselli
Copy link
Contributor

Workaround is to update all the generated ...-frameworks.sh files to add the -f flag to the call to readlink. In other words, replace
source="$(readlink "${source}")"
with
source="$(readlink -f "${source}")"

This is my first time contributing to CocoaPods though, so take it with a grain of salt!

@andrewmurraydavid
Copy link

Same issue here, any workaround or fix?

@skuske locally, if you still have an XCode 14.2, you should be able to go in Xcode Settings (in your Xcode 14.3 RC) > Locations tab and then select Command Line Tools and choose Xcode 14.2 (14C18)

image

If you're having the issue on Xcode Cloud, then you want to Edit your workflow > Environment select Xcode Version and choose Xcode 14.2 (14C18):
image

Can confirm both worked for me, but I've been actively using the latter.

@skuske
Copy link

skuske commented Mar 23, 2023

@andrewmurraydavid

Many thanks. I am running it locally and re-downloaded 14.2 yesterday due to this issue. And yes, I can also confirm that your workaround helps. Xcode is fundamentally slower with archiving now, but it works.

@combinatorial
Copy link

Workaround is to update all the generated ...-frameworks.sh files to add the -f flag to the call to readlink

I can confirm this works for us (we need Xcode 14.3 due to some new APIs enabled).

@RamblinWreck77
Copy link

@chrisvasselli Your fix worked! I was able to archive on Xcode 14.3 without issue after modifying my local script to match your PR

@olliwang
Copy link

olliwang commented Mar 27, 2023

Not sure why but I got another similar issue that frameworks locate in another directory when using Xcode 14.3. The fix is #11833

@benjamin-es-hall
Copy link

Wasn't expecting fix with this, but just to add still an issue on Xcode 14.3 RC2

@Pranoy1c
Copy link

I just faced this issue on a freshly downloaded Xcode Version 14.3 (14E222a).

@holyavkin
Copy link

holyavkin commented Mar 30, 2023

@Pranoy1c 14E222a is not the latest. 14E222b is the one. However, this issue still persists. Waiting for an update on cocoapods.

@lilidotshi
Copy link

lilidotshi commented Mar 31, 2023

Experiencing this problem as well would love a fix, especially since 14.3 was just released generally.

@xyh19981224
Copy link

xyh19981224 commented Mar 31, 2023

Pods-项目名-frameworks.sh文件:
source="$(readlink "${source}")"
替换为
source="$(readlink -f "${source}")"真的有效。Xcode14.3可以正常Archive !
@chrisvasselli 非常感谢您做的贡献。

@Danny-SS
Copy link

We have been experiencing this too. We need to efficiently test against iOS 16.4. With this blocker in Xcode 14.3 using cocoapods, we are stuck as most developers are.

The workaround is OK, but temporary in our current pipeline flow. I can archive adding an -f flag, or switch to using command line 14.2, but that is not ideal. It messes up all of our automation in our CI pipeline.

There has been a PR out there to fix for a couple of days. I am hoping this can get some priority.

@AmanMasipeddi
Copy link

Experiencing this problem. Hopefully this will be fixed soon

@alkanyunus
Copy link

I am waiting for this to make a build for unity project also.

@jbouaziz
Copy link

jbouaziz commented Apr 1, 2023

Everybody is currently blocked, we've acknowledged that.
Could you stop sending comments saying that you're blocked without actually contributing? It's just adding noise to the actual thread. 🙏

@esodot
Copy link

esodot commented Apr 1, 2023

Thanks for inspiration from comment.
Just modified the Pods-Runner-frameworks.sh in my Flutter Project adding the "-f" and pressed "Archive" in XCode, so it worked again.

/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh

if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink -f "${source}")"
  fi

@Lordx3n0saeon

This comment was marked as off-topic.

@orta
Copy link
Member

orta commented May 24, 2023

I've blocked the last commenter from the CocoaPods org, I guess you can't stop people being idiots on the internet on the long run - but that sort of thing isn't acceptable here.

@Gargo
Copy link

Gargo commented May 24, 2023

@vadimwe pod --version returns 1.12.1 but it doesn't work, manual -f works only. Tried to execute deintegrate-install but it has no effect - the problem persists. I also tried to move the project into another pc and install from zero - in that case it works. But how to fix it in existing project?

@Teo-BH
Copy link

Teo-BH commented May 26, 2023

We had the same problem with Xcode 14.3 and Cocoapods 1.12.1 on an Intel Macbook. To fix it, we replaced the line source="$(readlink -f "${source}")" with source="$(realpath "${source}")" in the ...-frameworks.sh files.

mokagio added a commit to wordpress-mobile/WordPress-iOS that referenced this issue May 30, 2023
mokagio added a commit to wordpress-mobile/WordPress-iOS that referenced this issue May 30, 2023
@dhaslkfha
Copy link

update pod to 1.12.1

@cesariel
Copy link

cesariel commented Jun 6, 2023

@chrisvasselli workaround worked for me

@HyunjoonKo
Copy link

If there are people who cannot be solved with the readlink -f command, try changing readlink to greadlink.

# ...
  if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(greadlink -f "${source}")"
  fi
# ...

Reference:

@raghav-kokotree
Copy link

raghav-kokotree commented Jun 28, 2023

If you are in the Ionic app the fix is to run these commands at ios/App/App path and build the solution again for ios

sudo gem install cocoapods

pod install

@joshuacba08
Copy link

Thanks raghav-kokotree. I was implemented your recomendation and my app it's work!

@vlack-coder
Copy link

We had the same problem with Xcode 14.3 and Cocoapods 1.12.1 on an Intel Macbook. To fix it, we replaced the line source="$(readlink -f "${source}")" with source="$(realpath "${source}")" in the ...-frameworks.sh files.

Funny enough, this is what worked for me.... Doing the complete opposite of earlier comments. It is well

@mazud21
Copy link

mazud21 commented Jul 20, 2023

source

Thanks for inspiration from comment. Just modified the Pods-Runner-frameworks.sh in my Flutter Project adding the "-f" and pressed "Archive" in XCode, so it worked again.

/ios/Pods/Target Support Files/Pods-Runner/Pods-Runner-frameworks.sh

if [ -L "${source}" ]; then
    echo "Symlinked..."
    source="$(readlink -f "${source}")"
  fi

save my day, thanks @esodot

@usmanabid94
Copy link

For the people facing error in Xcode after update to 14.3.

In your xcode, Go to PODS folder :
Target Support Files => Pods-{Your Project} => Pods-{Your Project}-frameworks

Change

source="$(readlink "${source}")"
this :

source="$(readlink -f "${source}")"

@StephanBis
Copy link

We are still facing this issue even after upgrading to 1.12.1 on Xcode 14.3.
The ...-frameworks file is being generated correctly with the "-f". But builds are still failing.

What we have tried so far:

  • Deleted Pods folder and podfile.lock (and afterwards pod install)
  • Deleted DerivedData folder in project and Xcode folder
  • Cleaned project in Xcode

Does anyone have a clue what we might be missing here?

@usmanabid94
Copy link

@StephanBis can you share the error or a screenshot that appears at your side.

@StephanBis
Copy link

StephanBis commented Aug 11, 2023

@StephanBis can you share the error or a screenshot that appears at your side.

Now that I look at it again, it might have something to do with signing? However, when deploying via XCode everything seems to work fine.
image

@usmanabid94
Copy link

@StephanBis is this happening when you try to archive the app?

@StephanBis
Copy link

@StephanBis is this happening when you try to archive the app?

No, this is when building with Ionic/Capacitor. Archiving is fixed now, however since the error remained the same I was hoping that Cocoapods was the issue. But I think I have to check on the Capacitor issue page.

@usmanabid94
Copy link

@StephanBis have you added the fix mentioned above to replace code for source of frameworks in your frameworks.sh file ?

@FridaySG
Copy link

I can also confirm that this is still an issue on Xcode 14.3 + 1.12.1 as well. I have tried all of the above solutions with no success.

@usmanabid94
Copy link

@FridaySG can you share the screenshot for the issue and the fix you added to avoid these but they did not worked for you.

@StephanBis
Copy link

StephanBis commented Aug 18, 2023

@StephanBis have you added the fix mentioned above to replace code for source of frameworks in your frameworks.sh file ?

My understanding is you don't have to put in the fix manually as updating the package would suffice. However, after adding the manual fix, I am still facing this issue.

Edit: I've checked the generated (derived data) shell script and followed it to the pods-app-frameworks.sh file. I can literally see "readlink -f", so I really do not understand why this issue is still present.

@rmoehle
Copy link

rmoehle commented Aug 19, 2023

@StephanBis can you share the error or a screenshot that appears at your side.

Now that I look at it again, it might have something to do with signing? However, when deploying via XCode everything seems to work fine. image

I have the same issue. It is somehow related to code signing, since the error can be easily reproduced by running the codesign command in a terminal and getting an error

@ashrafkvt
Copy link

ashrafkvt commented Aug 22, 2023

Have they added any official fixes since I can see the ticket closed? the archival works fine when I change the line

source="$(readlink "${source}")"
to
source="$(readlink -f "${source}")"

@StephanBis
Copy link

@StephanBis can you share the error or a screenshot that appears at your side.

Now that I look at it again, it might have something to do with signing? However, when deploying via XCode everything seems to work fine. image

I have the same issue. It is somehow related to code signing, since the error can be easily reproduced by running the codesign command in a terminal and getting an error

Yes, this was our issue. It was a case of very bad timing, our development certificate expired on the same day of updating CocoaPods. After renewing the certificate everything starting working.
@usmanabid94 you don't have to manually put in the fix after updating CocoaPods.

@usmanabid94
Copy link

@StephanBis can you share the error or a screenshot that appears at your side.

Now that I look at it again, it might have something to do with signing? However, when deploying via XCode everything seems to work fine. image

I have the same issue. It is somehow related to code signing, since the error can be easily reproduced by running the codesign command in a terminal and getting an error

Yes, this was our issue. It was a case of very bad timing, our development certificate expired on the same day of updating CocoaPods. After renewing the certificate everything starting working. @usmanabid94 you don't have to manually put in the fix after updating CocoaPods.

@StephanBis Thank you for updating (Y)

@usmanabid94
Copy link

Have they added any official fixes since I can see the ticket closed? the archival works fine when I change the line

source="$(readlink "${source}")" to source="$(readlink -f "${source}")"

@ashrafkvt you can update the cocoapods to latest version and this is fixed in that

davidsansome added a commit to davidsansome/tsurukame that referenced this issue Sep 29, 2023
@nicolastinkl
Copy link

source="$(readli

It's work for me .

mkdir -p /Users/abc123456/Library/Developer/Xcode/DerivedData/Unity-iPhone-dbyrhgwthgvsyladuzytfjhmkrua/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/BuildProductsPath/Release-iphoneos/GoalFlashAnalytics.app/Frameworks Symlinked... rsync --delete -av --filter P .*.?????? --links --filter "- CVS/" --filter "- .svn/" --filter "- .git/" --filter "- .hg/" --filter "- Headers" --filter "- PrivateHeaders" --filter "- Modules" "../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/LeanCloudObjc.framework" "/Users/abc123456/Library/Developer/Xcode/DerivedData/Unity-iPhone-dbyrhgwthgvsyladuzytfjhmkrua/Build/Intermediates.noindex/ArchiveIntermediates/Unity-iPhone/InstallationBuildProductsLocation/Applications/GoalFlashAnalytics.app/Frameworks" building file list ... rsync: link_stat "/Users/abc123456/Documents/ios/iOSUnityProject/129-Goal-Flash-Analytics/../../../IntermediateBuildFilesPath/UninstalledProducts/iphoneos/LeanCloudObjc.framework" failed: No such file or directory (2)

image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests