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