reachability-swift

iOS Unexpected platform condition (expected 'os', 'arch', or 'swift') - Reachability

喜欢而已 提交于 2019-12-13 12:32:10
问题 I just update my pods. after update Reachability causing an error Unexpected platform condition (expected 'os', 'arch', or 'swift') I tried to build and clean but it does not work. what's the solution? Please help me to fix this. Thanks in advance. 回答1: use this 1 #if (arch(i386) || arch(x86_64)) && os(iOS) #endif 回答2: You can try as Muhammad says. I suggest the following code which is very easy to maintain. Copy paste the following code to a file and try yourself. import Foundation import

iOS Unexpected platform condition (expected 'os', 'arch', or 'swift') - Reachability

吃可爱长大的小学妹 提交于 2019-12-06 06:14:50
I just update my pods. after update Reachability causing an error Unexpected platform condition (expected 'os', 'arch', or 'swift') I tried to build and clean but it does not work. what's the solution? Please help me to fix this. Thanks in advance. Muhammad Umair Gillani use this 1 #if (arch(i386) || arch(x86_64)) && os(iOS) #endif You can try as Muhammad says. I suggest the following code which is very easy to maintain. Copy paste the following code to a file and try yourself. import Foundation import SystemConfiguration class Network { // Declarations static let shared = Network() // Check