abagmut
abagmut

Reputation: 911

Xcode 12 IPHONEOS_DEPLOYMENT_TARGET warning for SPM dependencies

After updating to Xcode 12, I've got lots of warnings for SPM dependencies (including RxSwift and Facebook).

The iOS Simulator deployment target 'IPHONEOS_DEPLOYMENT_TARGET' is set to 8.0, but the range of supported deployment target versions is 9.0 to 14.0.99.

Can I suppress these warnings somehow, or is the only way to wait till the creators of appropriate frameworks fixed it?

Upvotes: 42

Views: 2771

Answers (1)

Wilson
Wilson

Reputation: 386

You can try:

@available(iOS, deprecated: 9.0)

or this:

#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"

Upvotes: 1

Related Questions