Fixed compiling errors
Fixed xcode update bug