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

Snapshot conflicts with MBSnapshot in MobileBackup #86

Open
1ec5 opened this issue Dec 8, 2018 · 1 comment
Open

Snapshot conflicts with MBSnapshot in MobileBackup #86

1ec5 opened this issue Dec 8, 2018 · 1 comment

Comments

@1ec5
Copy link
Contributor

1ec5 commented Dec 8, 2018

The Snapshot class has an Objective-C name of MBSnapshot, which conflicts with an identically named class in the private MobileBackup framework:

@objc(MBSnapshot)
open class Snapshot: NSObject {

The following message appeared at launch in a Swift application. The application’s implementation language didn’t matter, because @objc() affects the runtime class name in both languages.

objc[1573]: Class MBSnapshot is implemented in both /System/Library/PrivateFrameworks/MobileBackup.framework/MobileBackup (0x2411118a0) and /private/var/containers/Bundle/Application/5378C9A6-3281-4848-AED1-E0388600151B/….app/Frameworks/MapboxStatic.framework/MapboxStatic (0x1094c53c0). One of the two will be used. Which one is undefined.

Looks like we’ll need to give Snapshot a different name, such as MapSnapshot.

/cc @friedbunny @captainbarbosa @frederoni

@rawillk
Copy link

rawillk commented Sep 14, 2019

Any progress on this one? Is MapboxStatic.swift still supported by developers?

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