下载地址:https://developer.apple.com/download/all/
我目前使用的版本是Xcode15.2
我新创建了一个项目,可以正常运行
执行pod install 后报错:
rsync error: some files could not be transferred (code 23) at /AppleInternal/Library/BuildRoots/0032d1ee-80fd-11ee-8227-6aecfccc70fe/Library/Caches/com.apple.xbs/Sources/rsync/rsync/main.c(996) [sender=2.6.9]
Command PhaseScriptExecution failed with a nonzero exit code
查了很多解决方案都是Xcode14的解决方案,参考:https://github.com/CocoaPods/CocoaPods/pull/11828
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}")"
但是在Xcode15上这个本来就是加了-f的,所以无效,最终找到解决方法