How can I diagnose this error Command /bin/sh failed with exit code 23
sent 130971 bytes received 42 bytes 262026.00 bytes/sec
total size is 130816 speedup is 1.00
rsync -auv "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftSecurity.dylib" "/Users/jinteki/Library/Developer/Xcode/DerivedData/MyApp-xyz/Build/Products/Debug-iphonesimulator/MyApp.app/Frameworks"
building file list ... rsync: link_stat "/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphonesimulator/libswiftSecurity.dylib" 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 /SourceCache/rsync/rsync-45/rsync/main.c(992) [sender=2.6.9]
Command /bin/sh failed with exit code 23
1.11. 2 - September 13, 2021 (287 KB)
To find if Cocoapods is installed or not run cmd (pod --version). if theresult is (Not Found) Pods is not installed.
Cocoapods is an application level dependency manager that runs on objective-c, swift, and any other programming languages that run on Objective-C. It focuses on source-based distribution of third party code and allows automatic integration to your Xcode projects.
While Swift and CocoaPods both support static linking, not all libraries you include do. One of them that you’ll use in this project does not. If you’ve only programmed in Swift, this may look a bit strange. That’s because the Podfile is actually written in Ruby.
Add the following to your Podfile, right after use_frameworks!: This tells CocoaPods you want to include Alamofire version 4.9.1 as a dependency for your project. Save and close the Podfile. You now need to tell CocoaPods to install the dependencies for your project.
CocoaPods is a popular dependency manager for Swift and Objective-C Cocoa projects. Thousands of libraries and millions of apps use it, according to the CocoaPods website. But what is a dependency manager and why do you need one? A dependency manager makes it easy to add, remove, update and manage the third-party dependencies your app uses.
I had this same issues and I cleaned the Build Folder via:
Product -> hold ALT pressed -> Clean Build Folder
Removing derived data works too Xcode -> Preferences -> Locations -> tap on the derived data arrow -> Drag the derived data folder to trash
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With