Skip to content

Cannot compile with Xcode 13b3: 'shared' is unavailable #338

@joshuapoq

Description

@joshuapoq

Raising this whilst I'm not sure I'd recommend fixing yet. Follow this thread for a better explanation of the issue.

The following common code is unavailable in iOS app extensions. Code using this code no longer compiles via SPM.

UIApplication.shared

Xcode 13b3 is requiring that frameworks use the following annotation for code using unavailable code.

@available(iOSApplicationExtension, unavailable)

Affected lines of code:
https://github.com/ninjaprox/NVActivityIndicatorView/blob/master/Sources/Extended/NVActivityIndicatorPresenter.swift#L309
https://github.com/ninjaprox/NVActivityIndicatorView/blob/master/Sources/Extended/NVActivityIndicatorPresenter.swift#L325

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions