@@ -705,13 +705,17 @@ struct iOSAudioIODevice::Pimpl : public AsyncUpdater | |||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations") | JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wdeprecated-declarations") | ||||
Image getIcon (int size) | Image getIcon (int size) | ||||
{ | { | ||||
if (interAppAudioConnected) | |||||
if (@available (macCatalyst 14.0, *)) | |||||
{ | { | ||||
UIImage* hostUIImage = AudioOutputUnitGetHostIcon (audioUnit, size); | |||||
if (hostUIImage != nullptr) | |||||
return juce_createImageFromUIImage (hostUIImage); | |||||
if (interAppAudioConnected) | |||||
{ | |||||
UIImage* hostUIImage = AudioOutputUnitGetHostIcon (audioUnit, size); | |||||
if (hostUIImage != nullptr) | |||||
return juce_createImageFromUIImage (hostUIImage); | |||||
} | |||||
} | } | ||||
return Image(); | |||||
return {}; | |||||
} | } | ||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE | JUCE_END_IGNORE_WARNINGS_GCC_LIKE | ||||
#endif | #endif | ||||
@@ -32,7 +32,10 @@ | |||||
#define GLES_SILENCE_DEPRECATION 1 | #define GLES_SILENCE_DEPRECATION 1 | ||||
#endif | #endif | ||||
#define Component CarbonDummyCompName | |||||
#import <Foundation/Foundation.h> | #import <Foundation/Foundation.h> | ||||
#undef Component | |||||
#import <UIKit/UIKit.h> | #import <UIKit/UIKit.h> | ||||
#import <CoreData/CoreData.h> | #import <CoreData/CoreData.h> | ||||
#import <MobileCoreServices/MobileCoreServices.h> | #import <MobileCoreServices/MobileCoreServices.h> | ||||
@@ -167,7 +167,7 @@ int juce_siginterrupt (int sig, int flag) | |||||
//============================================================================== | //============================================================================== | ||||
namespace | namespace | ||||
{ | { | ||||
#if JUCE_LINUX || (JUCE_IOS && ! __DARWIN_ONLY_64_BIT_INO_T) // (this iOS stuff is to avoid a simulator bug) | |||||
#if JUCE_LINUX || (JUCE_IOS && (! TARGET_OS_MACCATALYST) && (! __DARWIN_ONLY_64_BIT_INO_T)) // (this iOS stuff is to avoid a simulator bug) | |||||
using juce_statStruct = struct stat64; | using juce_statStruct = struct stat64; | ||||
#define JUCE_STAT stat64 | #define JUCE_STAT stat64 | ||||
#else | #else | ||||