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

Apollo "Object" affected on RealmSwift Objects in project #2652

Closed
alwacker opened this issue Nov 9, 2022 · 1 comment
Closed

Apollo "Object" affected on RealmSwift Objects in project #2652

alwacker opened this issue Nov 9, 2022 · 1 comment

Comments

@alwacker
Copy link

alwacker commented Nov 9, 2022

Bug report

Hi, I`ve started to migrate Apollo to 1.0.3 from 0.52. And huge problem is that latest update affected on all project, besides Apollo using in small part of my project.

For example:
RealmSwift has class "Object" which is NSObject, but Apollo's "Object" overrides Realms.

Same goes with optional func ??
Screenshot 2022-11-09 at 2 47 22

Versions

Please fill in the versions you're currently using:

  • apollo-ios SDK version: 1.0.3
  • Xcode version: 14.0
  • Swift version: 5.7
  • Package manager: cocoapods
@calvincestari
Copy link
Member

Hi @alwacker 👋🏻

Same goes with optional func ??

The nil coalescing operator error should be fixed with #2650, which is in main and will be included with the next release.

RealmSwift has class "Object" which is NSObject, but Apollo's "Object" overrides Realms.

Is the build error happening in Apollo files or generated files? If it's in your own project source files and you're importing both libraries you'll probably need to use the full namespaced type name, eg: RealmSwift.Object.

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