RHAddressBook icon indicating copy to clipboard operation
RHAddressBook copied to clipboard

DBL_MAX not found after clearing DerivedData

Open mrbaker4 opened this issue 11 years ago • 8 comments

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.

mrbaker4 avatar Dec 06 '13 00:12 mrbaker4

Hmm, thats quite strange.

heardrwt avatar Dec 06 '13 00:12 heardrwt

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?

heardrwt avatar Dec 06 '13 00:12 heardrwt

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.

mrbaker4 avatar Dec 06 '13 01:12 mrbaker4

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 avatar Feb 04 '14 23:02 aarontait

@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.

mrbaker4 avatar Feb 04 '14 23:02 mrbaker4

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.

aarontait avatar Feb 04 '14 23:02 aarontait

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''

mrbaker4 avatar Feb 07 '14 23:02 mrbaker4

Same issue. Very strange.

Edit: And literally right after I posted this, it built. Super strange - not sure what changed (if anything).

tomredman avatar Feb 18 '14 03:02 tomredman