nickzman / ManOpen

GUI app that formats and displays man pages
BSD 3-Clause "New" or "Revised" License
15 stars 1 forks source link

Command Lex failed with a nonzero exit code #1

Closed ghost closed 2 years ago

ghost commented 3 years ago

What is going wrong here? I am new to building and using Xcode. I have gone through the settings as much as I can to see what may be wrong.

Lex /usr/local/Projects/ManOpen/ManOpen/cat2html.tproj/cat2html.l (in target 'cat2html (Tool)' from project 'ManOpen')
    cd /usr/local/Projects/ManOpen
    export DEVELOPER_DIR\=/Applications/Xcode.app/Contents/Developer
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lex -o /Users/john/Library/Developer/Xcode/DerivedData/ManOpen-bztxjqkaqtyazxhiudyipgfevout/Build/Intermediates.noindex/ManOpen.build/Debug/cat2html\ \(Tool\).build/DerivedSources/cat2html.yy.c /usr/local/Projects/ManOpen/ManOpen/cat2html.tproj/cat2html.l

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/gm4:stdin:1744: ERROR: end of file in string
Command Lex failed with a nonzero exit code
playerofgames commented 2 years ago

I ran into the same issue. Turns out though that the build doesn't even need cat2html—the tool usage is commented out in ManDocument.m. So you can just remove cat2html from your project and build away.

ghost commented 2 years ago

Do you think the project itself should be changed then? Or is cat2html required on older versions of macOS and Xcode?

I didn't look in ManDocument.m and even if I had I wouldn't have drawn that conclusion. Good Grief! Mac OS X Tiger?