Running Qt 5.12 on Mac with runtime 100.4. Create a blank Qt Quick QML project. Add in the import into main.qml...
import Esri.ArcGISRuntime.Toolkit.Dialogs 100.4
Switch run mode to iOS and Debug or Run on iOS device and end up with...
module "Esri.ArcGISRuntime.Toolkit.Dialogs" is not installed
Am I missing an import somewhere or something?
P.S. - no error when running on Mac. Only fails when running on iOS.
Thanks!
Hey Jeremy,
I think there are some differences in how the toolkit must be built on iOS. There are some details here - https://github.com/Esri/arcgis-runtime-toolkit-qt#alternate-setup-instructions-importing-the-toolkit...
Can you try adding the following include line into
/Users/<username>/ArcGIS_SDKs/Qt100.4/sdk/ideintegration/arcgis_runtime_qml.pri. Add it around line 200 underneath where you see
# Set ArcGIS Runtime Toolkit Path
ARCGIS_TOOLKIT_IMPORT_PATH = $${SDK_INSTALL_DIR}/sdk/toolkit/Import
android {
contains(QMAKE_HOST.os, Windows):{
ARCGIS_TOOLKIT_IMPORT_PATH = $$ARCGIS_RUNTIME_IMPORT_PATH
}
}
# ************************************
# THIS IS THE NEW THING TO ADD
# ************************************
ios {
include($${SDK_INSTALL_DIR}/sdk/toolkit/Plugin/ArcGISRuntimeToolkitPlugin.pri)
}
I tested it out and it works for me. If it works for you, we can see about getting it added into the PRI by default
Yes, this worked for me. Thanks!