Reachability.swift: Plaform condition appears to be testing for simulator environment; use 'targetEnvironment(simulator)' instead

Created on 3 Apr 2018  路  5Comments  路  Source: ashleymills/Reachability.swift

Since the Xcode 9.3 Update this morning there is a warning in version 4.1.0:

"Reachability.swift:136:42: Plaform condition appears to be testing for simulator environment; use 'targetEnvironment(simulator)' instead"

targetEnvironment(simulator) seems to be working in a first test.

Most helpful comment

Will you be updating the CocoaPod version soon? I continue to see this warning but have the latest release installed, 4.1.0.

All 5 comments

Submitted PR #284 to resolve this. 馃憤

Fixed in master 馃憤

Will you be updating the CocoaPod version soon? I continue to see this warning but have the latest release installed, 4.1.0.

Consider a temporary workaround to suppress warnings for a specific external library through CocoaPods https://stackoverflow.com/questions/46412716/xcode-suppressing-all-warnings-for-all-external-libraries

this fix breaks things in xcode 9.2.

See issue #309

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rjt3662 picture rjt3662  路  3Comments

jet-snag picture jet-snag  路  3Comments

AlekseiR picture AlekseiR  路  4Comments

tjarbo picture tjarbo  路  12Comments

cannyboy picture cannyboy  路  9Comments