question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Updating to MBGL iOS SDK 6.3.0 on M1 chipset causes cocoapods linking error

See original GitHub issue

Has anyone had any success upgrading to 6.3.0 on iOS, e.g.

$ReactNativeMapboxGLIOSVersion = '6.3.0'

When I switch this value from 6.2.1, and do a clean cocoapods install, it produces the following compile error:

library not found for -lPods-MyProject

which ultimately I can trace down to the Link Binary With Libraries build phase. The only linked library in the list is titled libPods-MyProject.a, which references a file in Pods/Products/ that doesn’t exist. If I remove that link, or just remove the entire build phase, the project compiles and runs properly.

But this doesn’t seem like the right solution, because doing a clean pod install automatically generates that build phase, so to fix this I would need to override pretty standard default behavior.

The same process, using 6.2.1, actually generates the libPods-MyProject.a file. I’m not sure where the bug actually lies. Does anyone have any ideas?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:16 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
naftalibedercommented, Jun 22, 2021

Thank you so much for testing, and I’m sorry for the delay. I’ve had some colleagues attempt the same install, and sure enough, it fails on devices with an M1, and succeeds on those without.

For the purpose of leaving this issue so that I and people with the same problem can take some action, I am looking for an automated way to remove the libPods-MyProject.a library from the Link Binary With Libraries section, ideally in the Podfile itself. (This will allow development with the new version, before the iOS SDK actually supports the M1.)

Does anybody have any tips on how to achieve this? I’ve looked around and haven’t been able to pin it down.

0reactions
ferdicuscommented, Jul 11, 2021

Glad it helped at one front, sad it degraded on the other 😦

We’re not planning to immediately drop Mapbox support, if that’s the fear. At the moment MapLibre and (“old”) Mapbox are fairly similar.

We’d probably rather opt to not pursue v10 of Mapbox and stick with MapLibre instead for future versions.

This all obviously depends on contributors/ time 🤷🏿

Read more comments on GitHub >

github_iconTop Results From Across the Web

Updating to MBGL iOS SDK 6.3.0 on M1 chipset causes ...
If I remove that link, or just remove the entire build phase, the project compiles and runs properly. But this doesn't seem like...
Read more >
issue with cocoapods installation | Apple Developer Forums
this works for me: Step 1 (install HomeBrew). /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh).
Read more >
Mapbox-iOS-SDK 6.3.0 pod install error 403 Forbidden
Make sure that you have DOWNLOADS:READ permission when creating the secret token. enter image description here.
Read more >
Migrating your iOS projects and CI/CD to M1 Macs
Tips, tricks, and necessary steps to migrate your iOS project and its CI/CD pipeline to Apple silicon.
Read more >
Compiling for iOS on Apple M1 - Mercari Engineering Blog
This document should give you a quick snapshot of the latest mechanisms related to compilation of an iOS/Mac OS X project with a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found