I am working on an app from two different computers. One is my home machine, which is an older MacBook Pro, but has the latest OS and is running Xcode 7.3. The second machine I use is my work machine, which is brand new and lightning fast, but is restricted to Yosemite and Xcode 7.2.1.
I recently encountered a build error on the machine running Xcode 7.2.1, but the app builds and runs without error on the machine running the newer Xcode. I cannot upgrade the work machine due to implacable IT policy, and I really (really) do not wish to downgrade my home machine to Xcode 7.2.1.
So what I would like to do is write a conditional similar to the following pseudocode:
if Xcode.version == 7.3
// Run this version of the statement
refreshControl.addTarget(self, action: #selector(ReadingTVC.pullToRefreshTableView), forControlEvents: UIControlEvents.ValueChanged)
if Xcode.version == 7.2.1
// Run this different version of the statement
// I still need to figure out how to rewrite the statement for 7.2.1
Is this possible? I found the following in Apple documentation, but there is no option for Xcode versions. only swift(), os() or arch():
Thanks in advance!