Having some build issues on master. Seeing the following errors:

Looks like it's out of sync with realm-object-store? Specifically I couldn't find any alternative for RLMDynamicGetByName. The rest are easy to fix.
Did you git submodule update?
@jpsim Do you think we ought to mention this step in the build instructions in the README?
EDIT: Tracked by https://github.com/realm/realm-cocoa/issues/4041.
yes
Yes. I double checked and went into the core directory and pulled - it says it is up to date.
@danielrhodes The core directory isn't a submodule. It's the Realm/ObjectStore directory that is. You shouldn't need to pull though (in fact, this might cause build issues). In the root of the repo (not the Realm/ObjectStore directory), run git submodule update --init.
Alright I removed my local realm-cocoa directory, re-cloned, ran git submodule update --init, and did a clean on my project to make sure. Same errors. Realm/ObjectStore says it is pointing to https://github.com/realm/realm-object-store/tree/7922710805950c353f00c4ba5146e2ff98aa8aa9
I just recloned the repo, ran git submodule update --init, and opened the project in Xcode Version 8.0 beta 6 (8S201h). I was able to compile and run the Realm and RealmSwift tests successfully.
Though for some reason, the submodule shows to be at "HEAD detached at 7922710". Hmm.. 馃
Edit: This is apparently expected behavior for submodules. Not a problem.
The error messages mentioned above don't seem related to the object store at all, but seem more like Realm Swift is building against the wrong version of Realm?
@danielrhodes, can you try blowing away your derived data directory to make sure a stale version of Realm.framework isn't somehow involved? If it still fails after that can you then share the full build log from Xcode's Report navigator (the full output likely contains clues that'll help us understand what's different about your environment).
I just created an empty XCode project with this Podfile:
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'
target 'RealmTest' do
# Comment this line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
pod 'RealmSwift', :git => 'https://github.com/realm/realm-cocoa.git', :submodules=> true
# Pods for RealmTest
end
removed DerivedData, and got the same errors. Here's the build log:
https://gist.github.com/danielrhodes/4a9a6f36c19095355de7523f4334051d
Thanks, that reveals the problem immediately :-)
You need to add the following as well:
pod 'Realm', :git => 'https://github.com/realm/realm-cocoa.git', :submodules=> true
Otherwise CocoaPods will pull down the most recent Realm release to satisfy RealmSwift's dependency on Realm.
I think that'll do it. Thanks, much appreciated.
And on that note: I really wish Cocoapods would add the ability to point to a pod in a different repo/branch in the specs. Has made this transition to Swift 3 difficult, but also makes forking a pod hard if it has dependencies.
Most helpful comment
Thanks, that reveals the problem immediately :-)
You need to add the following as well:
Otherwise CocoaPods will pull down the most recent Realm release to satisfy RealmSwift's dependency on Realm.