firebase-ios-sdk: Can't build after update: cstddef file not found
[REQUIRED] Step 2: Describe your environment
- Xcode version: 11.3
- Firebase SDK version: 6.14.0
- Firebase Component: Firestore
- Component version: 1.8.3
[REQUIRED] Step 3: Describe the problem
After updating Firestore to version that includes “abseil” as a dependency builds are broken.
I’m getting error in Pods/abseil/types/compare/compare.h
on line #include <cstddef>
: ‘cstddef’ file not found
Steps to reproduce:
I’m not sure, but as a guess, it maybe related to Objective-C++ usage in project or to libyuv
pod dependency.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 3
- Comments: 15 (8 by maintainers)
The mainline libyuv actually has the shape you want: https://chromium.googlesource.com/libyuv/libyuv/+/refs/heads/master/include/libyuv.h.
The trouble is that the CocoaPod packaging has changed this (or not kept up with its upstream): https://github.com/waitingsnow/libyuv-iOS/blob/master/headers/libyuv.h. The pull request would be against waitingsnow/libyuv-iOS.
Note, however, that CocoaPods flattens headers paths by default, so it’s likely that this change was made to make the project compile that way. Some additional work with
preserve_paths
or similar would be required.