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


#1

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
export MACOSX_DEPLOYMENT_TARGET=10.11

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk -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/testcommand.build/Debug/testcommand\ -\ ConsoleApp.build/Objects-normal/x86_64/testcommand.LinkFileList -mmacosx-version-min=10.11 -Xlinker -object_path_lto -Xlinker /Users/jonathon/Library/Developer/Xcode/DerivedData/testcommand-cjzanqoelsnoysfsvnghuvnffovt/Build/Intermediates.noindex/testcommand.build/Debug/testcommand\ -\ ConsoleApp.build/Objects-normal/x86_64/testcommand_lto.o -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/testcommand.build/Debug/testcommand\ -\ ConsoleApp.build/Objects-normal/x86_64/testcommand_dependency_info.dat -o /Users/jonathon/Projects/testcommand/Builds/MacOSX/build/Debug/testcommand


#2

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


#3

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


#4

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!