Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Installation fails in React Native Expo Managed app #4553

Open
santitopo opened this issue Sep 27, 2023 · 2 comments
Open

[Bug]: Installation fails in React Native Expo Managed app #4553

santitopo opened this issue Sep 27, 2023 · 2 comments
Labels
bug Something isn’t working

Comments

@santitopo
Copy link

Mapbox Navigation SDK version

2.16

Steps to reproduce

Hello!

I'm trying to build a Native Module in my React Native Expo-managed app, to wrap the Mapbox Navigation iOS and Android SDKs.

The issue arises when I try to install the app with the MapboxNavigation dependency on it, regardless if I do it via the Expo CLI or via Xcode.

Error during compile time: Multiple commands produce '/Users/MyUser/Library/Developer/Xcode/DerivedData/proj-identifier/Build/Products/Debug-iphonesimulator/mapboxpoc.app/Assets.car'.

I've been investigating the issue and got the installation working by following approach 3 in this blog. This approach requires me to mess directly with the Build phases of the xcode project, which is not ideal since the whole idea behind Expo is to avoid manually editing the iOS and Android folders. In fact, the iOS project gets regenerated on every build (it is even ignored from version control! ).

Expo uses Cocoapods to fetch Pods. Here's how I've listed the dependency in my module's podspec:

  s.dependency 'MapboxNavigation', '~> 2.16'

I know this is the iOS repo, that you don't support React Native officially, and perhaps my issue will be dismissed 🙂 .. But I would really appreciate if you could at least take a quick look at it. Perhaps it's a really easy fix for you, and you would be helping plenty of people who are trying to adopt Expo in the React Native ecosystem and want to use your library.

Thanks a lot in advance!

Expected behavior

The build process should be successful without any errors 🤞

Actual behavior

It fails with error Multiple commands produce '/Users/MyUser/Library/Developer/Xcode/DerivedData/proj-identifier/Build/Products/Debug-iphonesimulator/mapboxpoc.app/Assets.car' 🙁

image

Is this a one-time issue or a repeatable issue?

repeatable

@santitopo santitopo added the bug Something isn’t working label Sep 27, 2023
@Udumft
Copy link
Contributor

Udumft commented Sep 28, 2023

Hi, @santitopo!
I believe there is a PR which addresses this issue, but we didn't have a chance to verify and merge it yet :(

@santitopo
Copy link
Author

Hey @Udumft ! Thanks for the quick response!! Really appreciate it 🙌 Hadn't seen that ticket, but it does seems to be the same issue 👍

May I ask if there's an expected timeline for it's merge and release?

Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn’t working
Projects
None yet
Development

No branches or pull requests

2 participants