In Xcode 10.2, when I build a project to run on the Simulator, it works just fine. But when I click Product -> Archive, it fails with the unhelpful message
fatal: No names found, cannot describe anything
Illegal version:
Command PhaseScriptExecution failed with a nonzero exit code
What is the actual problem here? I've tried the lock & unlock trick with Keychain Access , deleting the DerivedData folder, and restarting the computer, but nothing has worked.
It turns out that in Build Phases I had a Run Script which was calling git describe
to generate a version number, and that was raising the error message "fatal: No names found, cannot describe anything".
When I deleted the Run Script's call to git describe
, it worked fine.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.