Closed zhaowq32 closed 2 years ago
Hi!
Thanks for the report. We added experimental support for this some time ago indeed. But it seems the README is a bit out of sync, as we are not testing the breakpad backend in CI, but rather the inproc backend, which at least builds fine.
I found a solution.The reason for the problem is because cmake cannot recognize the IOS variable.Setting CMAKE_SYSTEM_NAME to IOS solved the problem.
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_FLAGS=-fembed-bitcode -DCMAKE_CXX_FLAGS=-fembed-bitcode -DCMAKE_ASM_FLAGS=-fembed-bitcode -DCMAKE_OSX_SYSROOT=iphonesimulator -DCMAKE_OSX_ARCHITECTURES=i386 -DCMAKE_OSX_DEPLOYMENT_TARGET=9.0 -DSENTRY_BUILD_TESTS=OFF -DSENTRY_BUILD_EXAMPLES=OFF -DSENTRY_BUILD_SHARED_LIBS=OFF -DSENTRY_BUILD_EXAMPLES=OFF -DSENTRY_BACKEND=breakpad -DSENTRY_TRANSPORT=curl -DCURL_INCLUDE_DIR=/Users/xxx/Develope/Tools/Library/ios/libcurl/include -DCURL_LIBRARY=/Users/xxx/Develope/Tools/Library/ios/libcurl/lib/libcurl.a -DCMAKE_INSTALL_PREFIX=/Users/xxx/Develope/PublicCodes/sentry-native/build/dest -DCMAKE_SYSTEM_NAME=IOS ..
Oh, thats good to hear. Does that mean we can close this issue?
The cmakelists.txt file is missing some files. I will submit a PR.
It has been compiled normally by modifying cmakelists.txt. But it crashes when calling sentry_init.
compile error
cmake command
Environment
Steps To Reproduce
Log output