Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DBL_MAX not found after clearing DerivedData #34

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

DBL_MAX not found after clearing DerivedData #34

wants to merge 3 commits into from

Conversation

mrbaker4
Copy link

@mrbaker4 mrbaker4 commented Dec 6, 2013

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.

@heardrwt
Copy link
Owner

heardrwt commented Dec 6, 2013

Hmm, thats quite strange.

@heardrwt
Copy link
Owner

heardrwt commented Dec 6, 2013

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?

@mrbaker4
Copy link
Author

mrbaker4 commented Dec 6, 2013

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.

@aarontait
Copy link

I'm having the same issue with our build machine. Are there any workarounds for this? It looks like it's an Xcode issue.

@mrbaker4
Copy link
Author

mrbaker4 commented Feb 4, 2014

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

@aarontait
Copy link

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.

@mrbaker4
Copy link
Author

mrbaker4 commented Feb 7, 2014

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

@tomredman
Copy link

Same issue. Very strange.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants