Is Xcode required for mac build?

103 views
Skip to first unread message

Vibhav Gupta

unread,
May 5, 2021, 11:40:42 AM5/5/21
to pdfium
Hi,

I was trying to generate the build files in the following way but it was leading to an error.

gn args out/Debug

Arguments:

is_debug = true # Enable debugging features.
# Set true to enable experimental Skia backend.
pdf_use_skia = false
# Set true to enable experimental Skia backend (paths only).
pdf_use_skia_paths = false
pdf_enable_xfa = false # Set false to remove XFA support (implies JS support).
pdf_enable_v8 = false # Set false to remove Javascript support.
pdf_is_standalone = true # Set for a non-embedded build.
is_component_build = false # Disable component build (Though it should work)

Error:

ERROR at //build/config/mac/mac_sdk.gni:92:19: Script returned non-zero exit code.
_mac_sdk_result = exec_script(script_name, sdk_info_args, "scope")
^----------
Current dir: /Users/vibhavgupta/coding/repo/pdfium/out/Debug/
Command: python /Users/vibhavgupta/coding/repo/pdfium/build/config/apple/sdk_info.py macosx
Returned 1.
stderr:
xcode-select: error: tool 'xcodebuild' requires Xcode, but active developer directory '/Library/Developer/CommandLineTools' is a command line tools instance

Would this error mean that I would need to install Xcode on mac to do the build? Please if you could let me know.

Thanks & Regards,
Vibhav Gupta

Lei Zhang

unread,
Jun 10, 2021, 1:40:31 PM6/10/21
to Vibhav Gupta, pdfium
I'm not a Mac build expert, but given the error you see, I would
imagine the answer is yes. Any reason why you are developing on Mac
and want to avoid installing Xcode?
> --
> You received this message because you are subscribed to the Google Groups "pdfium" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pdfium+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pdfium/c922c225-8351-41ef-8a7d-e4e1588d1bcdn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages