Using a local MMPK file, the following code completes successfully using the 100.7 SDK, but fails in 100.8 and 100.9.
------------------------------------------------------------------------
// Member properties
let package = AGSMobileMapPackage(name: "local_map_package")
var routeTask: AGSRouteTask?
// In a method (e.g. viewDidLoad)
package.load { (error) in
guard error == nil, let network = self.package.maps.first?.transportationNetworks.first else { return }
self.routeTask = AGSRouteTask(dataset: network)
self.routeTask?.load(completion: { (error) in
print(error as Any)
})
}
------------------------------------------------------------------------
The error in 100.8 and 100.9 is
Error Domain=com.esri.arcgis.runtime.error Code=18 "Internal error" UserInfo={NSLocalizedFailureReason=, NSLocalizedDescription=Internal error, Additional Message=}
Hi Skyler.
Can you share the MMPK with us please? Feel free to email me directly.
Cheers,
Nick.
Can do. I've sent it over.