mapbox / mapbox/mapbox-search-ios

Duplicates symbols files

Open
#436 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Swift
Stars
28
Forks
28
PR merge metrics
No merged PRs in 30d

Description

I’ve been using MapBoxSearch and other libraries in my project for over two years. A few months ago, I noticed that mapbox duplicate symbols logs started appearing when running the app on a device or simulator. Today, I tried to fix it by running pod install, removing, and re-adding the pods, but it’s still not working — the logs continue to appear. I’m uploading the logs and the list of libraries I installed using CocoaPods.

Xcode 26
Minimum Target 26

Cocoapods:
MapboxCommon (24.6.0)
MapboxCoreMaps (11.6.0)
MapboxCoreSearch (2.3.0)
MapboxDirections (2.14.2)
MapboxGeocoder.swift (0.15.0)
MapboxMaps (11.6.0)
MapboxSearch (2.3.0)
Polyline (5.1.0)

objc[3276]: Class MBXSCategory is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9558) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d350). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSCategoryOptions is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f95a8) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d3a0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSConnectionError is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f95f8) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d3f0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSDetailsOptions is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9648) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d440). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSEngineOptions is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9698) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d4e0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSError is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f96e8) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d530). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSFeedbackProperties is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9738) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d580). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSHttpError is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9788) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d5d0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSImageInfo is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f97d8) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d620). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSInternalError is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9828) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d670). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSLocationProviderProxy is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f98a0) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d6e8). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSLonLatBBox is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f98c8) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d710). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSOfflineIndexChangeEvent is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9918) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d760). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSOfflineIndexError is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9968) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d7b0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSOfflineIndexObserverProxy is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f99e0) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d828). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSOpenHours is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9a08) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d850). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSOpenPeriod is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9a58) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d8a0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSParkingData is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9aa8) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d8f0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSRequestCancelled is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9af8) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d940). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSRequestOptions is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9b48) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d990). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSResultChildMetadata is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9b98) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7d9e0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSResultMetadata is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9be8) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7da30). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSRetrieveOptions is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9c38) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7da80). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSReverseGeoOptions is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9c88) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7dad0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSRoutablePoint is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9cd8) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7db20). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSSearchAddress is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9d28) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7db70). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSSearchAddressCountry is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9d78) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7dbc0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSSearchAddressRegion is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9dc8) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7dc10). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSSearchEngine is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9e18) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7dc60). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSSearchOptions is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9e68) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7dcb0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSSearchResponse is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9eb8) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7dd00). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSSearchResult is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9f08) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7dd50). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSSuggestAction is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9f58) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7dda0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSUserActivityReporter is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9fa8) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7ddf0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSUserActivityReporterOptions is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046f9ff8) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7de40). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSUserRecord is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046fa048) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7de90). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.
objc[3276]: Class MBXSUserRecordsLayer is implemented in both /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/Frameworks/MapboxSearch.framework/MapboxSearch (0x1046fa098) and /private/var/containers/Bundle/Application/CDFB8BEA-B539-498C-A1D5-B11B7A0AAC6E/MyProject.app/MyProject.debug.dylib (0x10cd7dee0). This may cause spurious casting failures and mysterious crashes. One of the duplicates must be removed or renamed.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the duplicate-symbol warnings on an iOS device or simulator with the listed CocoaPods dependencies and Xcode 26. Compare the MapboxSearch.framework and MyProject.debug.dylib copies shown in the logs, then determine which dependency or integration introduces both. Done means the reported MBXS duplicate-class warnings no longer appear.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.