Closed RonghuaHe closed 4 months ago
I'm not seeing a failure myself, and CI is successfully building (mostly) with Xcode 15.4. Can you include the Xcode build output?
Also, which target are you trying to build and for what platform?
System Information
macOS Version 14.5 (Build 23F79) Xcode 15.4 (22622) (Build 15F31d)
Ok, the clue we have here is the wording "PhaseScriptExecution failed" in that video. I think one of the build phases is failing, possibly a custom one. Can you check out the build logs from the failing part here:
I also just tried a fresh check out, and followed all the published directions. The build succeeded for me locally.
clone the repo git submodule update --init --recursive cp User.xcconfig.template User.xcconfig update User.xcconfig with your personal information
I just followed the above operation steps and re-operated, but there was still a build error
Showing Recent Issues /Users/ronghuahe/Library/Developer/Xcode/DerivedData/Edit-crkitrsxwzqthlfurzlqmhjrafsc/Build/Intermediates.noindex/Edit.build/Debug/Edit.build/Script-C9E878122A9F563F0018340C.sh: line 2: /Users/ronghuahe/myIOS/iOS: No such file or directory
Showing Recent Issues Command PhaseScriptExecution failed with a nonzero exit code
Ok we're getting closer.
"/Users/ronghuahe/myIOS/iOS: No such file or directory"
This path does not appear in the project, so it must be coming from the environment somehow. I bet what is happening is the Edit target's "validate build" step is failing. This relies on being able to execute a shell script on your machine within the Xcode build phases.
Somewhere in that same screen is a smaller red x next to the failing step. If you can find it and select it, you can expand it to see the full output of the step.
Also, just to test. What happens if you run this from your shell?
/bin/sh --version
Thanks for your answer, I have found the cause of the problem. The cause of the problem is that my directory file name has Spaces. After deleting the Spaces, you can build. But now there are two new problems: 1, why I Build, not the previous file navigation bar + editor, but a seemingly no function of the editor? 2, select File -> Open, open the folder is an orange background, and no function?
Ah, that's the detail I needed. This is indeed a bug! I can reproduce the failure with a fresh check out in a path containing spaces. Looking into that now.
For your (very resonable) follow-up questions, the answer is that this open source version is not functional at the moment. I'm working on it! Right now, the Quick Look extension does work for the languages currently supported. And I'm working right now on expanding that to match the released version #20 .
Thanks so much both for reporting this and for having the patience to help me debug. I was able to fix up the build phase and this now will work when the repo is at a path with spaces.
When compiling with Version 15.4, an error occurs and cannot be compiled:Command PhaseScriptExecution failed with a nonzero exit code;Could you fix it?