Wireshark-dev: [Wireshark-dev] Fwd: MacOS Wireshark build issues

From: Roland Knall <rknall@xxxxxxxxx>
Date: Wed, 2 Apr 2025 15:59:30 +0200
Hi Mike

I would recommend to join our Discord, we can be really helpful there. 

As for the issue, have you ran tools/setup-macos.sh ? or its counterpart for brew?

Usually we do not use XCode for building (too many issues where their buildsystem intervenes in ours) but it can be done if everything is setup correctly.

I would recommend running it on the console with Ninja first though, before trying another XCode build

Generally speaking, MacOS is the default build system for a lot of core devs, so you should be fine. If you need any further help, feel free to let us know

---------- Forwarded message ---------
Von: Mike Thomas <mike.thomas@xxxxxxxxxxxxx>
Date: Mi., 2. Apr. 2025 um 15:47 Uhr
Subject: MacOS Wireshark build issues
To: wireshark-dev-owner@xxxxxxxxxxxxx <wireshark-dev-owner@xxxxxxxxxxxxx>


I am working to build Wireshark in Xcode and have encountered the following error when running

cmake -G Xcode ..


Can someone point me the right direction?


MRT


-- Configuring done (2.6s)

CMake Error in epan/CMakeLists.txt:

  The custom command generating


    /Users/mikeandjules/Development/wireshark/build/epan/ps.c


  is attached to multiple targets:


    epan

    checkAPI_epan


  but none of these is a common dependency of the other(s).  This is not

  allowed by the Xcode "new build system".



-- Generating done (1.2s)

CMake Generate step failed.  Build files cannot be regenerated correctly.