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

iOS version check failed with iOS 10+ #98

Open
ltgbau opened this issue Sep 9, 2016 · 11 comments
Open

iOS version check failed with iOS 10+ #98

ltgbau opened this issue Sep 9, 2016 · 11 comments

Comments

@ltgbau
Copy link

ltgbau commented Sep 9, 2016

In iOS10+ version will always return 1, so AudioSession init wrong way

@Volodymyr-13
Copy link

Same here:
Error: -[IOSVersion init]: Cannot parse iOS version string "10.0.1"

@EljoHB
Copy link

EljoHB commented Sep 22, 2016

I've replaced it with the following code which seems to be just fine as only the major OS version is needed:

Edit the IOSVersion.m file:

- (id) init
{
if(nil != (self = [super init]))
{
#ifdef __IPHONE_OS_VERSION_MAX_ALLOWED
NSString* versionStr = [UIDevice currentDevice].systemVersion;
NSArray* versionInfo = [versionStr componentsSeparatedByString:@"."];
version = [versionInfo[0] intValue];
#else
version = 5;
#endif
}

@Volodymyr-13
Copy link

Volodymyr-13 commented Sep 25, 2016

I even removed using of this IOSVersion singleton, because now iOS 8 is minimum, so we don't need that old code for iOS 6 or 7 even /

@kstenerud
Copy link
Owner

I'll just remove it, then. No need to support ios 5 anyway.

@kstenerud
Copy link
Owner

07e1628

@Volodymyr-13
Copy link

Yea, but in the latest Xcode minimum target is iOS 8 and who will compile for iOS 6 or what kind of device using it?

@kstenerud
Copy link
Owner

Doesn't matter. It's gone now.

@Volodymyr-13
Copy link

Hmm, so you think it's not need to update ObjectAL with latest iOS's because OpenAL been deprecated since iOS9? Looking forward for something new :)

@kstenerud
Copy link
Owner

Yeah, that'll come soon. But for now I'm just fixing the immediate problem :)

@kstenerud
Copy link
Owner

It turns out that OpenAL was not actually deprecated: https://forums.developer.apple.com/thread/7081

@Volodymyr-13
Copy link

OpenAL is listed as (Removed), so for SKD 9.0 probably will not be able to use it.

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