ios - Unable to update Document folder at runtime -


running saving issues document folder @ run time. document folder save new data session , reversed old version after app restarted. doesn't happen on simulator signed ipa. permission issues?

static public func updatejson() -> bool{     do{         //try filemanager.default.replaceitemat(constants.getjsonpath(), withitemat: constants.getdatasyncjsonpath())         try filemanager.default.removeitem(at: constants.getjsonpath())         try filemanager.default.copyitem(at: constants.getdatasyncjsonpath(), to: constants.getjsonpath())         print("updating json")         return true     } catch {         print(error)         return false     }  } 

thanks, brian


Comments

Popular posts from this blog

c# - Update a combobox from a presenter (MVP) -

How to understand 2 main() functions after using uftrace to profile the C++ program? -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -