Compiling realm-cocoa without cocoapods


#1

I am using sh build.sh ios-static from the instructions found here https://github.com/realm/realm-cocoa/blob/master/build.sh and I get the errors below. Are there any other steps that need to be taken to build realm-cocoa?

** BUILD FAILED **

The following build commands failed:
CompileC build/DerivedData/Realm/Build/Intermediates.noindex/Realm.build/Release-iphoneos-static/Realm\ iOS\ static.build/Objects-normal/armv7/binding_callback_thread_observer.o Realm/ObjectStore/src/binding_callback_thread_observer.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/DerivedData/Realm/Build/Intermediates.noindex/Realm.build/Release-iphoneos-static/Realm\ iOS\ static.build/Objects-normal/armv7/collection_change_builder.o Realm/ObjectStore/src/impl/collection_change_builder.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/DerivedData/Realm/Build/Intermediates.noindex/Realm.build/Release-iphoneos-static/Realm\ iOS\ static.build/Objects-normal/armv7/collection_notifications.o Realm/ObjectStore/src/collection_notifications.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/DerivedData/Realm/Build/Intermediates.noindex/Realm.build/Release-iphoneos-static/Realm\ iOS\ static.build/Objects-normal/armv7/collection_notifier.o Realm/ObjectStore/src/impl/collection_notifier.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/DerivedData/Realm/Build/Intermediates.noindex/Realm.build/Release-iphoneos-static/Realm\ iOS\ static.build/Objects-normal/armv7/external_commit_helper.o Realm/ObjectStore/src/impl/apple/external_commit_helper.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/DerivedData/Realm/Build/Intermediates.noindex/Realm.build/Release-iphoneos-static/Realm\ iOS\ static.build/Objects-normal/armv7/format.o Realm/ObjectStore/src/util/format.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/DerivedData/Realm/Build/Intermediates.noindex/Realm.build/Release-iphoneos-static/Realm\ iOS\ static.build/Objects-normal/armv7/index_set.o Realm/ObjectStore/src/index_set.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
CompileC build/DerivedData/Realm/Build/Intermediates.noindex/Realm.build/Release-iphoneos-static/Realm\ iOS\ static.build/Objects-normal/armv7/keychain_helper.o Realm/ObjectStore/src/impl/apple/keychain_helper.cpp normal armv7 c++ com.apple.compilers.llvm.clang.1_0.compiler
(8 failures)


#2

The portion of the build output that you’ve shared just summarizes which files failed to compile. It doesn’t include any of the error output that would help in understanding why they failed to compile. You’d need to share the complete output.

As a sanity check, did you check out the submodules of realm-cocoa’s Git repository prior to building (git submodule update --init --recursive)?