diff --git a/README.md b/README.md
index 56fb87e..7a9dd81 100644
--- a/README.md
+++ b/README.md
@@ -120,6 +120,22 @@ SCodes library is using `SBarcodeFilter` class for Qt5 and `SBarcodesScanner` cl
If you want to read more about implementation details of the library in Qt6 read the document: [Implementation Details in Qt6](https://github.com/scytheStudio/SCodes/blob/master/doc/detailsQt6.md)
+### Deploy on Ios quickfix
+
+Project version with Qt6 on cmake is configured properly and as cmake files goes it's ready to use as is.
+But a common issue that can occour while targeting the Ios is that by default ZXing library is build as dynamic .dylib format that not always is properly recognized by the mobile devices.
+
+
+
+To fix it simply go to the CMakeLists.txt file responsible for building the ZXing library, while I'm writing this it's in here `/.../SCodes/src/zxing-cpp/core/CMakeLists.txt`.
+You will know for sure when you find the list of all ZXing sources.
+
+
+
+Scroll down into the line with `add_library` instruction, where the ZXing target is defined. Make this library static by writing the `STATIC` keyword.
+Now we've changed the library format to static, which mean the ZXing code will be linked to your app during the compilation process. Rebuild your app and check if it works.
+
+
### Trying various formats
`SBarcodeFilter` is a class that you need to use for scanning case. By default it scans only specific basic formats of code (Code 39, Code 93, Code 128, QR Code and DataMatrix.).
diff --git a/assets/fix_ios_0.png b/assets/fix_ios_0.png
new file mode 100644
index 0000000..859ecad
Binary files /dev/null and b/assets/fix_ios_0.png differ
diff --git a/assets/fix_ios_1.png b/assets/fix_ios_1.png
new file mode 100644
index 0000000..e23693a
Binary files /dev/null and b/assets/fix_ios_1.png differ
diff --git a/assets/fix_ios_2.png b/assets/fix_ios_2.png
new file mode 100644
index 0000000..6b23bdf
Binary files /dev/null and b/assets/fix_ios_2.png differ
diff --git a/examples/QmlBarcodeReader/CMakeLists.txt b/examples/QmlBarcodeReader/CMakeLists.txt
index 55cffba..92dd0b4 100644
--- a/examples/QmlBarcodeReader/CMakeLists.txt
+++ b/examples/QmlBarcodeReader/CMakeLists.txt
@@ -56,6 +56,13 @@ endif()
target_link_libraries(${PROJECT_NAME} PRIVATE ${REQUIRED_QT_LIBS} SCodes)
+if(APPLE)
+ set_target_properties(${PROJECT_NAME} PROPERTIES
+ MACOSX_BUNDLE TRUE
+ MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/ios/Info.plist
+ )
+endif()
+
if(QT_VERSION_MAJOR EQUAL 6)
qt_import_qml_plugins(${PROJECT_NAME})
diff --git a/examples/QmlBarcodeReader/ios/Info.plist b/examples/QmlBarcodeReader/ios/Info.plist
new file mode 100644
index 0000000..890727f
--- /dev/null
+++ b/examples/QmlBarcodeReader/ios/Info.plist
@@ -0,0 +1,57 @@
+
+
+
+
+ CFBundleInfoDictionaryVersion
+ 6.0
+
+ CFBundlePackageType
+ APPL
+
+ CFBundleName
+ ${MACOSX_BUNDLE_BUNDLE_NAME}
+
+ CFBundleDisplayName
+ ${QT_INTERNAL_DOLLAR_VAR}{PRODUCT_NAME}
+
+ CFBundleIdentifier
+ ${MACOSX_BUNDLE_GUI_IDENTIFIER}
+
+ CFBundleExecutable
+ ${MACOSX_BUNDLE_EXECUTABLE_NAME}
+
+ CFBundleVersion
+ ${MACOSX_BUNDLE_BUNDLE_VERSION}
+
+ CFBundleShortVersionString
+ ${MACOSX_BUNDLE_SHORT_VERSION_STRING}
+
+ CFBundleIconFile
+ ${MACOSX_BUNDLE_ICON_FILE}
+
+ CFBundleDevelopmentRegion
+ $(DEVELOPMENT_LANGUAGE)
+ CFBundleAllowMixedLocalizations
+
+
+ NSCameraUsageDescription
+ App uses the camera to scan QR codes.
+
+ LSRequiresIPhoneOS
+
+
+ NOTE
+ This file was generated by Qt's default CMake support.
+
+ UILaunchStoryboardName
+ @qt_ios_launch_screen_plist_entry@
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+
+
diff --git a/examples/QmlBarcodeReader/main.cpp b/examples/QmlBarcodeReader/main.cpp
index a52332b..8a46e26 100644
--- a/examples/QmlBarcodeReader/main.cpp
+++ b/examples/QmlBarcodeReader/main.cpp
@@ -1,5 +1,7 @@
+#include "qcamera.h"
#include
#include
+#include
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
#include "SBarcodeFilter.h"
@@ -16,6 +18,10 @@ int main(int argc, char* argv[])
#endif
QGuiApplication app(argc, argv);
+ app.requestPermission(QCameraPermission{}, [](const QPermission& permission) {
+ qDebug() << permission;
+ });
+
QQmlApplicationEngine engine;
qmlRegisterSingletonType(QUrl("qrc:/qml/Theme.qml"), "Theme", 1, 0, "Theme");