Skip to content

Warning: OSAtomicIncrement64 was deprecated in tvOS 10.0 #511

@yammada

Description

@yammada

When building Nuke (10.4.1) in my tvOS project with Xcode 13.0 (targeting tvOS 13.0) I see the following warnings:

Nuke/Sources/Core/ImagePipeline.swift:51:37: 'OSAtomicIncrement64' was deprecated in tvOS 10.0: Use atomic_fetch_add_explicit(memory_order_relaxed) from <stdatomic.h> instead

Nuke/Sources/Core/ImageTask.swift:79:12: 'OSAtomicCompareAndSwap32Barrier' was deprecated in tvOS 10.0: Use atomic_compare_exchange_strong() from <stdatomic.h> instead

Nuke/Sources/Internal/Operation.swift:15:19: 'OSAtomicCompareAndSwap32Barrier' was deprecated in tvOS 10.0: Use atomic_compare_exchange_strong() from <stdatomic.h> instead

Nuke/Sources/Internal/Operation.swift:25:19: 'OSAtomicCompareAndSwap32Barrier' was deprecated in tvOS 10.0: Use atomic_compare_exchange_strong() from <stdatomic.h> instead

Nuke/Sources/Internal/Operation.swift:76:12: 'OSAtomicCompareAndSwap32Barrier' was deprecated in tvOS 10.0: Use atomic_compare_exchange_strong() from <stdatomic.h> instead

Happy to provide any other information that would be helpful or even a patch with some guidance, but I'm not familiar with this API or the impact that changing it might have on other platforms.

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementNon-functional change that improves existing functionality

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions