I have a value inside of my info.plist called radiusDistance that i'm trying to change, i've attempted using this code but it doesn't change the value
let path = Bundle.main.path(forResource: "Info", ofType: "plist")!
var dict = NSDictionary(contentsOfFile: path) as! [String: AnyObject]
let radiusDistance = dict["radiusDistance"]
print("radiusDistance",radiusDistance as Any)
let value = Int(5)
do{
dict.updateValue(value as AnyObject, forKey: "radiusDistance")
try path.write(toFile: path, atomically: false, encoding:String.Encoding.utf8)
}
catch let error as NSError{
print("something went horribly wrong\(error.debugDescription)")
}
Everything runs but when I go back to my info.plist nothing changes, and the value remains at "0"