iOS Bug--- Xcode14.3.1 packaging error Command PhaseScriptExecution failed with a nonzero exit code

Error message
Xcode14.3.1 packaging error Command PhaseScriptExecution failed with a nonzero exit code

 

Solution:

Method 1 (recommended)

  • Use sudo gem update cocoapods to update cocoapods, the problem will be fixed in version 1.12.1 .
  • Delete the Podfile.lock, project name.xcworkspace file and Pods folder in the project root directory
  • Use pod install again, and the packaging will be normal again.

Method 2

In the Xcode project Pods -> Targets Support Files -> Pods-project name-> Pods-project name-frameworks (about line 44) will

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

Replace with

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

 

Guess you like

Origin blog.csdn.net/jiaxin_1105/article/details/131684697