upgraded to swift 2, and cocoapods -.38.2 now getting build error Command /bin/sh failed with exit code 23

丶灬走出姿态 提交于 2019-12-22 03:41:40

问题


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:


I had this same issues and I cleaned the Build Folder via:

Product -> hold ALT pressed -> Clean Build Folder




回答2:


Removing derived data works too Xcode -> Preferences -> Locations -> tap on the derived data arrow -> Drag the derived data folder to trash




回答3:


I had the same and nothing helped. I deleted the Pods folder from my project and ran pod install again. It worked…



来源:https://stackoverflow.com/questions/32586144/upgraded-to-swift-2-and-cocoapods-38-2-now-getting-build-error-command-bin-s

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!