flutter-mapbox-gl / maps

A Mapbox GL flutter package for creating custom maps
Other
1.04k stars 503 forks source link

IOS POD Linking Failure - IOS Simulator #1403

Closed ghost closed 8 months ago

ghost commented 9 months ago

Issue

I created a new flutter app and added mapbox_gl package. I am getting a build error when trying to run the project on IOS Simulator.

Flutter Console Errors:

Error (Xcode): Building for 'iOS-simulator', but linking in dylib (/ios/Pods/Mapbox-iOS-SDK/dynamic/Mapbox.framework/Mapbox) built for 'iOS'

Error (Xcode): Linker command failed with exit code 1 (use -v to see invocation)

Uncategorized (Xcode): Command SwiftCompile failed with a nonzero exit code

Could not build the application for the simulator. Error launching application on iPhone 15 Pro Max.`

Xcode Build Errors:

image

pubspec.lock

packages: archive: dependency: transitive description: name: archive sha256: "22600aa1e926be775fa5fe7e6894e7fb3df9efda8891c73f70fb3262399a432d" url: "https://pub.dev" source: hosted version: "3.4.10" async: dependency: transitive description: name: async sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c" url: "https://pub.dev" source: hosted version: "2.11.0" boolean_selector: dependency: transitive description: name: boolean_selector sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66" url: "https://pub.dev" source: hosted version: "2.1.1" characters: dependency: transitive description: name: characters sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605" url: "https://pub.dev" source: hosted version: "1.3.0" clock: dependency: transitive description: name: clock sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf url: "https://pub.dev" source: hosted version: "1.1.1" collection: dependency: transitive description: name: collection sha256: ee67cb0715911d28db6bf4af1026078bd6f0128b07a5f66fb2ed94ec6783c09a url: "https://pub.dev" source: hosted version: "1.18.0" convert: dependency: transitive description: name: convert sha256: "0f08b14755d163f6e2134cb58222dd25ea2a2ee8a195e53983d57c075324d592" url: "https://pub.dev" source: hosted version: "3.1.1" crypto: dependency: transitive description: name: crypto sha256: ff625774173754681d66daaf4a448684fb04b78f902da9cb3d308c19cc5e8bab url: "https://pub.dev" source: hosted version: "3.0.3" cupertino_icons: dependency: "direct main" description: name: cupertino_icons sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d url: "https://pub.dev" source: hosted version: "1.0.6" fake_async: dependency: transitive description: name: fake_async sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78" url: "https://pub.dev" source: hosted version: "1.3.1" flutter: dependency: "direct main" description: flutter source: sdk version: "0.0.0" flutter_lints: dependency: "direct dev" description: name: flutter_lints sha256: a25a15ebbdfc33ab1cd26c63a6ee519df92338a9c10f122adda92938253bef04 url: "https://pub.dev" source: hosted version: "2.0.3" flutter_test: dependency: "direct dev" description: flutter source: sdk version: "0.0.0" flutter_web_plugins: dependency: transitive description: flutter source: sdk version: "0.0.0" image: dependency: transitive description: name: image sha256: "8e9d133755c3e84c73288363e6343157c383a0c6c56fc51afcc5d4d7180306d6" url: "https://pub.dev" source: hosted version: "3.3.0" js: dependency: transitive description: name: js sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3 url: "https://pub.dev" source: hosted version: "0.6.7" lints: dependency: transitive description: name: lints sha256: "0a217c6c989d21039f1498c3ed9f3ed71b354e69873f13a8dfc3c9fe76f1b452" url: "https://pub.dev" source: hosted version: "2.1.1" mapbox_gl: dependency: "direct main" description: name: mapbox_gl sha256: d78907338ff232e3cf6c1d6dba45e6a8814069496fd352e49bb1967d498f09af url: "https://pub.dev" source: hosted version: "0.16.0" mapbox_gl_dart: dependency: transitive description: name: mapbox_gl_dart sha256: de6d03718e5eb05c9eb1ddaae7f0383b28acb5afa16405e1deed7ff04dd34f3d url: "https://pub.dev" source: hosted version: "0.2.1" mapbox_gl_platform_interface: dependency: transitive description: name: mapbox_gl_platform_interface sha256: b7c1490b022e650afd20412bdf8ae45a1897118b7ce6049ef6c42df09193d4b2 url: "https://pub.dev" source: hosted version: "0.16.0" mapbox_gl_web: dependency: transitive description: name: mapbox_gl_web sha256: e77113bf95a4f321ff44938232517e0f2725aae991f0b283af1afaa7e7a58aca url: "https://pub.dev" source: hosted version: "0.16.0" matcher: dependency: transitive description: name: matcher sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" url: "https://pub.dev" source: hosted version: "0.12.16" material_color_utilities: dependency: transitive description: name: material_color_utilities sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" url: "https://pub.dev" source: hosted version: "0.5.0" meta: dependency: transitive description: name: meta sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e url: "https://pub.dev" source: hosted version: "1.10.0" path: dependency: transitive description: name: path sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" url: "https://pub.dev" source: hosted version: "1.8.3" petitparser: dependency: transitive description: name: petitparser sha256: c15605cd28af66339f8eb6fbe0e541bfe2d1b72d5825efc6598f3e0a31b9ad27 url: "https://pub.dev" source: hosted version: "6.0.2" pointycastle: dependency: transitive description: name: pointycastle sha256: "7c1e5f0d23c9016c5bbd8b1473d0d3fb3fc851b876046039509e18e0c7485f2c" url: "https://pub.dev" source: hosted version: "3.7.3" sky_engine: dependency: transitive description: flutter source: sdk version: "0.0.99" source_span: dependency: transitive description: name: source_span sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" url: "https://pub.dev" source: hosted version: "1.10.0" stack_trace: dependency: transitive description: name: stack_trace sha256: "73713990125a6d93122541237550ee3352a2d84baad52d375a4cad2eb9b7ce0b" url: "https://pub.dev" source: hosted version: "1.11.1" stream_channel: dependency: transitive description: name: stream_channel sha256: ba2aa5d8cc609d96bbb2899c28934f9e1af5cddbd60a827822ea467161eb54e7 url: "https://pub.dev" source: hosted version: "2.1.2" string_scanner: dependency: transitive description: name: string_scanner sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde" url: "https://pub.dev" source: hosted version: "1.2.0" term_glyph: dependency: transitive description: name: term_glyph sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84 url: "https://pub.dev" source: hosted version: "1.2.1" test_api: dependency: transitive description: name: test_api sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" url: "https://pub.dev" source: hosted version: "0.6.1" typed_data: dependency: transitive description: name: typed_data sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c url: "https://pub.dev" source: hosted version: "1.3.2" vector_math: dependency: transitive description: name: vector_math sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" url: "https://pub.dev" source: hosted version: "2.1.4" web: dependency: transitive description: name: web sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 url: "https://pub.dev" source: hosted version: "0.3.0" xml: dependency: transitive description: name: xml sha256: b015a8ad1c488f66851d762d3090a21c600e479dc75e68328c52774040cf9226 url: "https://pub.dev" source: hosted version: "6.5.0" sdks: dart: ">=3.2.3 <4.0.0" flutter: ">=2.0.0"

Podfile.lock

PODS:

DEPENDENCIES:

SPEC REPOS: trunk:

EXTERNAL SOURCES: Flutter: :path: Flutter mapbox_gl: :path: ".symlinks/plugins/mapbox_gl/ios"

SPEC CHECKSUMS: Flutter: f04841e97a9d0b0a8025694d0796dd46242b2854 Mapbox-iOS-SDK: f870f83cbdc7aa4a74afcee143aafb0dae390c82 mapbox_gl: 33c5ab6306cbfa72289bb3606d2cd2e8baee9ff0 MapboxAnnotationExtension: 4eee6c26349ef6d909f1a23a7eae2d0f7ca5fa7d MapboxMobileEvents: 5a172cc9bbf8ac0e45ba86095cbee685ede248cc

PODFILE CHECKSUM: 70d9d25280d0dd177a5f637cdb0f0b0b12c6a189

COCOAPODS: 1.14.3

Additional Coments

It looks like its being thrown from MapBoxAnnotationExtensions which I believe is an official package from mapbox. It looks like that package is experimental and not for production use. I am wondering how it is used by mapbox_gl.

I saw some other issues that could be related to this but it looks like an issue with M1 macs, I am on an intel i5.

buyblvd-ryan commented 8 months ago

Hey @neodoko have you tried running the example provided in the repo? That would be a useful troubleshooting step to see if the issue is potentially with your flutter project or with your local computer's configuration. I have no problems building the example for iOS on my M1 Mac.

ghost commented 8 months ago

Hey @buyblvd-ryan thanks for reaching out. I did get the example project running locally, I assumed it was because the dependencies it uses were local as well and not being pulled from a registry. From what i gathered my best assumption is that MapBoxAnnotationExtension package version was incompatible with ios 17. I figured the best solution was to fix the dependencies and rebuild a new version of this package. Anyhow, think I'll close this issue since I have moved on to a new tool.