From 6bae2fb6d236196aea1bb11911ab5bc6c933ed1d Mon Sep 17 00:00:00 2001 From: Nick Price Date: Tue, 16 Jan 2024 11:19:18 +0000 Subject: [PATCH] isSupported should return NO on iOS Simulator --- .../com_codename1_ext_codescan_NativeCodeScannerImpl.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ios/src/main/objectivec/com_codename1_ext_codescan_NativeCodeScannerImpl.m b/ios/src/main/objectivec/com_codename1_ext_codescan_NativeCodeScannerImpl.m index 3ea41a8..ddb963f 100644 --- a/ios/src/main/objectivec/com_codename1_ext_codescan_NativeCodeScannerImpl.m +++ b/ios/src/main/objectivec/com_codename1_ext_codescan_NativeCodeScannerImpl.m @@ -38,7 +38,11 @@ -(void)scanBarCode{ } -(BOOL)isSupported{ +#if !TARGET_IPHONE_SIMULATOR return YES; +#else + return NO; +#endif } @end