i'm trying to open ios gallery with Qt , i found many article and answers . i test them but they didn't work in ios(10) here are two links that are not working for me
Link 1 : Open ios gallery with FileDialog{}
Link 2 : Mixing Objective-c with Qt to access gallery in ios
first link explained how to open gallery with FileDialog ,according to link and it's description :
in iOS just create a FileDialog inside the QML file and set folder: shortcuts.pictures. It will call the iOS gallery.
. below is my code but it doesn't work !!
import QtQuick 2.7
import QtQuick.Controls 2.0
import QtQuick.Dialogs 1.0
ApplicationWindow {
visible: true
width: 640
height: 480
FileDialog {
id: fileDialog
visible: true
folder: shortcuts.pictures
}
}
second link , I couldn't compile it and i got this error
ld: '/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/arc/libarclite_iphonesimulator.a(arclite.o)' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
The following build commands failed:
Ld Debug-iphonesimulator/QuickIOSExample.app/QuickIOSExample normal x86_64
(1 failure)
make: *** [xcodebuild-debug-simulator] Error 65
14:05:48: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project quickiosexample (kit: iphonesimulator-clang Qt 5.8.0 for iOS)
When executing step "Make"
thank you for your answers :)