ninja failed to build native iOS webrtc lib

302 views
Skip to first unread message

bin...@outlook.com

unread,
Jun 8, 2021, 1:07:26 AM6/8/21
to discuss-webrtc
After upgrading my xcode to the latest version (sdk 14.5), I am no longer able to build M84 native iOS webrtc lib with the following errors. (I used be able to build without problem before upgrading Xcode)

../../third_party/llvm-build/Release+Asserts/bin/../include/c++/v1/string.h:73:64: error: use of undeclared identifier 'strchr'

../../third_party/llvm-build/Release+Asserts/bin/../include/c++/v1/string.h:96:46: error: unknown type name 'size_t'

../../third_party/llvm-build/Release+Asserts/bin/../include/c++/v1/stdlib.h:143:12: error: no member named 'ldiv' in the global namespace

I can still use Xcode to build by using "gn gen --ide=xcode", but I am not able to specify the static lib target in Xcode. So I would prefer continuing to use ninja.

I have tried removing the CommandLineTools and reselect Xcode using xcode-select (https://forums.swift.org/t/is-anyone-else-getting-this-error-when-building-the-compiler-from-master-on-macos/36113/2), and even install the mainstream llvm side by side, but still get the same errors.

Any ideas about how to solve the problem?




bin...@outlook.com

unread,
Jun 8, 2021, 2:43:48 AM6/8/21
to discuss-webrtc
OK, I found the problem. I specified the gn arg "use_custom_libcxx=false", change it to true resolve the problem. Somehow ios sdk 14.5 does not work with that flag anymore....
Reply all
Reply to author
Forward
0 new messages