I am getting the following error message on Xcode, Version 7.0.1 (7A1001). Now, I have looked up the forum and seems like many other are having similar problem, but could not find any solution that works for me. Here are all error messages:
Oct 9 15:52:41 Variables2[2594] <Error>: CGContextSaveGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Oct 9 15:52:41 Variables2[2594] <Error>: CGContextTranslateCTM: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
Oct 9 15:52:41 Variables2[2594] <Error>: CGContextRestoreGState: invalid context 0x0. If you want to see the backtrace, please set CG_CONTEXT_SHOW_BACKTRACE environmental variable.
The high for New York is 42 degrees celcius
The code I am trying to run is a simple funcion:
import UIKit
func cityTemperature (city:String, temp:Int) {
print ("The high for \(city) is \(temp) degrees celcius")
}
cityTemperature("New York", temp: 42)