Help! Build Fails on New Mac in UnlockForm

I am moving my plugin project to a newer mac.
Old Mac: Monterey 12.7.6, Projucer 7.0.2, Xcode 14.2
New Mac: Sonoma 14.7.3, Projucer 8.0.6, Xcode 16.2

Everything builds fine on the old Mac, but on the new Mac the build fails in the UnlockForm: “No matching member function for call to ‘startThread’”

I am not very experienced. What should I do?

Actually you have found the solution. startThread(4) does not look good. You should call startThread() or something like startThread(juce::Thread::Priority::low).

1 Like

Thanks zsliu98,

The build succeeded! :slight_smile:

I didn’t write this, I believe it was auto generated, or possibly done by a friend that helped me. If I change like you suggest, will it work as well on PC?

AFAIK it should work. But you may need to pay attention to the thread priority. My best guess is juce::Thread::Priority::background.

1 Like

I just used your first suggestion: “startThread()”. I have registered and activated the plugin after that and that worked. Haven’t tested the functionality though.