Clean Projucer macOS command line app: "ld: framework not found .framework"

The boilerplate code for a command line app on macOS straight of of the Projucer no longer compiles for me. I’m on macOS 10.13.5, Xcode 9.4, latest JUCE master.

When compiling, it appears to be throwing a linker error because the Projucer is telling it to link against “.framework”, some sort of nameless variable.

Specifically, here is a dump of the full linker command causing the error. Again, this is on a fresh out of the box command line app from the Projucer.

Ld build/Debug/testcommand normal x86_64
cd /Users/jonathon/Projects/testcommand/Builds/MacOSX

/Applications/ -arch x86_64 -isysroot /Applications/ -L/Users/jonathon/Projects/testcommand/Builds/MacOSX/build/Debug -F/Users/jonathon/Projects/testcommand/Builds/MacOSX/build/Debug -filelist /Users/jonathon/Library/Developer/Xcode/DerivedData/testcommand-cjzanqoelsnoysfsvnghuvnffovt/Build/Intermediates.noindex/\ -\ -mmacosx-version-min=10.11 -Xlinker -object_path_lto -Xlinker /Users/jonathon/Library/Developer/Xcode/DerivedData/testcommand-cjzanqoelsnoysfsvnghuvnffovt/Build/Intermediates.noindex/\ -\ -Xlinker -export_dynamic -Xlinker -no_deduplicate -stdlib=libc++ -framework .framework -framework Accelerate -framework AudioToolbox -framework AVFoundation -framework AVKit -framework Carbon -framework Cocoa -framework CoreAudio -framework CoreMedia -framework CoreMIDI -framework IOKit -framework OpenGL -framework QuartzCore -framework WebKit -Xlinker -dependency_info -Xlinker /Users/jonathon/Library/Developer/Xcode/DerivedData/testcommand-cjzanqoelsnoysfsvnghuvnffovt/Build/Intermediates.noindex/\ -\ -o /Users/jonathon/Projects/testcommand/Builds/MacOSX/build/Debug/testcommand

Can’t seem to reproduce this: I checked out master, rebuilt & launched the Projucer, selected File -> New Project... and then selected “Console Application”. The project builds and runs perfectly fine.

I’m on Xcode 9.4 and macOS 10.13.5

Thanks for looking into it. I will try rebuilding everything again then and get back to you.

Oops, I was messing around with some module parameters and changed OSXFrameworks: Cocoa IOKit to OSXFrameworks: Cocoa, IOKit which was creating an extra framework entry due to the double delimiter from the ,.

All is well now, sorry about that!