Skip to content

Compiling VST3 ASPiK on XCode 26 #48

@DrWig

Description

@DrWig

Having had my work Mac updated to Sequoia (15.7), I'm now on XCode 26. This causes a few issues with ASPiK.

I'm currently using ASPiK 1.9.3 and VST3SDK 3.7.10 (I've not tried taking the VST3SDK higher than this, yet, as this usually causes many issues)

Firstly, due to the updated CMake app, you need to add an extra flag to get past the deprecated minimum version error:
cmake -DCMAKE_POLICY_VERSION_MINIMUM=3.6 -GXcode ../

UPDATE: I've found the setting for the next fix described below. In the build settings for vstgui and vstgui_uidescription, under 'Other C++ Flags', remove the '-Werror' option and the VSTGUI code won't need changing. Either of these fixes can be applied.

VSTGUI no longer compiles as this version of XCode seems to treat warnings as errors. However, I can't for the life of me find where this setting is turned on (it seems to be off everywhere I look, and even manually setting the -Wno-error=unused-variable flag in the build settings doesn't work. Therefore, I had to change the VSTGUI code. Basically, everywhere you get the error, just surround the 'auto variable =' in the if statements with /* */. e.g.
if (/*auto view = */getMouseDownView ())

After that, the plugin will compile, but you'll get a build fail due to the final step of copying the alias to the VST3 directory (this was also an issue in XCode 16.2 after updating the OS, too). In the build settings for your VST plugin, navigate to the CMake PostBuildRules and add a '/' at the end of Library/Audio/Plug-Ins/VST3. There are two instances of this command (one for the debug build and one for the release). It'll look something like this (after the final / has been added):
ln -svfF /directory stuff/ProjectName/mac_build/VST3/Release/ProjectName_VST.vst3 /Users/youraccount/Library/Audio/Plug-Ins/VST3/

Once you've done this, it'll build!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions