Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"locheck discoverlproj" - Build failed Command PhaseScriptExecution failed with a nonzero exit code #6296

Closed
zh-hl opened this issue Jun 14, 2022 · 3 comments
Labels
O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Something isn't working: bugs, crashes, hangs and other reported problems

Comments

@zh-hl
Copy link
Contributor

zh-hl commented Jun 14, 2022

Steps to reproduce

I find out that with the addition of locheck library, the project build will failed during PhaseScriptExecution if the project path contain space.

  1. Clone project to directory with name containing space
  2. Do the xcodegen, pod install, brew install mint
  3. open Riot.xcworkspace
  4. Build the project

Outcome

What did you expect?

Project built successfully

What happened instead?

Received "Uncategorized" error with message "Command PhaseScriptExecution failed with a nonzero exit code"

Did you resolved it?

If I move the project to different directory without space in its name, the project builds correctly.

Alternatively,

  1. I modify the Riot/target.yml:61
    from
    xcrun --sdk macosx mint run Asana/[email protected] discoverlproj --treat-warnings-as-errors --ignore-missing --ignore lproj_file_missing_from_translation $PROJECT_DIR/Riot/Assets
    into
    xcrun --sdk macosx mint run Asana/[email protected] discoverlproj --treat-warnings-as-errors --ignore-missing --ignore lproj_file_missing_from_translation "$PROJECT_DIR/Riot/Assets"

  2. delete Riot.xcodeproj

  3. redo the xcodegen

  4. and reopen Riot.xcworkspace

  5. then the project will build normally.

Your phone model

Macbook Pro Intel

Operating system version

Monterey 12.3, XCode 13.4.1

Application version

element-ios branch master #2cb650b

Homeserver

matrix.org

Will you send logs?

Yes

@zh-hl zh-hl added the T-Defect Something isn't working: bugs, crashes, hangs and other reported problems label Jun 14, 2022
@ismailgulek ismailgulek added S-Minor Impairs non-critical functionality or suitable workarounds exist O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience labels Jun 15, 2022
@ismailgulek
Copy link
Contributor

Hey @zh-hl thanks for reporting the issue. Would you like to contribute your fix as a PR?

@zh-hl
Copy link
Contributor Author

zh-hl commented Jun 15, 2022

@ismailgulek sure, I will prepare it

@pixlwave
Copy link
Member

Fixed by #6303.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience S-Minor Impairs non-critical functionality or suitable workarounds exist T-Defect Something isn't working: bugs, crashes, hangs and other reported problems
Projects
None yet
Development

No branches or pull requests

3 participants