Select to view content in your preferred language

Running on Mac is fine but switching to iOS I get "module Esri.ArcGISRuntime.Toolkit.Dialogs is not installed". Any idea why?

617
2
03-28-2019 10:54 AM
JeremyRoberts2
Occasional Contributor

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!

0 Kudos
2 Replies
LucasDanzinger
Esri Frequent Contributor

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

0 Kudos
JeremyRoberts2
Occasional Contributor

Yes, this worked for me.  Thanks!

0 Kudos