I am attempting to submit a cocoapod written in Swift that contains the following code method intended to prevent execution of specific code when targeting a simulator:
func isDevice() -> Bool {
#if (arch(i386) || arch(x86_64)) && os(iOS)
return false
#endif
return true
}
While XCode finds this acceptable, and I can suppress the warning from pod lib lint
with the --allow-warnings
flag, attempting to submit the pod will still fail.
This code produces the warning warning: code after 'return' will never be executed
.