Replaced URLByAppendingPathComponent:isDirectory method with URLByAppendingPathComponent: which is available in 10.6