i want to edit info.plist file programatically…and add URL Scheme
Fortunately it’s easy with NSDictionary. You can just initialise a NSMutableDictionary using init?(contentsOfFile path: String)
and then you can read from and write values to the dictionary in the usual way. When you want to store the file, use writeToFile(_ path: String, atomically useAuxiliaryFile: Bool) -> Bool
.
Right click on info.plist
in the project navigator, choose Open As..
and then Source Code
.