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

Semantic issues with versions > 5.1.0 #6664

Closed
jordanhbuiltbyhq opened this issue Jul 21, 2020 · 5 comments
Closed

Semantic issues with versions > 5.1.0 #6664

jordanhbuiltbyhq opened this issue Jul 21, 2020 · 5 comments

Comments

@jordanhbuiltbyhq
Copy link

jordanhbuiltbyhq commented Jul 21, 2020

Goals

Use a version of RealmSwift > 5.1.0

Expected Results

No error building app after installing > 5.1.0

Actual Results

The app fails to compile with a bunch of semantic issues:

...app/Pods/Realm/include/core/__bit_reference:176:62: No member named '__libcpp_ctz' in namespace 'std::__1'; did you mean '__libcpp_wcsstr'?
...app/Pods/Realm/include/core/__bit_reference:1119:7: No template named '_If'
etc

Steps for others to Reproduce

Execute pod update with pod 'RealmSwift' in the Podfile
Try to run the app and it will throw errors
Specify pod 'RealmSwift', '5.1.0' instead and it runs successfully

Version of Realm and Tooling

Realm framework version: 5.3.1 or anything > 5.1.0

Xcode version: 11.6 (11E708)

iOS/OSX version: iOS 13.6, macOS 10.15.6

Dependency manager + version: CocoaPods 1.9.3

Let me know if you need any more info!

@tgoyne
Copy link
Member

tgoyne commented Jul 21, 2020

Do you have Xcode 12 installed and set as the default Xcode version? pod install needs to be run with the same Xcode version as you're going to build the project as we set things up differently for each of them. Deleting the Pods directory and rerunning pod install with Xcode 11 active selected should fix it.

If you don't have Xcode 12 installed at all then that'd mean there's a bug in how we're detecting the active Xcode version.

@jordanhbuiltbyhq
Copy link
Author

I do! Switched to Xcode 11 via xcode-select, made sure command line tools is Xcode 11, deleted Pods and reran pod install but I still get the same errors. 🤔

@bsweett
Copy link

bsweett commented Jul 24, 2020

I am seeing a similar issue in Xcode 11.5 but only with 5.3.2. I was able to revert to 5.3.1 and the issue went away. 5.3.2 builds correctly in Xcode 12 beta 3.

A diff between 5.3.2 and 5.3.1 shows the addition of the __bit_reference file in realm core that is causing the semantic issues.

@tgoyne
Copy link
Member

tgoyne commented Jul 25, 2020

This should go away in the next release as the bug we were working around (incorrectly?) appears to have been fixed in Xcode 12 beta 3.

@bsweett
Copy link

bsweett commented Aug 26, 2020

This has been fixed. I tested with 5.3.5 and Xcode 12 beta 5.

@tgoyne tgoyne closed this as completed Aug 26, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants