-
Notifications
You must be signed in to change notification settings - Fork 127
Description
Please fill in the following fields:
Pre-built SDK from the website or open-source from this repo:
Open source from: https://github.com/firebase/firebase-cpp-sdk.git
Firebase C++ SDK version: firebase_cpp_sdk_6.12.0
Firebase plugins in use (Auth, Database, etc.): Auth
Additional SDKs you are using (Facebook, AdMob, etc.): none
Platform you are using the C++ SDK on (Mac, Windows, or Linux): Mac
Platform you are targeting (iOS, Android, and/or desktop): iOS
Please describe the issue here:
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
I am trying to build firebase-cpp-sdk using CMake on MacOSX, targeting iOS.
When I run: cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchains/ios.cmake ..
I get the following error:
[100%] Built target protobuf
-- Failed to find LLVM FileCheck
-- git Version: v0.0.0
-- Version: 0.0.0
-- Performing Test HAVE_THREAD_SAFETY_ATTRIBUTES -- failed to compile
-- Performing Test HAVE_STD_REGEX -- compiled but failed to run
-- Performing Test HAVE_GNU_POSIX_REGEX -- failed to compile
-- Performing Test HAVE_POSIX_REGEX -- compiled but failed to run
CMake Error at ios_build/external/src/firestore-build/external/src/benchmark/CMakeLists.txt:251 (message):
Failed to determine the source files for the regular expression backend
From the CMakeError.log:
Run Build Command(s):/usr/bin/make cmTC_fe8f5/fast && /Applications/Xcode.app/Contents/Developer/usr/bin/make -f CMakeFiles/cmTC_fe8f5.dir/build.make CMakeFiles/cmTC_fe8f5.dir/build
Building CXX object CMakeFiles/cmTC_fe8f5.dir/src.cxx.o
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ -std=c++11 -Wall -Wextra -Wshadow -pedantic -pedantic-errors -Wshorten-64-to-32 -fstrict-aliasing -Wno-deprecated-declarations -fno-exceptions -Wstrict-aliasing -DHAVE_CXX_FLAG_WD654 -wd654 -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS13.2.sdk -wd654 -o CMakeFiles/cmTC_fe8f5.dir/src.cxx.o -c /Users/schramm/Desktop/firebase-cpp-sdk/ios_build/CMakeFiles/CMakeTmp/src.cxx
clang: error: unknown argument: '-wd654'
clang: error: unknown argument: '-wd654'
make[1]: *** [CMakeFiles/cmTC_fe8f5.dir/src.cxx.o] Error 1
make: *** [cmTC_fe8f5/fast] Error 2
Can anyone help me?