mapbox / mapbox-directions-swift

Traffic-aware directions and map matching in Swift on iOS, macOS, tvOS, watchOS, and Linux
https://www.mapbox.com/navigation/
ISC License
183 stars 89 forks source link

i have a wrong architecture #409

Open hcientist opened 4 years ago

hcientist commented 4 years ago

https://github.com/mapbox/mapbox-directions-swift/blob/be90d21c93c3047ea8f04b5f53d99f3d3e0e159b/Sources/MapboxDirections/Directions.swift#L58

For some reason, i'm getting:

<my project directory>/Carthage/Checkouts/MapboxDirections.swift/Sources/MapboxDirections/MBDirections.swift:59:27: error: constant 'chip' used before being initialized
    components.append("(\(chip))")

So I guess somehow my arch falls out of the branches... what must the arch be?!

1ec5 commented 4 years ago

Fascinating, this code already tests all the architectures supported by Swift 5.2. Which operating system and device model (or simulator) are you running the library on?

hcientist commented 4 years ago

I am on MacOS 10.15.3 I used the simulator: iPhone 8 (based on a naive assumption that maybe the simulator itself would run significantly faster than the newer simulator, anyone know if there's any reason to believe this weird hypothesis)

hcientist commented 4 years ago

Maybe this is also meaningful?

The following build commands failed:

    CompileSwift normal armv7k
    CompileSwiftSources normal arm64_32 com.apple.xcode.tools.swift.compiler
    CompileSwift normal arm64_32
(3 failures)
hcientist commented 4 years ago

weirdly (?) I don't get a failure if i run carthage differently ¯\(ツ)carthage update --platform iOS

1ec5 commented 4 years ago

How had you previously run Carthage?