bool UpdateXcodeProject(IProgressMonitor monitor) { try { xcode.UpdateProject(monitor, CreateSyncList(), CreateProject(dnp.Name)); return(true); } catch (Exception ex) { monitor.ReportError(GettextCatalog.GetString("Error updating Xcode project"), ex); return(false); } }
bool UpdateXcodeProject(IProgressMonitor monitor) { try { // Ensure that the obj directory and all subfiles/subdirectories // are writeable so we can create the temp files for xcode syncing dnp.BaseDirectory.MakeWritable(); ObjDir.MakeWritable(); XcodeDir.MakeWritable(true); xcode.UpdateProject(monitor, CreateSyncList(), CreateProject(dnp.Name)); return(true); } catch (AppleScriptException asex) { ShowXcodeScriptError(); monitor.ReportError(GettextCatalog.GetString("Error updating Xcode project"), asex); return(false); } catch (TimeoutException tex) { ShowXcodeScriptError(); monitor.ReportError(GettextCatalog.GetString("Error updating Xcode project"), tex); return(false); } catch (Exception ex) { monitor.ReportError(GettextCatalog.GetString("Error updating Xcode project"), ex); return(false); } }