To avoid using a bridging header (e.g. if you have a swift-only project), you must first set up the ArcGIS Framework to declare a Module for itself.
Create a Modules/module.modulemap
file in the ArcGIS Runtime SDK for iOS ArcGIS.framework
(usually installed at ~/Library/SDKs/ArcGIS/iOS/ArcGIS.framework
). You will then be able to use the ArcGIS Runtime SDK for iOS in a Swift-only project.
Any .swift
file that makes use of the framework will need an import ArcGIS
statement.
Either run the bash script, or manually create the file with the contents of module.modulemap
from this Gist.
Note: Despite this coming from Apple, as with all things Swift at this time, this is entirely unsupported by Esri :)