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

Can't run my app after setting up rnmapbox #3678

Closed
Teeticode opened this issue Nov 3, 2024 · 2 comments
Closed

Can't run my app after setting up rnmapbox #3678

Teeticode opened this issue Nov 3, 2024 · 2 comments

Comments

@Teeticode
Copy link

Teeticode commented Nov 3, 2024

Environment

  • Dev OS: Mac OS, Xcode 16
  • @rnmapbox/maps version: "^10.1.33"
  • React Native version: "0.73.6"
  • Expo version: "~50.0.14"

Steps to reproduce

npx create-expo-app --template 
cd sample
npx expo install @rnmapbox/maps
add below to app.json
`"plugins": [
      "expo-router",
      "expo-secure-store",
      [
        "expo-location",
        {
          "locationAlwaysAndWhenInUsePermission": "Allow $(PRODUCT_NAME) to use your location."
        }
      ],
      [
        "@rnmapbox/maps",
        {
          "RNMapboxMapsDownloadToken": "sk....A",
          "RNMapboxMapsVersion": "10.0.0"
        }
      ]
    ],`
npx expo prebuild --clean
npx expo run ios

installs cocoapods correctly but when running npx expo run ios I run into the error below
also if I put this version 10.1.33 in app.json, pods fail to install, I'll really appreciate your help

Screenshot 2024-11-03 at 12 58 01
@mfazekas
Copy link
Contributor

mfazekas commented Nov 3, 2024

"RNMapboxMapsVersion": "10.0.0"

I don't think we support 10.0.0, can you use the latest version for 10.0.*

@mfazekas mfazekas closed this as completed Nov 3, 2024
@Teeticode
Copy link
Author

Used it and it worked, thank you 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants