Linker errors on updating to 5.3


#1

Just a heads up or for future reference:
I’ve just updated an iOS project based on JUCE 5.1 to 5.3 and got a couple of linker “undefined symbol” errors for _kUTTagClassFilenameExtension and _UTTypeCreatePreferredIdentifierForTag. These were resolved by adding the MobileCoreServices framework.


#2

Which module was that needed in?


#3

FileChooser. The full message was:

Undefined symbols for architecture armv7:
  "_kUTTagClassFilenameExtension", referenced from:
      juce::FileChooser::Native::getUTTypesForWildcards(juce::String const&, juce::String&) in include_juce_gui_basics.o
  "_UTTypeCreatePreferredIdentifierForTag", referenced from:
      juce::FileChooser::Native::getUTTypesForWildcards(juce::String const&, juce::String&) in include_juce_gui_basics.o
ld: symbol(s) not found for architecture armv7

#4

Thanks Adam!
I had the same thing happening:
Undefined symbols for architecture x86_64:
“_kUTTagClassFilenameExtension”, referenced from:
juce::FileChooser::Native::getUTTypesForWildcards(juce::String const&, juce::String&) in include_juce_gui_basics.o
“_UTTypeCreatePreferredIdentifierForTag”, referenced from:
juce::FileChooser::Native::getUTTypesForWildcards(juce::String const&, juce::String&) in include_juce_gui_basics.o
ld: symbol(s) not found for architecture x86_64


#5

Thanks I’ll sort this out.


#6

OK nothing needs fixing. You just need to re-save your .jucer file with the newest Projucer version. This will automatically add the MobileCoreServices.framework.