Redefinition since pulling latest tip for iOS build


#1

Hi, started getting this after pulling the latest, any ideas?
Semantic Issue Group
/Users/lee/Development/JUCE/modules/juce_audio_devices/native/juce_ios_Audio.h:28:7: Redefinition of ‘iOSAudioIODevice’
/Users/lee/Development/cpp/JUCE/Projects/MIDISynth-Circuit/JuceLibraryCode/include_juce_audio_plugin_client_Standalone.cpp:9:10: In file included from /Users/lee/Development/cpp/JUCE/Projects/MIDISynth-Circuit/JuceLibraryCode/include_juce_audio_plugin_client_Standalone.cpp:9:
/Users/lee/Development/JUCE/modules/juce_audio_plugin_client/juce_audio_plugin_client_Standalone.cpp:31:10: In file included from …/…/…/…/…/…/JUCE/modules/juce_audio_plugin_client/juce_audio_plugin_client_Standalone.cpp:31:
/Users/lee/Development/JUCE/modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterApp.cpp:47:11: In file included from …/…/…/…/…/…/JUCE/modules/juce_audio_plugin_client/Standalone/juce_StandaloneFilterApp.cpp:47:
/Users/lee/Development/JUCE/modules/juce_audio_devices/native/juce_ios_Audio.h:28:7: Previous definition is here

Maybe related, not sure, but even though demo plugin builds ok, it crashes


#2

This is because @jules removed all #pragma once in https://github.com/WeAreROLI/JUCE/commit/eda613c6db698f31ab2189cc289c9de2db821142.

juce_StandaloneFilterApp.cpp includes juce_audio_devices/native/juce_ios_Audio.h twice:

  1. via juce_audio_devices/juce_audio_devices.h
  2. directly when JucePlugin_Enable_IAA && JUCE_IOS

To solve your problem, delete lines 46-48 in juce_StandaloneFilterApp.cpp


#3

This will be fixed on the develop branch shortly. Thanks for reporting!