iOS Bug--- Xcode14.3.1打包报错Command PhaseScriptExecution failed with a nonzero exit code

报错信息
Xcode14.3.1打包报错Command PhaseScriptExecution failed with a nonzero exit code

解决方法:

方法1(推荐)

  • 使用sudo gem update cocoapods更新cocoapods,问题将在1.12.1版本已修复。
  • 删除项目根目录下的Podfile.lock、项目名.xcworkspace文件和Pods文件夹
  • 重新使用 pod install,再次打包正常

方法2

在Xcode项目中 Pods -> Targets Support Files -> Pods-项目名 -> Pods-项目名-frameworks 中(大约在第44行)将

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

替换为

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

猜你喜欢

转载自blog.csdn.net/jiaxin_1105/article/details/131684697