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

Should I update my MAC OS? #13

Closed
tomatodady opened this issue Aug 31, 2014 · 2 comments
Closed

Should I update my MAC OS? #13

tomatodady opened this issue Aug 31, 2014 · 2 comments

Comments

@tomatodady
Copy link

My environment is OS 10.9.4 and Xcode 6 beta 5. I have tried to use Async in my iOS app, but it failed in the simulator (iOS 8).
I didn't modify anything, just run the two projects "AsyncExample iOS" and "AsyncExample iOSTests".

"AsyncExample iOS" printed these:
A: This is run on the Main (expected Background)
B: This is run on the Main (expected Main), after the previous block

"AsyncExample iOSTests" just succeed for the functions "testAsyncMain", "testAfterMain" and "testCancel". Other functions failed because qos_class_self() returned 0, which wasn't equal to any qos class.

Is MAC OS version the reason?

@josephlord
Copy link

You can use Async.legacy. The main Async requires 10.10 or iOS8.

To expand further the qos classes were only introduced at this year's WWDC of iOS8 and 10.10 Yosemite. Also the main Async library makes heavy use of other newly introduced API calls. Async.legacy is a drop in replacement and when you do target 10.10 you can pull it out and drop the main Async back in to take advantage of the qos classes. I blogged about them here: http://blog.human-friendly.com/async-dot-legacy-swift-wrapper-for-grand-central-dispatch-ios7-and-os-x-10-dot-9-compatible

@duemunk
Copy link
Owner

duemunk commented Sep 29, 2014

Also the simulator doesn't handle threads correctly.

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

3 participants