caiyue1993 / IceCream

Sync Realm Database with CloudKit
MIT License
1.93k stars 243 forks source link

Fix build on Xcode 12 #230

Closed aehlke closed 3 years ago

aehlke commented 3 years ago

I had to include a missing class file, and I updated to Xcode's recommended settings (which I haven't reviewed closely, I don't know the full impact of them yet)

caiyue1993 commented 3 years ago

Yeah, I don't think the changes are necessary except the PendingRelationshipsWorker file additions.

aehlke commented 3 years ago

I was unable to build on Big Sur on an Intel Mac without the other accompanying changes. Unfortunately I don't know how to scope it down to the minimal changes required, nor how to maintain compatibility with Apple Silicon build environments (I had to disable arm64 builds for simulator targets to resolve a Carthage build error).

edit: I'm open to anyone helping excise unnecessary changes by editing/forking this PR.

aehlke commented 3 years ago

Hmm, this is half-broken. I can't build the project itself from within Xcode 12.4, I get undefined symbol errors from Realm with ld: symbol(s) not found for architecture arm64

caiyue1993 commented 3 years ago

Hi @aehlke, I've raised another pull request to fix Carthage build issue. Simple as that and close this one😆