You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm writing unit tests for a class that uses a dependency that should return at least one "Route" entity.
For the dependency class, I created a new class by subclassing, and on completion block I want to return a mock object for "Route", but during build time for unit tests I get those issues:
👎 Undefined symbol: type metadata accessor for MapboxDirections.Route
👎 Undefined symbol: MapboxDirections.Waypoint.__allocating_init(coordinate: __C.CLLocationCoordinate2D, coordinateAccuracy: Swift.Double, name: Swift.String?) -> MapboxDirections.Waypoint
👎 Undefined symbol: type metadata accessor for MapboxCoreNavigation.NavigationMatchOptions
👎 Undefined symbol: MapboxCoreNavigation.NavigationMatchOptions.__allocating_init(waypoints: [MapboxDirections.Waypoint], profileIdentifier: __C.MBDirectionsProfileIdentifier?) -> MapboxCoreNavigation.NavigationMatchOptions
👎 Undefined symbol: type metadata accessor for MapboxDirections.Waypoint
👎 Undefined symbol: _MBDirectionsProfileIdentifierAutomobile
👎 Undefined symbol: MapboxDirections.Directions.shared.unsafeMutableAddressor : MapboxDirections.Directions
The text was updated successfully, but these errors were encountered:
@1ec5 here is what I try to do:
let options = RouteOptions(waypoints: [])
let route = Route(json: [:], waypoints: [], options: options)
let response = MapBoxRouteEntityConvertorWorker.MapBoxRouteResponse(route: route, wayType: .fastest)
And those are the errors:
👎 Undefined symbol: type metadata accessor for MapboxDirections.RouteOptions
👎 Undefined symbol: type metadata accessor for MapboxDirections.Waypoint
👎 Undefined symbol: MapboxDirections.RouteOptions.__allocating_init(waypoints: [MapboxDirections.Waypoint], profileIdentifier: __C.MBDirectionsProfileIdentifier?) -> MapboxDirections.RouteOptions
👎 Undefined symbol: type metadata accessor for MapboxDirections.Route
👎 Undefined symbol: MapboxDirections.Route.__allocating_init(json: [Swift.String : Any], waypoints: [MapboxDirections.Waypoint], options: MapboxDirections.RouteOptions) -> MapboxDirections.Route
Does this issue still persist? We’ve since rewritten the library to use pure Swift instead of bridging to Objective-C. I realize your test is written in Swift, but I wonder if the build errors were related to symbols that were bridging anyways.
'MapboxDirections.swift', '0.27.3'
I'm writing unit tests for a class that uses a dependency that should return at least one "Route" entity.
For the dependency class, I created a new class by subclassing, and on completion block I want to return a mock object for "Route", but during build time for unit tests I get those issues:
The text was updated successfully, but these errors were encountered: