RHAddressBook
RHAddressBook copied to clipboard
DBL_MAX not found after clearing DerivedData
We are running our builds on a build machine that clears out the DerivedData before every build, and it keeps crashing that it can't find DBL_MAX. If I include float.h and not switch DBL_MAX then the build still fails. It works just fine when using FLT_MAX.
Hmm, thats quite strange.
CLLocationDistance is a double, so its not exactly ideal to be using FLT_MAX. DBL_MAX is defined in the same file, which makes it kinda strange.
Out of interest, why are you clearing out your derived data before each build?
We clear it out because we were having issue where the builds weren't being cleaned properly so we remove the DerivedData to ensure that there is no issues. Also, I don't see DBL_MAX defined in the same file. I wonder if that is the issue.
I'm having the same issue with our build machine. Are there any workarounds for this? It looks like it's an Xcode issue.
@aarontait we are currently still using my fork of RHAddressBook. That seems to work for our build system. Let me know if that works for you.
Thanks. Using FLT_MAX works for now, I don't use the location stuff anyway. However I'm using CocoaPods so hopefully apple fixes this soon.
I also use cocoapods so I just forked the project and in my podfile just put pod 'RHAddressBook', :podspec => 'https://gist.github.com/mrbaker4/7815819/raw/75c4d1f68d161cc3fa1467810a6ef56f46814248/RHAddressBook-Fix''
Same issue. Very strange.
Edit: And literally right after I posted this, it built. Super strange - not sure what changed (if anything).