-
-
Notifications
You must be signed in to change notification settings - Fork 848
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]: Error in ViewAnnotationManager.swift when running React Native app on iOS 18 #3640
Comments
+1 |
a quick fix until the official release... change the annotation variable to: |
Which file does this change go with? |
in ios/Pods/MapboxMaps/Sources/MapboxMaps/Annotations/ViewAnnotationManager.swift as specified in the issue I am using version 10.1.31 |
+1 |
2 similar comments
+1 |
+1 |
Same issues |
+1 |
+1 from an expo user when building a development client "RNMapboxMapsVersion": "11.4.0", |
@dadudad1 To patch the file, I am struggling about how to. Typically, if I want to patch a file temporarily, I would use 'yarn patch', however, in this case, the file in under ios/Pods folder, which is not part of the repo (something that generated by Cocapods?). So, I don't know how to apply the temp fix. |
Any update? |
Still no official fix from maintainers. Using @dadudad1 solution solves the issue. |
@guneyural I doubt it unless you eject your Expo project. With the reasons that I mentioned above, I am struggling to find a proper solution to apply @dadudad1 solution. Basically, don't build with Xcode 16, then you should be fine. Wait for the official fix. |
@matthewhausmantrellus did you find a fix for expo? I'm in the same boat as you :( |
npx expo run:ios. There are a number of additional steps potentially depending on the user |
@matthewhausmantrellus I don't understand why do you need additional steps? I am using the same Expo SDK version. I can build the development client in EAS (not locally) with the sdk-50 compatible iOS image. |
This build error occurs when native SDK version is v11. |
There is an PrivacyInfo.xcprivacy issue with rnmapbox. In case of expo it seems the easiest solution is selecting v11, even if the app itself uses v10. See #3447 (comment) |
…reen - Integrated Mapbox for displaying real-time user location on the map - Added basic Map screen with user location tracking and "Go to Location" button - Fixed Mapbox iOS `ViewAnnotationManager.swift` issue as per rnmapbox/maps#3640 - Initial setup of map UI for enhanced driver navigation
I think this is addressed by 10.1.33 |
Still having this issue with 10.1.33 unfortunately :/ |
+1 |
@mfazekas Am still having same issue in 10.1.33. Kindly help rectify. Thanks |
Can someone open a pr with changes, please? |
This is all fixed for me by switching the mapbox maps version to 11.8 |
I'm using new architecture, Expo SDK 52. Build fails with 11.4, succeeds with 11.8. Hope this PR helps. |
you have to update "RNMapboxMapsVersion": "11.8.0" |
Mapbox Implementation
Mapbox
Mapbox Version
= 11.4.0
React Native Version
0.74.3
Platform
iOS
@rnmapbox/maps
version^10.0.0-beta.28
Standalone component to reproduce
Steps to Reproduce
Observed behavior and steps to reproduce
I am experiencing an issue when running my React Native application using the rnmapbox/maps library on iOS 18 and xcode 16.0
Before the update there was no problem.
The build fails with a Swift type conversion error in ViewAnnotationManager.swift.
The build fails due to an error related to ViewAnnotationManager.swift in the MapboxMaps library. The error points to a type conversion issue between [UIView : ViewAnnotationOptions] and Dictionary<String, Optional>.RawValue.
Expected behavior
The application should build successfully and work as expected on iOS 18 and xcode 16.0
Notes / preliminary analysis
No response
Additional links and references
No response
The text was updated successfully, but these errors were encountered: