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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -