AGSRouteTask fails to load on iOS SDK Version 100.8 and 100.9

538
2
10-20-2020 12:57 PM
SkylerSmith
New Contributor

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=}
0 Kudos
2 Replies
Nicholas-Furness
Esri Regular Contributor

Hi Skyler.

Can you share the MMPK with us please? Feel free to email me directly.

Cheers,

Nick.

0 Kudos
SkylerSmith
New Contributor

Can do. I've sent it over.

0 Kudos