I searched the net for a complete guide on how to build a VST2 plugin using Xcode and found some tutorials, especially the guide in the previous post from Nik was useful, but some steps were missing (example Ableton Live 9.1.1 doesn plugin without step 3 ), some of them were redundant. So I decided to write a complete guide for the latest Xcode.
Complete Guide to Creating an Optimized VST2 Plugin Using Xcode 5 on OSX
- Download the VST SDK, it could be the VST3 sdk (3.6 in my case), the vst2.x folder is still there. Unzip it and place it in the
Documents/Xcode folder so that it looks like Documents/Xcode/VST3 SDK - Open Xcode. Create a new
OSX -> Framework & Library -> Bundle project OSX -> Framework & Library -> Bundle Select Cocoa Framework in the dialog box. - When the project is created, on the "Information" tab:
- Add a new
Resource should be file-mapped key Resource should be file-mapped with a value of YES
- In the "Build Settings" tab:
Deployment -> Deployment Location → set YESDeployment -> Deployment Postprocessing → set YESDeployment -> Installation Built Products Location → set /Deployment -> Installation Directory → set /Library/Audio/Plug-Ins/VSTPackaging -> Wrapper Extension → set vstSearch Paths -> Header Search Paths → add path "$(HOME)/Documents/Xcode/VST3 SDK" with quotes, with the recursive flag
Menu -> Product -> Scheme -> Edit Scheme -> Run -> Info -> Build Configuration → set Release- Drag the vst2.x folder from the
VST3 SDK/public.sdk/source/ into the project tree. In the add files dialog box:- uncheck
Copy items into destination group folder - check
Create groups for any added folder - check your project in
Add to targets
- Add your .h and .cpp files for your effect or instrument. You can simply add again.h and again.cpp files from https://github.com/kn0ll/vst-2.4-xcode-examples for verification only.
- Click "Run" (it may warn of an unacceptable type drive in the SDK source - let Xcode fix it).
source share