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

Still getting warnings #16

Closed
allaire opened this issue Aug 6, 2014 · 12 comments
Closed

Still getting warnings #16

allaire opened this issue Aug 6, 2014 · 12 comments

Comments

@allaire
Copy link

allaire commented Aug 6, 2014

See screenshot below:

Warnings

@allaire
Copy link
Author

allaire commented Aug 12, 2014

@skywinder Any updates?

@skywinder
Copy link
Owner

And can't reproduce it.
I don't see any warnings in Xcode.
I will try to investigate this issue later.

@skywinder
Copy link
Owner

It seems the something wrong with warnings flags. I can't reproduce it.
Until it is not fixed, just ignore it.
If someone can fix it - I will be glad to merge it.

@LeoSnek
Copy link

LeoSnek commented Aug 21, 2014

I get the same warnings:

AbstractActionSheetPicker.m:369:45: 'sizeWithFont:' is deprecated: first deprecated in iOS 7.0 - Use -sizeWithAttributes:
AbstractActionSheetPicker.m:476:20: 'contentSizeForViewInPopover' is deprecated: first deprecated in iOS 7.0 - Use UIViewController.preferredContentSize instead.
ActionSheetStringPicker.m:100:82: Implicit conversion loses integer precision: 'NSInteger' (aka 'long') to 'int'

The first two only appear if the deployment target is set to at least 7.0.

@funnel20
Copy link

I can confirm the warnings, I have also set the minimum deployment target to iOS 7.0.

The if-else statement to use sizeWithFont or sizeWithAttributes is based on:

if ( NSFoundationVersionNumber > NSFoundationVersionNumber_iOS_6_1)

sizeWithAttributes is available since iOS 7.0. And so is NSFoundationVersionNumber_iOS_6_1.

What will happen if this code runs on iOS 6? Will it crash on NSFoundationVersionNumber_iOS_6_1?

@skywinder
Copy link
Owner

@funnel20 No. This project fully compatible with iOS 6-7-8. And this check is needed to support all of them at once. Just ignore these warnings.

I don't know where is the problem.
I fix all issues. I add pragmas to mute warrnings.
I run Xcode analyze and it says me "no issues".
Probably something wrong with my settings of Xcode, but I have no idea how to fix it.

But I assure you, that it's nothing wrong with this code.

@skywinder
Copy link
Owner

Ok, Guys. I figure out, what cause ignoring this warnings in my IDE:
I was work with iOS deployment target 6.1. And thats why I didn't see any warnings.
Now it fixed. Thanks for patience.
Please, update to 1.1.6

@funnel20
Copy link

Thanks for the fix, warnings are gone.

@funnel20
Copy link

Hi Petr,

Thanks for fixing this.

Are you planning to tag a new stable release?
The last release is at 1.0.10.
I tried the master version a few days ago, but that didn't show the Sheet at all.
1.0.10 works fine, therefor I switched to it.

With kind regards,

Martijn

On 27 Aug 2014, at 10:41 PM, Petr Korolev [email protected] wrote:

Ok, Guys. I figure out, what cause ignoring this warnings in my IDE:
I was work with iOS deployment target 6.1. And thats why I didn't see any warnings.
Now it fixed. Thanks for patience.


Reply to this email directly or view it on GitHub.

@skywinder
Copy link
Owner

@funnel20 sorry for confusion with versions, especially with 1.0.x.
I do not remember which of 1.0.x versions is stable. May fault.
But I highly recommend to you update to 1.1.5. Now it most stable version.

@funnel20
Copy link

@skywinder I first updated to version 1.1.5, that worked fine.
Now I have updated to 1.1.8 that solved the 3 compiler warnings from this issue and runs fine.
Thanks

@skywinder
Copy link
Owner

You're welcome.
I'll try to not commit in 1.1.x some any dangerous fetaures, only bugfixes.
Stay tuned!

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

No branches or pull requests

4 participants