<?xml version="1.0" encoding="US-ASCII"?>
<!--XBRL Document Created with Wdesk from Workiva-->
<!-- -->
<link:linkbase xsi:schemaLocation="http://www.xbrl.org/2003/linkbase http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd" xmlns:link="http://www.xbrl.org/2003/linkbase" xmlns:xbrldt="http://xbrl.org/2005/xbrldt" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <link:roleRef roleURI="http://www.xerispharma.com/role/CondensedBalanceSheets" xlink:href="xers-20180930.xsd#CondensedBalanceSheets" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/CondensedBalanceSheetsBalanceSheetsParenthetical" xlink:href="xers-20180930.xsd#CondensedBalanceSheetsBalanceSheetsParenthetical" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/CondensedStatementsOfOperationsAndComprehensiveLoss" xlink:href="xers-20180930.xsd#CondensedStatementsOfOperationsAndComprehensiveLoss" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/DeiDocument" xlink:href="xers-20180930.xsd#DeiDocument" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note10FairValueMeasurement" xlink:href="xers-20180930.xsd#Note10FairValueMeasurement" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note10FairValueMeasurementFairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationDetails" xlink:href="xers-20180930.xsd#Note10FairValueMeasurementFairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note10FairValueMeasurementFairValueMeasurementTables" xlink:href="xers-20180930.xsd#Note10FairValueMeasurementFairValueMeasurementTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note10FairValueMeasurementTables" xlink:href="xers-20180930.xsd#Note10FairValueMeasurementTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note11ShortTermInvestmentsDetails" xlink:href="xers-20180930.xsd#Note11ShortTermInvestmentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note11ShortTermInvestmentsNotes" xlink:href="xers-20180930.xsd#Note11ShortTermInvestmentsNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note11ShortTermInvestmentsTables" xlink:href="xers-20180930.xsd#Note11ShortTermInvestmentsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note1OrganizationAndNatureOfBusiness" xlink:href="xers-20180930.xsd#Note1OrganizationAndNatureOfBusiness" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note1OrganizationAndNatureOfBusinessNarrativeDetails" xlink:href="xers-20180930.xsd#Note1OrganizationAndNatureOfBusinessNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note2SummaryOfSignificantAccountingPolicies" xlink:href="xers-20180930.xsd#Note2SummaryOfSignificantAccountingPolicies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note2SummaryOfSignificantAccountingPoliciesNarrativeDetails" xlink:href="xers-20180930.xsd#Note2SummaryOfSignificantAccountingPoliciesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note2SummaryOfSignificantAccountingPoliciesScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetails" xlink:href="xers-20180930.xsd#Note2SummaryOfSignificantAccountingPoliciesScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note2SummaryOfSignificantAccountingPoliciesTables" xlink:href="xers-20180930.xsd#Note2SummaryOfSignificantAccountingPoliciesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note3ReverseStockSplitAndInitialPublicOffering" xlink:href="xers-20180930.xsd#Note3ReverseStockSplitAndInitialPublicOffering" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note3ReverseStockSplitAndInitialPublicOfferingNarrativeDetails" xlink:href="xers-20180930.xsd#Note3ReverseStockSplitAndInitialPublicOfferingNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note4AccruedExpensesAccruedExpensesDetails" xlink:href="xers-20180930.xsd#Note4AccruedExpensesAccruedExpensesDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note4AccruedExpensesNotes" xlink:href="xers-20180930.xsd#Note4AccruedExpensesNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note4AccruedExpensesTables" xlink:href="xers-20180930.xsd#Note4AccruedExpensesTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note5LongTermDebt" xlink:href="xers-20180930.xsd#Note5LongTermDebt" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note5LongTermDebtDebtFuturePrincipalPaymentsDetails" xlink:href="xers-20180930.xsd#Note5LongTermDebtDebtFuturePrincipalPaymentsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note5LongTermDebtNarrativeDetails" xlink:href="xers-20180930.xsd#Note5LongTermDebtNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note5LongTermDebtTables" xlink:href="xers-20180930.xsd#Note5LongTermDebtTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note6ConvertiblePreferredStock" xlink:href="xers-20180930.xsd#Note6ConvertiblePreferredStock" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note6ConvertiblePreferredStockNarrativeDetails" xlink:href="xers-20180930.xsd#Note6ConvertiblePreferredStockNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note7WarrantsNarrativeDetails" xlink:href="xers-20180930.xsd#Note7WarrantsNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note7WarrantsNotes" xlink:href="xers-20180930.xsd#Note7WarrantsNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note7WarrantsScheduleOfStockholdersEquityNoteWarrantsOrRightsDetails" xlink:href="xers-20180930.xsd#Note7WarrantsScheduleOfStockholdersEquityNoteWarrantsOrRightsDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note7WarrantsTables" xlink:href="xers-20180930.xsd#Note7WarrantsTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note8CommitmentsAndContingencies" xlink:href="xers-20180930.xsd#Note8CommitmentsAndContingencies" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note8CommitmentsAndContingenciesNarrativeDetails" xlink:href="xers-20180930.xsd#Note8CommitmentsAndContingenciesNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note9StockCompensationPlanEmployeeStockAwardActivityDetails" xlink:href="xers-20180930.xsd#Note9StockCompensationPlanEmployeeStockAwardActivityDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note9StockCompensationPlanNarrativeDetails" xlink:href="xers-20180930.xsd#Note9StockCompensationPlanNarrativeDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note9StockCompensationPlanNotes" xlink:href="xers-20180930.xsd#Note9StockCompensationPlanNotes" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note9StockCompensationPlanShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsMethodUsedDetails" xlink:href="xers-20180930.xsd#Note9StockCompensationPlanShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsMethodUsedDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note9StockCompensationPlanStockBasedCompensationExpenseDetails" xlink:href="xers-20180930.xsd#Note9StockCompensationPlanStockBasedCompensationExpenseDetails" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note9StockCompensationPlanStockBasedCompensationExpenseTables" xlink:href="xers-20180930.xsd#Note9StockCompensationPlanStockBasedCompensationExpenseTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/Note9StockCompensationPlanTables" xlink:href="xers-20180930.xsd#Note9StockCompensationPlanTables" xlink:type="simple" />
  <link:roleRef roleURI="http://www.xerispharma.com/role/StatementOfCashFlows" xlink:href="xers-20180930.xsd#StatementOfCashFlows" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/all" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#all" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-default" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#dimension-domain" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/domain-member" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#domain-member" xlink:type="simple" />
  <link:arcroleRef arcroleURI="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:href="http://www.xbrl.org/2005/xbrldt-2005.xsd#hypercube-dimension" xlink:type="simple" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/CondensedBalanceSheets" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/CondensedBalanceSheetsBalanceSheetsParenthetical" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockLineItems" xlink:label="loc_us-gaap_ClassOfStockLineItems_360FBAD05B26A1E7C0EDEA64984CF667" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfStockByClassTable" xlink:label="loc_us-gaap_ScheduleOfStockByClassTable_D72D6A1D428E4A76B7B8EA64984AEF34" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfStockLineItems_360FBAD05B26A1E7C0EDEA64984CF667" xlink:to="loc_us-gaap_ScheduleOfStockByClassTable_D72D6A1D428E4A76B7B8EA64984AEF34" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_A5A27C1C8D13C86F3390EA64984AA14B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfStockByClassTable_D72D6A1D428E4A76B7B8EA64984AEF34" xlink:to="loc_us-gaap_StatementClassOfStockAxis_A5A27C1C8D13C86F3390EA64984AA14B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_C28EC58020FDEF96D4FBEA64984B30E2_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_A5A27C1C8D13C86F3390EA64984AA14B" xlink:to="loc_us-gaap_ClassOfStockDomain_C28EC58020FDEF96D4FBEA64984B30E2_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_C28EC58020FDEF96D4FBEA64984B30E2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_A5A27C1C8D13C86F3390EA64984AA14B" xlink:to="loc_us-gaap_ClassOfStockDomain_C28EC58020FDEF96D4FBEA64984B30E2" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_PreferredStockSeriesAMember" xlink:label="loc_xers_PreferredStockSeriesAMember_B706649B4EE4CAC52CA9EA64984BC3B6" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_C28EC58020FDEF96D4FBEA64984B30E2" xlink:to="loc_xers_PreferredStockSeriesAMember_B706649B4EE4CAC52CA9EA64984BC3B6" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_PreferredStockSeriesBMember" xlink:label="loc_xers_PreferredStockSeriesBMember_08695397849CCD8F3D55EA64984C4FD8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_C28EC58020FDEF96D4FBEA64984B30E2" xlink:to="loc_xers_PreferredStockSeriesBMember_08695397849CCD8F3D55EA64984C4FD8" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_PreferredStockSeriesCMember" xlink:label="loc_xers_PreferredStockSeriesCMember_079F12846A3C68AF75E0EA64984C84B2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_C28EC58020FDEF96D4FBEA64984B30E2" xlink:to="loc_xers_PreferredStockSeriesCMember_079F12846A3C68AF75E0EA64984C84B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_PreferredStockParOrStatedValuePerShare_030149C4FC5457735BE5EA64984C08F3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_360FBAD05B26A1E7C0EDEA64984CF667" xlink:to="loc_us-gaap_PreferredStockParOrStatedValuePerShare_030149C4FC5457735BE5EA64984C08F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockParOrStatedValuePerShare" xlink:label="loc_us-gaap_CommonStockParOrStatedValuePerShare_79DE7E839BF4D637E333EA64984D95E8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_360FBAD05B26A1E7C0EDEA64984CF667" xlink:to="loc_us-gaap_CommonStockParOrStatedValuePerShare_79DE7E839BF4D637E333EA64984D95E8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockSharesAuthorized" xlink:label="loc_us-gaap_PreferredStockSharesAuthorized_9486633ED71A9A72173BEA64984D7EBE" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_360FBAD05B26A1E7C0EDEA64984CF667" xlink:to="loc_us-gaap_PreferredStockSharesAuthorized_9486633ED71A9A72173BEA64984D7EBE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesAuthorized" xlink:label="loc_us-gaap_CommonStockSharesAuthorized_70F66289F20B2B89119DEA64984D8E22" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_360FBAD05B26A1E7C0EDEA64984CF667" xlink:to="loc_us-gaap_CommonStockSharesAuthorized_70F66289F20B2B89119DEA64984D8E22" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PreferredStockSharesIssued" xlink:label="loc_us-gaap_PreferredStockSharesIssued_7F9751326D922629E315EA64984D2FCF" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_360FBAD05B26A1E7C0EDEA64984CF667" xlink:to="loc_us-gaap_PreferredStockSharesIssued_7F9751326D922629E315EA64984D2FCF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommonStockSharesIssued" xlink:label="loc_us-gaap_CommonStockSharesIssued_0C0F3B8EFDCA3C4D6C6FEA64984EEA81" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockLineItems_360FBAD05B26A1E7C0EDEA64984CF667" xlink:to="loc_us-gaap_CommonStockSharesIssued_0C0F3B8EFDCA3C4D6C6FEA64984EEA81" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/CondensedStatementsOfOperationsAndComprehensiveLoss" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_4C7BAA01F580CE4D09DCEFC11DBEDF11" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_60F926A1A3D44E12CC28EFC11DBDACBB" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_4C7BAA01F580CE4D09DCEFC11DBEDF11" xlink:to="loc_us-gaap_StatementTable_60F926A1A3D44E12CC28EFC11DBDACBB" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RestatementAxis" xlink:label="loc_srt_RestatementAxis_D2D338306579493D4E21EFC11DBE1D3F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_60F926A1A3D44E12CC28EFC11DBDACBB" xlink:to="loc_srt_RestatementAxis_D2D338306579493D4E21EFC11DBE1D3F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RestatementDomain" xlink:label="loc_srt_RestatementDomain_8B250B115AF58BE627FAEFC11DBE031B_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RestatementAxis_D2D338306579493D4E21EFC11DBE1D3F" xlink:to="loc_srt_RestatementDomain_8B250B115AF58BE627FAEFC11DBE031B_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RestatementDomain" xlink:label="loc_srt_RestatementDomain_8B250B115AF58BE627FAEFC11DBE031B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RestatementAxis_D2D338306579493D4E21EFC11DBE1D3F" xlink:to="loc_srt_RestatementDomain_8B250B115AF58BE627FAEFC11DBE031B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductOrServiceAxis" xlink:label="loc_srt_ProductOrServiceAxis_AC859245C3618F130823EFC11DBE4899" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_60F926A1A3D44E12CC28EFC11DBDACBB" xlink:to="loc_srt_ProductOrServiceAxis_AC859245C3618F130823EFC11DBE4899" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_87E11331B21112CDAFE8EFC11DBE19E5_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_ProductOrServiceAxis_AC859245C3618F130823EFC11DBE4899" xlink:to="loc_srt_ProductsAndServicesDomain_87E11331B21112CDAFE8EFC11DBE19E5_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_ProductsAndServicesDomain" xlink:label="loc_srt_ProductsAndServicesDomain_87E11331B21112CDAFE8EFC11DBE19E5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_ProductOrServiceAxis_AC859245C3618F130823EFC11DBE4899" xlink:to="loc_srt_ProductsAndServicesDomain_87E11331B21112CDAFE8EFC11DBE19E5" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_Grantincome" xlink:label="loc_xers_Grantincome_FA460D4419D0B8607F06EFC11DBFC5E7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4C7BAA01F580CE4D09DCEFC11DBEDF11" xlink:to="loc_xers_Grantincome_FA460D4419D0B8607F06EFC11DBFC5E7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_Revenues" xlink:label="loc_us-gaap_Revenues_708841C74EBADEC7F918EFC11DBF93B8" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4C7BAA01F580CE4D09DCEFC11DBEDF11" xlink:to="loc_us-gaap_Revenues_708841C74EBADEC7F918EFC11DBF93B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CostOfRevenue" xlink:label="loc_us-gaap_CostOfRevenue_D9B0110DE11BC9B36E35EFC11DBF0F29" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4C7BAA01F580CE4D09DCEFC11DBEDF11" xlink:to="loc_us-gaap_CostOfRevenue_D9B0110DE11BC9B36E35EFC11DBF0F29" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GrossProfit" xlink:label="loc_us-gaap_GrossProfit_C1E54166294EAD2FF3B7EFC11DBFD5F8" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4C7BAA01F580CE4D09DCEFC11DBEDF11" xlink:to="loc_us-gaap_GrossProfit_C1E54166294EAD2FF3B7EFC11DBFD5F8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingExpensesAbstract" xlink:label="loc_us-gaap_OperatingExpensesAbstract_F2E5420EF10B173C0128EFC11DC05A96" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4C7BAA01F580CE4D09DCEFC11DBEDF11" xlink:to="loc_us-gaap_OperatingExpensesAbstract_F2E5420EF10B173C0128EFC11DC05A96" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResearchAndDevelopmentExpense" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpense_E30CA361931D8DB1CAB6EFC11DC0B281" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_F2E5420EF10B173C0128EFC11DC05A96" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpense_E30CA361931D8DB1CAB6EFC11DC0B281" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeneralAndAdministrativeExpense" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpense_C5FE3EBF9F73A4D3DCBFEFC11DC0B552" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_F2E5420EF10B173C0128EFC11DC05A96" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpense_C5FE3EBF9F73A4D3DCBFEFC11DC0B552" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingExpenses" xlink:label="loc_us-gaap_OperatingExpenses_3107122F95A403C249FCEFC11DC04801" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OperatingExpensesAbstract_F2E5420EF10B173C0128EFC11DC05A96" xlink:to="loc_us-gaap_OperatingExpenses_3107122F95A403C249FCEFC11DC04801" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OperatingIncomeLoss" xlink:label="loc_us-gaap_OperatingIncomeLoss_77629B4821C8E92B3036EFC11DC124F9" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4C7BAA01F580CE4D09DCEFC11DBEDF11" xlink:to="loc_us-gaap_OperatingIncomeLoss_77629B4821C8E92B3036EFC11DC124F9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherIncomeAndExpensesAbstract" xlink:label="loc_us-gaap_OtherIncomeAndExpensesAbstract_424E44BC2BB3BBFA127FEFC11DC13069" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4C7BAA01F580CE4D09DCEFC11DBEDF11" xlink:to="loc_us-gaap_OtherIncomeAndExpensesAbstract_424E44BC2BB3BBFA127FEFC11DC13069" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestIncomeOther" xlink:label="loc_us-gaap_InterestIncomeOther_548B0EEAA5375C087D2FEFC11DC14098" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherIncomeAndExpensesAbstract_424E44BC2BB3BBFA127FEFC11DC13069" xlink:to="loc_us-gaap_InterestIncomeOther_548B0EEAA5375C087D2FEFC11DC14098" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_5F9310908CE1D73EC090EFC11DC1AF0B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherIncomeAndExpensesAbstract_424E44BC2BB3BBFA127FEFC11DC13069" xlink:to="loc_us-gaap_InterestExpense_5F9310908CE1D73EC090EFC11DC1AF0B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAdjustmentOfWarrants" xlink:label="loc_us-gaap_FairValueAdjustmentOfWarrants_AD443D5BB33DA7BA2B79EFC11DC1BCEB" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherIncomeAndExpensesAbstract_424E44BC2BB3BBFA127FEFC11DC13069" xlink:to="loc_us-gaap_FairValueAdjustmentOfWarrants_AD443D5BB33DA7BA2B79EFC11DC1BCEB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherNonoperatingIncomeExpense" xlink:label="loc_us-gaap_OtherNonoperatingIncomeExpense_E8D0CA5BCAE0426B37F8EFD524A34EEA" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherIncomeAndExpensesAbstract_424E44BC2BB3BBFA127FEFC11DC13069" xlink:to="loc_us-gaap_OtherNonoperatingIncomeExpense_E8D0CA5BCAE0426B37F8EFD524A34EEA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_15EEE31FD486EB44CB03EFC11DC2F414" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4C7BAA01F580CE4D09DCEFC11DBEDF11" xlink:to="loc_us-gaap_NetIncomeLoss_15EEE31FD486EB44CB03EFC11DC2F414" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_9193053B16212C0DF4DCEFC11DC21995" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4C7BAA01F580CE4D09DCEFC11DBEDF11" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_9193053B16212C0DF4DCEFC11DC21995" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_0D4D66C92B4DC789D5B8EFC11DC2021B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_9193053B16212C0DF4DCEFC11DC21995" xlink:to="loc_us-gaap_OtherComprehensiveIncomeUnrealizedHoldingGainLossOnSecuritiesArisingDuringPeriodNetOfTax_0D4D66C92B4DC789D5B8EFC11DC2021B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_OtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_DCDAEC8C7DE63337B2BFEFC11DC2B587" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTaxPeriodIncreaseDecreaseAbstract_9193053B16212C0DF4DCEFC11DC21995" xlink:to="loc_us-gaap_OtherComprehensiveIncomeLossNetOfTax_DCDAEC8C7DE63337B2BFEFC11DC2B587" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EarningsPerShareBasicAndDiluted" xlink:label="loc_us-gaap_EarningsPerShareBasicAndDiluted_C6849629347B5485075BEFC11DC2B375" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4C7BAA01F580CE4D09DCEFC11DBEDF11" xlink:to="loc_us-gaap_EarningsPerShareBasicAndDiluted_C6849629347B5485075BEFC11DC2B375" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted" xlink:label="loc_us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted_7D7877878B304EDAD204EFC11DC322AF" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_4C7BAA01F580CE4D09DCEFC11DBEDF11" xlink:to="loc_us-gaap_WeightedAverageNumberOfShareOutstandingBasicAndDiluted_7D7877878B304EDAD204EFC11DC322AF" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/DeiDocument" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note10FairValueMeasurement" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note10FairValueMeasurementFairValueLiabilitiesMeasuredOnRecurringBasisUnobservableInputReconciliationDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15CFA63B26FFFA1914C7EEDF8A24A448" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_8149BD556FD468EC6133EEDF8A1F01F9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15CFA63B26FFFA1914C7EEDF8A24A448" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_8149BD556FD468EC6133EEDF8A1F01F9" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InformationByCategoryOfDebtSecurityAxis" xlink:label="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_F16541457C01E17C01A2EEDF8A208CA7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_8149BD556FD468EC6133EEDF8A1F01F9" xlink:to="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_F16541457C01E17C01A2EEDF8A208CA7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_InvestmentDomain" xlink:label="loc_invest_InvestmentDomain_F9FABE8360F21C873379EEDF8A20E39A_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_F16541457C01E17C01A2EEDF8A208CA7" xlink:to="loc_invest_InvestmentDomain_F9FABE8360F21C873379EEDF8A20E39A_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_InvestmentDomain" xlink:label="loc_invest_InvestmentDomain_F9FABE8360F21C873379EEDF8A20E39A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_F16541457C01E17C01A2EEDF8A208CA7" xlink:to="loc_invest_InvestmentDomain_F9FABE8360F21C873379EEDF8A20E39A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_F9BAF9CC70A127DE2A4AEEDF8A205762" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_invest_InvestmentDomain_F9FABE8360F21C873379EEDF8A20E39A" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_F9BAF9CC70A127DE2A4AEEDF8A205762" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_EBDB4B4A1DFC44183884EEDF8A217EA4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_invest_InvestmentDomain_F9FABE8360F21C873379EEDF8A20E39A" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_EBDB4B4A1DFC44183884EEDF8A217EA4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AgencySecuritiesMember" xlink:label="loc_us-gaap_AgencySecuritiesMember_784265F5822CBB5B1253EEDF8A21E9E1" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_invest_InvestmentDomain_F9FABE8360F21C873379EEDF8A20E39A" xlink:to="loc_us-gaap_AgencySecuritiesMember_784265F5822CBB5B1253EEDF8A21E9E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_F3A0AB224D6337488044EEDF8A215D88" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_8149BD556FD468EC6133EEDF8A1F01F9" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_F3A0AB224D6337488044EEDF8A215D88" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_BF1AC9708F292AB92E66EEDF8A2127FC_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_F3A0AB224D6337488044EEDF8A215D88" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_BF1AC9708F292AB92E66EEDF8A2127FC_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_BF1AC9708F292AB92E66EEDF8A2127FC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_F3A0AB224D6337488044EEDF8A215D88" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_BF1AC9708F292AB92E66EEDF8A2127FC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_C3A9AC9271B7C1F108E0EEDF8A21E814" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_8149BD556FD468EC6133EEDF8A1F01F9" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_C3A9AC9271B7C1F108E0EEDF8A21E814" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D7FFA91EEE64BA71F3F6EEDF8A227716_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_C3A9AC9271B7C1F108E0EEDF8A21E814" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D7FFA91EEE64BA71F3F6EEDF8A227716_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D7FFA91EEE64BA71F3F6EEDF8A227716" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_C3A9AC9271B7C1F108E0EEDF8A21E814" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D7FFA91EEE64BA71F3F6EEDF8A227716" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel1Member" xlink:label="loc_us-gaap_FairValueInputsLevel1Member_0233AC126F83C3EEB979EEDF8A22D6CA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D7FFA91EEE64BA71F3F6EEDF8A227716" xlink:to="loc_us-gaap_FairValueInputsLevel1Member_0233AC126F83C3EEB979EEDF8A22D6CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel2Member" xlink:label="loc_us-gaap_FairValueInputsLevel2Member_559C9DFEAF292CCAAC43EEDF8A22D7E1" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D7FFA91EEE64BA71F3F6EEDF8A227716" xlink:to="loc_us-gaap_FairValueInputsLevel2Member_559C9DFEAF292CCAAC43EEDF8A22D7E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueInputsLevel3Member" xlink:label="loc_us-gaap_FairValueInputsLevel3Member_47A1BD9C68999ACBD34AEEDF8A229877" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_D7FFA91EEE64BA71F3F6EEDF8A227716" xlink:to="loc_us-gaap_FairValueInputsLevel3Member_47A1BD9C68999ACBD34AEEDF8A229877" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_649D10A16144FA42F41CEEDF8A23003D" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_8149BD556FD468EC6133EEDF8A1F01F9" xlink:to="loc_us-gaap_StatementClassOfStockAxis_649D10A16144FA42F41CEEDF8A23003D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_076EC4DEB58ACE2CD508EEDF8A2338D9_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_649D10A16144FA42F41CEEDF8A23003D" xlink:to="loc_us-gaap_ClassOfStockDomain_076EC4DEB58ACE2CD508EEDF8A2338D9_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_076EC4DEB58ACE2CD508EEDF8A2338D9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_649D10A16144FA42F41CEEDF8A23003D" xlink:to="loc_us-gaap_ClassOfStockDomain_076EC4DEB58ACE2CD508EEDF8A2338D9" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_TermAWarrantsMember" xlink:label="loc_xers_TermAWarrantsMember_6AAAE46867BB1532FDC1EEDF8A23E263" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_076EC4DEB58ACE2CD508EEDF8A2338D9" xlink:to="loc_xers_TermAWarrantsMember_6AAAE46867BB1532FDC1EEDF8A23E263" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_TermBWarrantsMember" xlink:label="loc_xers_TermBWarrantsMember_40C01F4FDB88F882592AEEDF8A239F4F" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_076EC4DEB58ACE2CD508EEDF8A2338D9" xlink:to="loc_xers_TermBWarrantsMember_40C01F4FDB88F882592AEEDF8A239F4F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_MoneyMarketFundsAtCarryingValue" xlink:label="loc_us-gaap_MoneyMarketFundsAtCarryingValue_313873C39524D9D728A2EEDF8A24F544" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15CFA63B26FFFA1914C7EEDF8A24A448" xlink:to="loc_us-gaap_MoneyMarketFundsAtCarryingValue_313873C39524D9D728A2EEDF8A24F544" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CommercialPaper" xlink:label="loc_us-gaap_CommercialPaper_394D7CD77A39792EE392EEDF8A24A718" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15CFA63B26FFFA1914C7EEDF8A24A448" xlink:to="loc_us-gaap_CommercialPaper_394D7CD77A39792EE392EEDF8A24A718" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_475DB770AF9501A2A832EEDF8A24BAE6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15CFA63B26FFFA1914C7EEDF8A24A448" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_475DB770AF9501A2A832EEDF8A24BAE6" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermInvestments" xlink:label="loc_us-gaap_ShortTermInvestments_6F991880A96E827EFEA2EEDF8A241738" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15CFA63B26FFFA1914C7EEDF8A24A448" xlink:to="loc_us-gaap_ShortTermInvestments_6F991880A96E827EFEA2EEDF8A241738" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_WarrantsAndRightsOutstanding" xlink:label="loc_us-gaap_WarrantsAndRightsOutstanding_D45339E37D0E350A93E4EEDF8A25A797" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15CFA63B26FFFA1914C7EEDF8A24A448" xlink:to="loc_us-gaap_WarrantsAndRightsOutstanding_D45339E37D0E350A93E4EEDF8A25A797" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockAndWarrantsIssuedDuringPeriodValuePreferredStockAndWarrants" xlink:label="loc_us-gaap_StockAndWarrantsIssuedDuringPeriodValuePreferredStockAndWarrants_F4056DB615B20EE50C83EEDF8A2588B2" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15CFA63B26FFFA1914C7EEDF8A24A448" xlink:to="loc_us-gaap_StockAndWarrantsIssuedDuringPeriodValuePreferredStockAndWarrants_F4056DB615B20EE50C83EEDF8A2588B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAdjustmentOfWarrants" xlink:label="loc_us-gaap_FairValueAdjustmentOfWarrants_1D2BC8D3A7D521615BECEEDF8A25B26A" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_15CFA63B26FFFA1914C7EEDF8A24A448" xlink:to="loc_us-gaap_FairValueAdjustmentOfWarrants_1D2BC8D3A7D521615BECEEDF8A25B26A" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note10FairValueMeasurementFairValueMeasurementTables" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_639B596956291F43686DEB99765B0E67" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_C3C0B1DF652D57668943EB99764808FE" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_639B596956291F43686DEB99765B0E67" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_C3C0B1DF652D57668943EB99764808FE" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByMeasurementFrequencyAxis" xlink:label="loc_us-gaap_FairValueByMeasurementFrequencyAxis_F6B16E1198725C3EB1C6EB997649B63E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_C3C0B1DF652D57668943EB99764808FE" xlink:to="loc_us-gaap_FairValueByMeasurementFrequencyAxis_F6B16E1198725C3EB1C6EB997649B63E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_C5D4ED7DECE16FB48D02EB997651B3DD_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_F6B16E1198725C3EB1C6EB997649B63E" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_C5D4ED7DECE16FB48D02EB997651B3DD_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementFrequencyDomain" xlink:label="loc_us-gaap_FairValueMeasurementFrequencyDomain_C5D4ED7DECE16FB48D02EB997651B3DD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByMeasurementFrequencyAxis_F6B16E1198725C3EB1C6EB997649B63E" xlink:to="loc_us-gaap_FairValueMeasurementFrequencyDomain_C5D4ED7DECE16FB48D02EB997651B3DD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueByFairValueHierarchyLevelAxis" xlink:label="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6F2E047CA3C482F727E0EB9976521196" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTable_C3C0B1DF652D57668943EB99764808FE" xlink:to="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6F2E047CA3C482F727E0EB9976521196" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_943E3545719D76B445A9EB99765AB7FF_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6F2E047CA3C482F727E0EB9976521196" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_943E3545719D76B445A9EB99765AB7FF_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueMeasurementsFairValueHierarchyDomain" xlink:label="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_943E3545719D76B445A9EB99765AB7FF" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_FairValueByFairValueHierarchyLevelAxis_6F2E047CA3C482F727E0EB9976521196" xlink:to="loc_us-gaap_FairValueMeasurementsFairValueHierarchyDomain_943E3545719D76B445A9EB99765AB7FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTableTextBlock" xlink:label="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTableTextBlock_D999CA3495B7761EF495EB9AAD5EEC93" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisLineItems_639B596956291F43686DEB99765B0E67" xlink:to="loc_us-gaap_FairValueAssetsAndLiabilitiesMeasuredOnRecurringAndNonrecurringBasisTableTextBlock_D999CA3495B7761EF495EB9AAD5EEC93" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note10FairValueMeasurementTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note11ShortTermInvestmentsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_FABA0EE717AEC20A172CEF8F3494E493" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfAvailableForSaleSecuritiesTable" xlink:label="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_BB672E37004BD4A750CCEF8F348CE7BA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_FABA0EE717AEC20A172CEF8F3494E493" xlink:to="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_BB672E37004BD4A750CCEF8F348CE7BA" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InformationByCategoryOfDebtSecurityAxis" xlink:label="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_5C5D2664F46FB11241EAEF8F348DF048" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesTable_BB672E37004BD4A750CCEF8F348CE7BA" xlink:to="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_5C5D2664F46FB11241EAEF8F348DF048" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_InvestmentDomain" xlink:label="loc_invest_InvestmentDomain_5101355E5D761C7A3593EF8F348D3F11_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_5C5D2664F46FB11241EAEF8F348DF048" xlink:to="loc_invest_InvestmentDomain_5101355E5D761C7A3593EF8F348D3F11_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_InvestmentDomain" xlink:label="loc_invest_InvestmentDomain_5101355E5D761C7A3593EF8F348D3F11" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_InformationByCategoryOfDebtSecurityAxis_5C5D2664F46FB11241EAEF8F348DF048" xlink:to="loc_invest_InvestmentDomain_5101355E5D761C7A3593EF8F348D3F11" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AgencySecuritiesMember" xlink:label="loc_us-gaap_AgencySecuritiesMember_EBA735B96FD3606AEC64EF8F348D8BBD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_invest_InvestmentDomain_5101355E5D761C7A3593EF8F348D3F11" xlink:to="loc_us-gaap_AgencySecuritiesMember_EBA735B96FD3606AEC64EF8F348D8BBD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CorporateDebtSecuritiesMember" xlink:label="loc_us-gaap_CorporateDebtSecuritiesMember_D5CA0755A7F4E0EB0AFCEF8F34936FAE" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_invest_InvestmentDomain_5101355E5D761C7A3593EF8F348D3F11" xlink:to="loc_us-gaap_CorporateDebtSecuritiesMember_D5CA0755A7F4E0EB0AFCEF8F34936FAE" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_USTreasuryAndGovernmentMember" xlink:label="loc_us-gaap_USTreasuryAndGovernmentMember_66295447D1FB1FD80221EF8F34941D7C" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_invest_InvestmentDomain_5101355E5D761C7A3593EF8F348D3F11" xlink:to="loc_us-gaap_USTreasuryAndGovernmentMember_66295447D1FB1FD80221EF8F34941D7C" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_AvailableForSaleSecuritiesMaturitiesPeriod" xlink:label="loc_xers_AvailableForSaleSecuritiesMaturitiesPeriod_91FD297882F5A738BF63EF8F47A02DD1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_FABA0EE717AEC20A172CEF8F3494E493" xlink:to="loc_xers_AvailableForSaleSecuritiesMaturitiesPeriod_91FD297882F5A738BF63EF8F47A02DD1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AvailableForSaleSecuritiesAmortizedCost" xlink:label="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_1A6FA497958A35180138EF8F3494F61D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_FABA0EE717AEC20A172CEF8F3494E493" xlink:to="loc_us-gaap_AvailableForSaleSecuritiesAmortizedCost_1A6FA497958A35180138EF8F3494F61D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax" xlink:label="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_145BE547725752992369EF8F34945688" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_FABA0EE717AEC20A172CEF8F3494E493" xlink:to="loc_us-gaap_AccumulatedOtherComprehensiveIncomeLossNetOfTax_145BE547725752992369EF8F34945688" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShortTermInvestments" xlink:label="loc_us-gaap_ShortTermInvestments_3AD77B1EA598A0531F5EEF8F3495CE78" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ScheduleOfAvailableForSaleSecuritiesLineItems_FABA0EE717AEC20A172CEF8F3494E493" xlink:to="loc_us-gaap_ShortTermInvestments_3AD77B1EA598A0531F5EEF8F3495CE78" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note11ShortTermInvestmentsNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note11ShortTermInvestmentsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note1OrganizationAndNatureOfBusiness" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note1OrganizationAndNatureOfBusinessNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note2SummaryOfSignificantAccountingPolicies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note2SummaryOfSignificantAccountingPoliciesNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note2SummaryOfSignificantAccountingPoliciesScheduleOfAntidilutiveSecuritiesExcludedFromComputationOfEarningsPerShareDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note2SummaryOfSignificantAccountingPoliciesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note3ReverseStockSplitAndInitialPublicOffering" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note3ReverseStockSplitAndInitialPublicOfferingNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note4AccruedExpensesAccruedExpensesDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note4AccruedExpensesNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note4AccruedExpensesTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note5LongTermDebt" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note5LongTermDebtDebtFuturePrincipalPaymentsDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note5LongTermDebtNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentLineItems" xlink:label="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentTable" xlink:label="loc_us-gaap_DebtInstrumentTable_48777E60C64E5CCCB02BD10EBAF861FD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_us-gaap_DebtInstrumentTable_48777E60C64E5CCCB02BD10EBAF861FD" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentAxis" xlink:label="loc_us-gaap_DebtInstrumentAxis_E8BDB8A82B0FD925A824D11DFF5EA9E9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_48777E60C64E5CCCB02BD10EBAF861FD" xlink:to="loc_us-gaap_DebtInstrumentAxis_E8BDB8A82B0FD925A824D11DFF5EA9E9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_45D4CEC23DDF09B95604D11DFF6EC540_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_DebtInstrumentAxis_E8BDB8A82B0FD925A824D11DFF5EA9E9" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_45D4CEC23DDF09B95604D11DFF6EC540_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentNameDomain" xlink:label="loc_us-gaap_DebtInstrumentNameDomain_45D4CEC23DDF09B95604D11DFF6EC540" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_DebtInstrumentAxis_E8BDB8A82B0FD925A824D11DFF5EA9E9" xlink:to="loc_us-gaap_DebtInstrumentNameDomain_45D4CEC23DDF09B95604D11DFF6EC540" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_TermALoanMember" xlink:label="loc_xers_TermALoanMember_D55E197B303CF6B817D5D11E5E0AE2BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_45D4CEC23DDF09B95604D11DFF6EC540" xlink:to="loc_xers_TermALoanMember_D55E197B303CF6B817D5D11E5E0AE2BD" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_TermBLoanMember" xlink:label="loc_xers_TermBLoanMember_44653B60CACFABC80C0CD11F338E0E57" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentNameDomain_45D4CEC23DDF09B95604D11DFF6EC540" xlink:to="loc_xers_TermBLoanMember_44653B60CACFABC80C0CD11F338E0E57" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeAxis" xlink:label="loc_srt_RangeAxis_7A181CC0D06F967F6B23D10EBAF9E691" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_DebtInstrumentTable_48777E60C64E5CCCB02BD10EBAF861FD" xlink:to="loc_srt_RangeAxis_7A181CC0D06F967F6B23D10EBAF9E691" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_A76E4F72AAE0E92C15D3D10EBAF9434F_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RangeAxis_7A181CC0D06F967F6B23D10EBAF9E691" xlink:to="loc_srt_RangeMember_A76E4F72AAE0E92C15D3D10EBAF9434F_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RangeMember" xlink:label="loc_srt_RangeMember_A76E4F72AAE0E92C15D3D10EBAF9434F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RangeAxis_7A181CC0D06F967F6B23D10EBAF9E691" xlink:to="loc_srt_RangeMember_A76E4F72AAE0E92C15D3D10EBAF9434F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MaximumMember" xlink:label="loc_srt_MaximumMember_7BBA5D4BDC80C761D588D10EBAF95B21" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_A76E4F72AAE0E92C15D3D10EBAF9434F" xlink:to="loc_srt_MaximumMember_7BBA5D4BDC80C761D588D10EBAF95B21" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_MinimumMember" xlink:label="loc_srt_MinimumMember_4F5ABE3B175221A3B5CFD10EBAF9F407" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_srt_RangeMember_A76E4F72AAE0E92C15D3D10EBAF9434F" xlink:to="loc_srt_MinimumMember_4F5ABE3B175221A3B5CFD10EBAF9F407" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity" xlink:label="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_6837EBC89D95EF07FB83D10EBAFA1408" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_us-gaap_LineOfCreditFacilityMaximumBorrowingCapacity_6837EBC89D95EF07FB83D10EBAFA1408" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentFaceAmount" xlink:label="loc_us-gaap_DebtInstrumentFaceAmount_33F13B7E9BABED00C9FED10EBAFAF7E0" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_us-gaap_DebtInstrumentFaceAmount_33F13B7E9BABED00C9FED10EBAFAF7E0" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_AdditionalexpectedproceedsfromsecondtrancheoftheLoanandSecurityAgreement" xlink:label="loc_xers_AdditionalexpectedproceedsfromsecondtrancheoftheLoanandSecurityAgreement_686C13B26F429232016BD10EBAFAA1D8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_xers_AdditionalexpectedproceedsfromsecondtrancheoftheLoanandSecurityAgreement_686C13B26F429232016BD10EBAFAA1D8" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_AdditionalexpectedproceedsfromthirdtrancheoftheLoanandSecurityAgreement" xlink:label="loc_xers_AdditionalexpectedproceedsfromthirdtrancheoftheLoanandSecurityAgreement_F5935E6A299D80B7A9F0D10EBAFAEB85" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_xers_AdditionalexpectedproceedsfromthirdtrancheoftheLoanandSecurityAgreement_F5935E6A299D80B7A9F0D10EBAFAEB85" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_InterestratethirtydayLIBORplusstatedpercentage" xlink:label="loc_xers_InterestratethirtydayLIBORplusstatedpercentage_E1105A2B774ABED936AAD10EBAFB29FF" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_xers_InterestratethirtydayLIBORplusstatedpercentage_E1105A2B774ABED936AAD10EBAFB29FF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentInterestRateStatedPercentage" xlink:label="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_6AD1EBD5BFCB1270FFF3D10EBAFBB5A0" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_us-gaap_DebtInstrumentInterestRateStatedPercentage_6AD1EBD5BFCB1270FFF3D10EBAFBB5A0" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_Perioddebtpaymentsareinterestonly" xlink:label="loc_xers_Perioddebtpaymentsareinterestonly_FC321ABBC2A7CF846977D10EBAFB9BF7" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_xers_Perioddebtpaymentsareinterestonly_FC321ABBC2A7CF846977D10EBAFB9BF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentTerm" xlink:label="loc_us-gaap_DebtInstrumentTerm_8047A7C572684C15BCF1D10EBAFB73DA" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_us-gaap_DebtInstrumentTerm_8047A7C572684C15BCF1D10EBAFB73DA" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_Principalpaymentsondebttobegin" xlink:label="loc_xers_Principalpaymentsondebttobegin_7B431545BDE2EFC1761BD10EBAFB4636" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_xers_Principalpaymentsondebttobegin_7B431545BDE2EFC1761BD10EBAFB4636" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_Prepaymentallowedperdebtagreement" xlink:label="loc_xers_Prepaymentallowedperdebtagreement_FA3A0343178B251C6B5AD10EBAFB5B75" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_xers_Prepaymentallowedperdebtagreement_FA3A0343178B251C6B5AD10EBAFB5B75" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_Prepaymentpenaltypercentage" xlink:label="loc_xers_Prepaymentpenaltypercentage_74BC522917D7AA8B04B4D10EBAFC2019" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_xers_Prepaymentpenaltypercentage_74BC522917D7AA8B04B4D10EBAFC2019" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_Finalpaymentfeepercentage" xlink:label="loc_xers_Finalpaymentfeepercentage_1872B15B0E6C74580B0ED10EBAFC4346" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_xers_Finalpaymentfeepercentage_1872B15B0E6C74580B0ED10EBAFC4346" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_Debtnonutilizationfeepercentage" xlink:label="loc_xers_Debtnonutilizationfeepercentage_7A09898AE00A92656C17D10EBAFC6D1F" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_xers_Debtnonutilizationfeepercentage_7A09898AE00A92656C17D10EBAFC6D1F" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_Ineventofdefaultadditionalpercentagepluscurrentratepenalty" xlink:label="loc_xers_Ineventofdefaultadditionalpercentagepluscurrentratepenalty_13EA302384DA500D7AD7D10EBAFC3948" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_xers_Ineventofdefaultadditionalpercentagepluscurrentratepenalty_13EA302384DA500D7AD7D10EBAFC3948" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DeferredFinanceCostsGross" xlink:label="loc_us-gaap_DeferredFinanceCostsGross_7A5D897AA0A36EBF6E44D10EBB01137B" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_us-gaap_DeferredFinanceCostsGross_7A5D897AA0A36EBF6E44D10EBB01137B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestExpense" xlink:label="loc_us-gaap_InterestExpense_CAE9717BA2AD409DD5CFD10EBB0259BD" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_us-gaap_InterestExpense_CAE9717BA2AD409DD5CFD10EBB0259BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet" xlink:label="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_93B0862DE1E9ACE64C5AD10EBB028F53" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_us-gaap_DebtInstrumentUnamortizedDiscountPremiumAndDebtIssuanceCostsNet_93B0862DE1E9ACE64C5AD10EBB028F53" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_LongTermDebt" xlink:label="loc_us-gaap_LongTermDebt_00E38AB5B885CBF20D78D10EBB02A268" xlink:type="locator" />
    <link:definitionArc order="18" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_us-gaap_LongTermDebt_00E38AB5B885CBF20D78D10EBB02A268" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfFinancingCosts" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_49B4EE094007361FEACCD10EBB020DD7" xlink:type="locator" />
    <link:definitionArc order="19" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_DebtInstrumentLineItems_3DC11E2826ABAE5FE7C7D10EBAF9DD0B" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_49B4EE094007361FEACCD10EBB020DD7" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note5LongTermDebtTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note6ConvertiblePreferredStock" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note6ConvertiblePreferredStockNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note7WarrantsNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfWarrantOrRightLineItems" xlink:label="loc_us-gaap_ClassOfWarrantOrRightLineItems_E086C952AE26FBEC9BCDEB8F62DB0548" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfWarrantOrRightTable" xlink:label="loc_us-gaap_ClassOfWarrantOrRightTable_6C8E5C6769103AA1C8E1EB8F62DADCA3" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfWarrantOrRightLineItems_E086C952AE26FBEC9BCDEB8F62DB0548" xlink:to="loc_us-gaap_ClassOfWarrantOrRightTable_6C8E5C6769103AA1C8E1EB8F62DADCA3" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_73A0C53BF3CBAA0FBF23EB8F62DA0C22" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfWarrantOrRightTable_6C8E5C6769103AA1C8E1EB8F62DADCA3" xlink:to="loc_us-gaap_StatementClassOfStockAxis_73A0C53BF3CBAA0FBF23EB8F62DA0C22" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_D2413CBCCB392755B316EB8F62DA6811_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_73A0C53BF3CBAA0FBF23EB8F62DA0C22" xlink:to="loc_us-gaap_ClassOfStockDomain_D2413CBCCB392755B316EB8F62DA6811_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_D2413CBCCB392755B316EB8F62DA6811" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_73A0C53BF3CBAA0FBF23EB8F62DA0C22" xlink:to="loc_us-gaap_ClassOfStockDomain_D2413CBCCB392755B316EB8F62DA6811" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_A2014WarrantsMember" xlink:label="loc_xers_A2014WarrantsMember_128E75FB7C6548EEAEB0EB8F62DB703E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_D2413CBCCB392755B316EB8F62DA6811" xlink:to="loc_xers_A2014WarrantsMember_128E75FB7C6548EEAEB0EB8F62DB703E" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_TermAWarrantsMember" xlink:label="loc_xers_TermAWarrantsMember_0BA549D77CF748415059EB8F62DB7118" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_D2413CBCCB392755B316EB8F62DA6811" xlink:to="loc_xers_TermAWarrantsMember_0BA549D77CF748415059EB8F62DB7118" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_TermBWarrantsMember" xlink:label="loc_xers_TermBWarrantsMember_DE0238B809F006ABFBBAEB8F62DB8B3A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_D2413CBCCB392755B316EB8F62DA6811" xlink:to="loc_xers_TermBWarrantsMember_DE0238B809F006ABFBBAEB8F62DB8B3A" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_Preferredstockandwarrantsissuedduringtheperiodshares" xlink:label="loc_xers_Preferredstockandwarrantsissuedduringtheperiodshares_CEDA34D0CCA2AD49D692EB8F62DB7B74" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfWarrantOrRightLineItems_E086C952AE26FBEC9BCDEB8F62DB0548" xlink:to="loc_xers_Preferredstockandwarrantsissuedduringtheperiodshares_CEDA34D0CCA2AD49D692EB8F62DB7B74" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:label="loc_us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1_3DE1C6B817DE7AC34EB4EB8F62DC413B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfWarrantOrRightLineItems_E086C952AE26FBEC9BCDEB8F62DB0548" xlink:to="loc_us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1_3DE1C6B817DE7AC34EB4EB8F62DC413B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfWarrantOrRightOutstanding" xlink:label="loc_us-gaap_ClassOfWarrantOrRightOutstanding_C19364F64E436D3E8B2AEB8F62DC5174" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfWarrantOrRightLineItems_E086C952AE26FBEC9BCDEB8F62DB0548" xlink:to="loc_us-gaap_ClassOfWarrantOrRightOutstanding_C19364F64E436D3E8B2AEB8F62DC5174" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_Warrantcoverageequaltopercentofprincipalborrowingamounts" xlink:label="loc_xers_Warrantcoverageequaltopercentofprincipalborrowingamounts_F8930F6C48A71A9B391BEB8F62DCBFEF" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfWarrantOrRightLineItems_E086C952AE26FBEC9BCDEB8F62DB0548" xlink:to="loc_xers_Warrantcoverageequaltopercentofprincipalborrowingamounts_F8930F6C48A71A9B391BEB8F62DCBFEF" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAdjustmentOfWarrants" xlink:label="loc_us-gaap_FairValueAdjustmentOfWarrants_5031F702C4DDF3092E6FEB8F62DC3290" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfWarrantOrRightLineItems_E086C952AE26FBEC9BCDEB8F62DB0548" xlink:to="loc_us-gaap_FairValueAdjustmentOfWarrants_5031F702C4DDF3092E6FEB8F62DC3290" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note7WarrantsNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note7WarrantsScheduleOfStockholdersEquityNoteWarrantsOrRightsDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfWarrantOrRightLineItems" xlink:label="loc_us-gaap_ClassOfWarrantOrRightLineItems_664F0AA0B636CCE2B9CDD10EBABF15CE" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfWarrantOrRightTable" xlink:label="loc_us-gaap_ClassOfWarrantOrRightTable_1942D8CFFC50F4490596D10EBAB86972" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ClassOfWarrantOrRightLineItems_664F0AA0B636CCE2B9CDD10EBABF15CE" xlink:to="loc_us-gaap_ClassOfWarrantOrRightTable_1942D8CFFC50F4490596D10EBAB86972" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementClassOfStockAxis" xlink:label="loc_us-gaap_StatementClassOfStockAxis_BBA0EABE22481372AAEDD10EBABEED8B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ClassOfWarrantOrRightTable_1942D8CFFC50F4490596D10EBAB86972" xlink:to="loc_us-gaap_StatementClassOfStockAxis_BBA0EABE22481372AAEDD10EBABEED8B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_BAAE1781C8CB76728EBDD10EBABEE843_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_StatementClassOfStockAxis_BBA0EABE22481372AAEDD10EBABEED8B" xlink:to="loc_us-gaap_ClassOfStockDomain_BAAE1781C8CB76728EBDD10EBABEE843_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfStockDomain" xlink:label="loc_us-gaap_ClassOfStockDomain_BAAE1781C8CB76728EBDD10EBABEE843" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_StatementClassOfStockAxis_BBA0EABE22481372AAEDD10EBABEED8B" xlink:to="loc_us-gaap_ClassOfStockDomain_BAAE1781C8CB76728EBDD10EBABEE843" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_A2014WarrantsMember" xlink:label="loc_xers_A2014WarrantsMember_FB3A092AB87E47D634CDD10EBABE7E05" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BAAE1781C8CB76728EBDD10EBABEE843" xlink:to="loc_xers_A2014WarrantsMember_FB3A092AB87E47D634CDD10EBABE7E05" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_TermAWarrantsMember" xlink:label="loc_xers_TermAWarrantsMember_1D45012B3CEA46F7C2F7D10EBABFE693" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BAAE1781C8CB76728EBDD10EBABEE843" xlink:to="loc_xers_TermAWarrantsMember_1D45012B3CEA46F7C2F7D10EBABFE693" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_TermBWarrantsMember" xlink:label="loc_xers_TermBWarrantsMember_1969A471D86A4D16A53BD12F5F06B323" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfStockDomain_BAAE1781C8CB76728EBDD10EBABEE843" xlink:to="loc_xers_TermBWarrantsMember_1969A471D86A4D16A53BD12F5F06B323" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfWarrantOrRightOutstanding" xlink:label="loc_us-gaap_ClassOfWarrantOrRightOutstanding_41494AFB0C7945443D81D10EBABFDBD1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfWarrantOrRightLineItems_664F0AA0B636CCE2B9CDD10EBABF15CE" xlink:to="loc_us-gaap_ClassOfWarrantOrRightOutstanding_41494AFB0C7945443D81D10EBABFDBD1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1" xlink:label="loc_us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1_2EFF189F56460A239C70D10EBABF2790" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfWarrantOrRightLineItems_664F0AA0B636CCE2B9CDD10EBABF15CE" xlink:to="loc_us-gaap_ClassOfWarrantOrRightExercisePriceOfWarrantsOrRights1_2EFF189F56460A239C70D10EBABF2790" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.sec.gov/invest/2013/invest-2013-01-31.xsd#invest_InvestmentWarrantsExpirationDate" xlink:label="loc_invest_InvestmentWarrantsExpirationDate_95D77286324004435495D10EBAC0E7F6" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ClassOfWarrantOrRightLineItems_664F0AA0B636CCE2B9CDD10EBABF15CE" xlink:to="loc_invest_InvestmentWarrantsExpirationDate_95D77286324004435495D10EBAC0E7F6" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note7WarrantsTables" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note8CommitmentsAndContingencies" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note8CommitmentsAndContingenciesNarrativeDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note9StockCompensationPlanEmployeeStockAwardActivityDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_3D660048BFFE551BB91E00B7E15448EA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_3D660048BFFE551BB91E00B7E15448EA" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_3D437AB00D935DC18EFF426E398B8296" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_3D660048BFFE551BB91E00B7E15448EA" xlink:to="loc_us-gaap_AwardTypeAxis_3D437AB00D935DC18EFF426E398B8296" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BDB1BF2E850539ADC77E33CC6037A8E3_3F88653C7F18537896DA435C5BD66D2B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_3D437AB00D935DC18EFF426E398B8296" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_BDB1BF2E850539ADC77E33CC6037A8E3_3F88653C7F18537896DA435C5BD66D2B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_127F5F1DC7F559EAA3DFF1D24C8A5678" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_3D437AB00D935DC18EFF426E398B8296" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_127F5F1DC7F559EAA3DFF1D24C8A5678" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_0A6D3A07763859ADB0F1DA0FDCEB0A8F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_127F5F1DC7F559EAA3DFF1D24C8A5678" xlink:to="loc_us-gaap_EmployeeStockOptionMember_0A6D3A07763859ADB0F1DA0FDCEB0A8F" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_NonemployeestockoptionsMember" xlink:label="loc_xers_NonemployeestockoptionsMember_6BE43740C3C5535588D29030B038A61E" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_127F5F1DC7F559EAA3DFF1D24C8A5678" xlink:to="loc_xers_NonemployeestockoptionsMember_6BE43740C3C5535588D29030B038A61E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1_21848B7E98DE551ABB50BE4B68AB06B7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableIntrinsicValue1_21848B7E98DE551ABB50BE4B68AB06B7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_1799F677D3E85D58AD4E8131D32081E4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardCompensationCost1_1799F677D3E85D58AD4E8131D32081E4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_CF344F995D1A5B13A7F0B4D87DE9357D" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingNumber_CF344F995D1A5B13A7F0B4D87DE9357D" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_BF4B0E9148A25014A13D4D59E646BBCB" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsOutstandingWeightedAverageExercisePrice_BF4B0E9148A25014A13D4D59E646BBCB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_57ADAF95F6BB524F88DAB148793A4181" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsOutstandingWeightedAverageRemainingContractualTerm2_57ADAF95F6BB524F88DAB148793A4181" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_31CE4DBB2F485BC5BD65717AFE0B980F" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardSharesIssuedInPeriod_31CE4DBB2F485BC5BD65717AFE0B980F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_169BDA719FB3506E931BE3B31FB42477" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsGrantsInPeriodWeightedAverageExercisePrice_169BDA719FB3506E931BE3B31FB42477" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised" xlink:label="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_723C5753A7915A1A828C38F6C434701A" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_StockIssuedDuringPeriodSharesStockOptionsExercised_723C5753A7915A1A828C38F6C434701A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_CCB821624548541AB566805F8D9DD25F" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardOptionsExercisesInPeriodWeightedAverageExercisePrice_CCB821624548541AB566805F8D9DD25F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares_679A29C4359F5A499551F5280FA389DA" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsNonvestedOptionsForfeitedNumberOfShares_679A29C4359F5A499551F5280FA389DA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice_1E0D8CE4244E593CB89E1AD771F0D0B8" xlink:type="locator" />
    <link:definitionArc order="11" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsForfeituresAndExpirationsInPeriodWeightedAverageExercisePrice_1E0D8CE4244E593CB89E1AD771F0D0B8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_2D06A4A99C5953F38F290A928F21B399" xlink:type="locator" />
    <link:definitionArc order="12" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableNumber_2D06A4A99C5953F38F290A928F21B399" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_14874DEB26A458BEB013C168CA44A5BA" xlink:type="locator" />
    <link:definitionArc order="13" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisableWeightedAverageExercisePrice_14874DEB26A458BEB013C168CA44A5BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1_530AAF467F1157ABBD47D28E8C0A9316" xlink:type="locator" />
    <link:definitionArc order="14" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsExercisableWeightedAverageRemainingContractualTerm1_530AAF467F1157ABBD47D28E8C0A9316" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_66B83807193E5473A8EBEF8B165DA724" xlink:type="locator" />
    <link:definitionArc order="15" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingNumber_66B83807193E5473A8EBEF8B165DA724" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_512BE9208080540A98411916CD288726" xlink:type="locator" />
    <link:definitionArc order="16" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageExercisePrice_512BE9208080540A98411916CD288726" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1_DFDDCFCACC385F73BE82860A6349E4E3" xlink:type="locator" />
    <link:definitionArc order="17" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_4087B268452C5F1C815B9ECC70764FCA" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedAndExpectedToVestOutstandingWeightedAverageRemainingContractualTerm1_DFDDCFCACC385F73BE82860A6349E4E3" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note9StockCompensationPlanNarrativeDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B62179DDBC38D8870DDFEB1E4456D8AA" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6827786C22B766EB7069EB1E44544196" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B62179DDBC38D8870DDFEB1E4456D8AA" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6827786C22B766EB7069EB1E44544196" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresByPlanAxis" xlink:label="loc_us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresByPlanAxis_84E26BA80E31D5F66413EB1E4454C5C2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6827786C22B766EB7069EB1E44544196" xlink:to="loc_us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresByPlanAxis_84E26BA80E31D5F66413EB1E4454C5C2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain" xlink:label="loc_us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain_3298CBD444D1259EF42DEB1E44554659_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresByPlanAxis_84E26BA80E31D5F66413EB1E4454C5C2" xlink:to="loc_us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain_3298CBD444D1259EF42DEB1E44554659_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain" xlink:label="loc_us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain_3298CBD444D1259EF42DEB1E44554659" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_EmployeeStockOwnershipPlanESOPDisclosuresByPlanAxis_84E26BA80E31D5F66413EB1E4454C5C2" xlink:to="loc_us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain_3298CBD444D1259EF42DEB1E44554659" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_A2011StockOptionIssuancePlanMember" xlink:label="loc_xers_A2011StockOptionIssuancePlanMember_8794388C1CCE6D0636DCEB1E44553A84" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain_3298CBD444D1259EF42DEB1E44554659" xlink:to="loc_xers_A2011StockOptionIssuancePlanMember_8794388C1CCE6D0636DCEB1E44553A84" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_A2018StockOptionandIncentivePlanMember" xlink:label="loc_xers_A2018StockOptionandIncentivePlanMember_50211DC06A48CD90D3BBEB1E44559F92" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeStockOwnershipPlanESOPPlanDomain_3298CBD444D1259EF42DEB1E44554659" xlink:to="loc_xers_A2018StockOptionandIncentivePlanMember_50211DC06A48CD90D3BBEB1E44559F92" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_B73EC837261CD8633F9DEB1E4455A79B" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_6827786C22B766EB7069EB1E44544196" xlink:to="loc_us-gaap_AwardTypeAxis_B73EC837261CD8633F9DEB1E4455A79B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E704046E2345895FCAD9EB1E4455845E_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_B73EC837261CD8633F9DEB1E4455A79B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E704046E2345895FCAD9EB1E4455845E_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E704046E2345895FCAD9EB1E4455845E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_B73EC837261CD8633F9DEB1E4455A79B" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E704046E2345895FCAD9EB1E4455845E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_A7776F8E591AEBD4D078EB1E44566A5E" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E704046E2345895FCAD9EB1E4455845E" xlink:to="loc_us-gaap_EmployeeStockOptionMember_A7776F8E591AEBD4D078EB1E44566A5E" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_NonemployeestockoptionsMember" xlink:label="loc_xers_NonemployeestockoptionsMember_901E4521BB9664D5F48CEB1E4456F891" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E704046E2345895FCAD9EB1E4455845E" xlink:to="loc_xers_NonemployeestockoptionsMember_901E4521BB9664D5F48CEB1E4456F891" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_062C6774BC0ADF84C32DEB1E4456EE63" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B62179DDBC38D8870DDFEB1E4456D8AA" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognized_062C6774BC0ADF84C32DEB1E4456EE63" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_2CAA1009AA3F03B3C1C0EB36E00CAAF2" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B62179DDBC38D8870DDFEB1E4456D8AA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAuthorized_2CAA1009AA3F03B3C1C0EB36E00CAAF2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_1A1ED1890BBE0C0A5343EB1E4457BD58" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B62179DDBC38D8870DDFEB1E4456D8AA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardNumberOfSharesAvailableForGrant_1A1ED1890BBE0C0A5343EB1E4457BD58" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_637D0E952350FA906ACCEB1E44579093" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B62179DDBC38D8870DDFEB1E4456D8AA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardAwardVestingPeriod1_637D0E952350FA906ACCEB1E44579093" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_239F9B2D22D0FEE6FE93EB1E44577ADB" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B62179DDBC38D8870DDFEB1E4456D8AA" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardExpirationPeriod_239F9B2D22D0FEE6FE93EB1E44577ADB" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedWeightedAverageGrantDateFairValue" xlink:label="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedWeightedAverageGrantDateFairValue_274B5AC7CCA50ECDE508EB1E4457DB3F" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B62179DDBC38D8870DDFEB1E4456D8AA" xlink:to="loc_us-gaap_SharebasedCompensationArrangementBySharebasedPaymentAwardOptionsVestedWeightedAverageGrantDateFairValue_274B5AC7CCA50ECDE508EB1E4457DB3F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_47251D6BD90A1B188DEAEB1E4457AA18" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B62179DDBC38D8870DDFEB1E4456D8AA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsExercisesInPeriodTotalIntrinsicValue_47251D6BD90A1B188DEAEB1E4457AA18" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue_B1269B74A60C2329FF0DEB1E44583C40" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B62179DDBC38D8870DDFEB1E4456D8AA" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardOptionsVestedAndExpectedToVestExercisableAggregateIntrinsicValue_B1269B74A60C2329FF0DEB1E44583C40" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_DF0793A8C23867CB3531EB1E4458A247" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_B62179DDBC38D8870DDFEB1E4456D8AA" xlink:to="loc_us-gaap_EmployeeServiceShareBasedCompensationNonvestedAwardsTotalCompensationCostNotYetRecognizedPeriodForRecognition1_DF0793A8C23867CB3531EB1E4458A247" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note9StockCompensationPlanNotes" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note9StockCompensationPlanShareBasedCompensationArrangementByShareBasedPaymentAwardFairValueAssumptionsMethodUsedDetails" xlink:type="extended" />
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note9StockCompensationPlanStockBasedCompensationExpenseDetails" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_714595476A6C57E88FAD5ABDA004B9D8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_17324BFD77F5512EA1BFA939F4375732" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_714595476A6C57E88FAD5ABDA004B9D8" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_17324BFD77F5512EA1BFA939F4375732" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_FF7E57C774C25DD3A19B81BE3C1265BC" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_17324BFD77F5512EA1BFA939F4375732" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_FF7E57C774C25DD3A19B81BE3C1265BC" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_631426EEF99F7F8F3993353243B2ABC4_3F88653C7F18537896DA435C5BD66D2B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_FF7E57C774C25DD3A19B81BE3C1265BC" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_631426EEF99F7F8F3993353243B2ABC4_3F88653C7F18537896DA435C5BD66D2B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_9E2FFE76D952565C9C44D3E91AE19CA5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_FF7E57C774C25DD3A19B81BE3C1265BC" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_9E2FFE76D952565C9C44D3E91AE19CA5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ResearchAndDevelopmentExpenseMember" xlink:label="loc_us-gaap_ResearchAndDevelopmentExpenseMember_9B44FA1E4B2D5E45AD8CBE8824D75F4F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_9E2FFE76D952565C9C44D3E91AE19CA5" xlink:to="loc_us-gaap_ResearchAndDevelopmentExpenseMember_9B44FA1E4B2D5E45AD8CBE8824D75F4F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_GeneralAndAdministrativeExpenseMember" xlink:label="loc_us-gaap_GeneralAndAdministrativeExpenseMember_C679E999C08851519E710BF3A0B26321" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncomeStatementLocationDomain_9E2FFE76D952565C9C44D3E91AE19CA5" xlink:to="loc_us-gaap_GeneralAndAdministrativeExpenseMember_C679E999C08851519E710BF3A0B26321" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_8CF21AF9EEF85C22A27E60252E962FB4" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_17324BFD77F5512EA1BFA939F4375732" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_8CF21AF9EEF85C22A27E60252E962FB4" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_0578CE1409B328AFDCD1353243B33D99_3F88653C7F18537896DA435C5BD66D2B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_8CF21AF9EEF85C22A27E60252E962FB4" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_0578CE1409B328AFDCD1353243B33D99_3F88653C7F18537896DA435C5BD66D2B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_F789FD31D3C15D44AB91429E1D3C95CA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_8CF21AF9EEF85C22A27E60252E962FB4" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_F789FD31D3C15D44AB91429E1D3C95CA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AllocatedShareBasedCompensationExpense" xlink:label="loc_us-gaap_AllocatedShareBasedCompensationExpense_932F7A5882C55B0AA403BEF996D0393F" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_714595476A6C57E88FAD5ABDA004B9D8" xlink:to="loc_us-gaap_AllocatedShareBasedCompensationExpense_932F7A5882C55B0AA403BEF996D0393F" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note9StockCompensationPlanStockBasedCompensationExpenseTables" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems" xlink:label="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_FAC89BF20AE05C529817E9863A2608A8" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_109C058A681954CE8D593B75B1606A22" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_FAC89BF20AE05C529817E9863A2608A8" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_109C058A681954CE8D593B75B1606A22" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationAxis" xlink:label="loc_us-gaap_IncomeStatementLocationAxis_1F771516CFBC5133B91E04397E5270BD" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_109C058A681954CE8D593B75B1606A22" xlink:to="loc_us-gaap_IncomeStatementLocationAxis_1F771516CFBC5133B91E04397E5270BD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_D63A6127538C30AC9ECE353243E08D35_3F88653C7F18537896DA435C5BD66D2B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_1F771516CFBC5133B91E04397E5270BD" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_D63A6127538C30AC9ECE353243E08D35_3F88653C7F18537896DA435C5BD66D2B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncomeStatementLocationDomain" xlink:label="loc_us-gaap_IncomeStatementLocationDomain_31C86CC3A61455FDA18452389468C402" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_IncomeStatementLocationAxis_1F771516CFBC5133B91E04397E5270BD" xlink:to="loc_us-gaap_IncomeStatementLocationDomain_31C86CC3A61455FDA18452389468C402" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationAxis" xlink:label="loc_us-gaap_BalanceSheetLocationAxis_1F467E3A31EE5409AF8791CEBC68B5CD" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTable_109C058A681954CE8D593B75B1606A22" xlink:to="loc_us-gaap_BalanceSheetLocationAxis_1F467E3A31EE5409AF8791CEBC68B5CD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_2A5CFEC24F6F340980A8353243E06B80_3F88653C7F18537896DA435C5BD66D2B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_1F467E3A31EE5409AF8791CEBC68B5CD" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_2A5CFEC24F6F340980A8353243E06B80_3F88653C7F18537896DA435C5BD66D2B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_BalanceSheetLocationDomain" xlink:label="loc_us-gaap_BalanceSheetLocationDomain_5FFAB913046C5C78870EDFC192FD69B2" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_BalanceSheetLocationAxis_1F467E3A31EE5409AF8791CEBC68B5CD" xlink:to="loc_us-gaap_BalanceSheetLocationDomain_5FFAB913046C5C78870EDFC192FD69B2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock" xlink:label="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock_C3891D2DA6305CFFBD23C4F286857634" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_EmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsLineItems_FAC89BF20AE05C529817E9863A2608A8" xlink:to="loc_us-gaap_ScheduleOfEmployeeServiceShareBasedCompensationAllocationOfRecognizedPeriodCostsTextBlock_C3891D2DA6305CFFBD23C4F286857634" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/Note9StockCompensationPlanTables" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_BB01027719CB537FA460F1F27FED8D84" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_577C7CC3B1485D4B970302B4BDA01362" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_BB01027719CB537FA460F1F27FED8D84" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_577C7CC3B1485D4B970302B4BDA01362" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AwardTypeAxis" xlink:label="loc_us-gaap_AwardTypeAxis_08F50388B55B5606AEA11B2BA19825E1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_ScheduleOfShareBasedCompensationArrangementsByShareBasedPaymentAwardTable_577C7CC3B1485D4B970302B4BDA01362" xlink:to="loc_us-gaap_AwardTypeAxis_08F50388B55B5606AEA11B2BA19825E1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FF5B3849EF04D8848E8D353A116D6E1B_3F88653C7F18537896DA435C5BD66D2B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_us-gaap_AwardTypeAxis_08F50388B55B5606AEA11B2BA19825E1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_FF5B3849EF04D8848E8D353A116D6E1B_3F88653C7F18537896DA435C5BD66D2B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain" xlink:label="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E3E490BF08B1561F90DF8F8ECB58A014" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_us-gaap_AwardTypeAxis_08F50388B55B5606AEA11B2BA19825E1" xlink:to="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E3E490BF08B1561F90DF8F8ECB58A014" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_EmployeeStockOptionMember" xlink:label="loc_us-gaap_EmployeeStockOptionMember_09AC0B1A00435978AD094318EABC26C8" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain_E3E490BF08B1561F90DF8F8ECB58A014" xlink:to="loc_us-gaap_EmployeeStockOptionMember_09AC0B1A00435978AD094318EABC26C8" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsMethodUsedTableTextBlock" xlink:label="loc_xers_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsMethodUsedTableTextBlock_9765323DFA5A5EE182DD99639E289ED5" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_BB01027719CB537FA460F1F27FED8D84" xlink:to="loc_xers_SharebasedCompensationArrangementbySharebasedPaymentAwardFairValueAssumptionsMethodUsedTableTextBlock_9765323DFA5A5EE182DD99639E289ED5" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ScheduleOfShareBasedCompensationActivityTableTextBlock" xlink:label="loc_us-gaap_ScheduleOfShareBasedCompensationActivityTableTextBlock_9E449815C5235D0086FF08FB86D6381D" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_ShareBasedCompensationArrangementByShareBasedPaymentAwardLineItems_BB01027719CB537FA460F1F27FED8D84" xlink:to="loc_us-gaap_ScheduleOfShareBasedCompensationActivityTableTextBlock_9E449815C5235D0086FF08FB86D6381D" xlink:type="arc" />
  </link:definitionLink>
  <link:definitionLink xlink:role="http://www.xerispharma.com/role/StatementOfCashFlows" xlink:type="extended">
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementLineItems" xlink:label="loc_us-gaap_StatementLineItems_593F48653875CC8ABB0CEEDE808597AD" xlink:type="locator" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_StatementTable" xlink:label="loc_us-gaap_StatementTable_1A9B070F851B7CF5FE07EEDE8083E22A" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/all" xlink:from="loc_us-gaap_StatementLineItems_593F48653875CC8ABB0CEEDE808597AD" xlink:to="loc_us-gaap_StatementTable_1A9B070F851B7CF5FE07EEDE8083E22A" xlink:type="arc" xbrldt:closed="true" xbrldt:contextElement="segment" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RestatementAxis" xlink:label="loc_srt_RestatementAxis_9756C8472C87679ECB0CEEDE808498F7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/hypercube-dimension" xlink:from="loc_us-gaap_StatementTable_1A9B070F851B7CF5FE07EEDE8083E22A" xlink:to="loc_srt_RestatementAxis_9756C8472C87679ECB0CEEDE808498F7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RestatementDomain" xlink:label="loc_srt_RestatementDomain_9D1B8FA0AE68DA14E880EEDE808433C1_default" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-default" xlink:from="loc_srt_RestatementAxis_9756C8472C87679ECB0CEEDE808498F7" xlink:to="loc_srt_RestatementDomain_9D1B8FA0AE68DA14E880EEDE808433C1_default" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/srt/2018/elts/srt-2018-01-31.xsd#srt_RestatementDomain" xlink:label="loc_srt_RestatementDomain_9D1B8FA0AE68DA14E880EEDE808433C1" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/dimension-domain" xlink:from="loc_srt_RestatementAxis_9756C8472C87679ECB0CEEDE808498F7" xlink:to="loc_srt_RestatementDomain_9D1B8FA0AE68DA14E880EEDE808433C1" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_A7988F88238E9A8D975EEEDE80850AA7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_593F48653875CC8ABB0CEEDE808597AD" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_A7988F88238E9A8D975EEEDE80850AA7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetIncomeLoss" xlink:label="loc_us-gaap_NetIncomeLoss_27CC22E34A515790364CEEDE8086E012" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInOperatingActivitiesAbstract_A7988F88238E9A8D975EEEDE80850AA7" xlink:to="loc_us-gaap_NetIncomeLoss_27CC22E34A515790364CEEDE8086E012" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract" xlink:label="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_A1F7483ED612F121322AEEDE80864A51" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_593F48653875CC8ABB0CEEDE808597AD" xlink:to="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_A1F7483ED612F121322AEEDE80864A51" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DepreciationDepletionAndAmortization" xlink:label="loc_us-gaap_DepreciationDepletionAndAmortization_33C20DE562CF19A6BE16EEDE8086817B" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_A1F7483ED612F121322AEEDE80864A51" xlink:to="loc_us-gaap_DepreciationDepletionAndAmortization_33C20DE562CF19A6BE16EEDE8086817B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AmortizationOfFinancingCosts" xlink:label="loc_us-gaap_AmortizationOfFinancingCosts_A47C6B28E21B5B106B28EEDE8086E5F3" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_A1F7483ED612F121322AEEDE80864A51" xlink:to="loc_us-gaap_AmortizationOfFinancingCosts_A47C6B28E21B5B106B28EEDE8086E5F3" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ShareBasedCompensation" xlink:label="loc_us-gaap_ShareBasedCompensation_464E7CA91308ACFECD9FEEDE808658AA" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_A1F7483ED612F121322AEEDE80864A51" xlink:to="loc_us-gaap_ShareBasedCompensation_464E7CA91308ACFECD9FEEDE808658AA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_FairValueAdjustmentOfWarrants" xlink:label="loc_us-gaap_FairValueAdjustmentOfWarrants_E46982532E4D9BA1A166EEDE8087482E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdjustmentsToReconcileNetIncomeLossToCashProvidedByUsedInOperatingActivitiesAbstract_A1F7483ED612F121322AEEDE80864A51" xlink:to="loc_us-gaap_FairValueAdjustmentOfWarrants_E46982532E4D9BA1A166EEDE8087482E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssetsAbstract" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssetsAbstract_17D4987B13AE9356DD46EEDE8087FAF8" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_593F48653875CC8ABB0CEEDE808597AD" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssetsAbstract_17D4987B13AE9356DD46EEDE8087FAF8" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsReceivable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_A88B3353775FDA22C1C1EEDE8087FBF7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssetsAbstract_17D4987B13AE9356DD46EEDE8087FAF8" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsReceivable_A88B3353775FDA22C1C1EEDE8087FBF7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInPrepaidExpense" xlink:label="loc_us-gaap_IncreaseDecreaseInPrepaidExpense_57A8636DE59125B05BCFEEDE808796BA" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssetsAbstract_17D4987B13AE9356DD46EEDE8087FAF8" xlink:to="loc_us-gaap_IncreaseDecreaseInPrepaidExpense_57A8636DE59125B05BCFEEDE808796BA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInOtherOperatingAssets" xlink:label="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_5E31D59818A808F948CDEEDE8087B73A" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssetsAbstract_17D4987B13AE9356DD46EEDE8087FAF8" xlink:to="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssets_5E31D59818A808F948CDEEDE8087B73A" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInAccountsPayable" xlink:label="loc_us-gaap_IncreaseDecreaseInAccountsPayable_37D628B65652EBB3088FEEDE8088F4E7" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssetsAbstract_17D4987B13AE9356DD46EEDE8087FAF8" xlink:to="loc_us-gaap_IncreaseDecreaseInAccountsPayable_37D628B65652EBB3088FEEDE8088F4E7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInAccruedLiabilities" xlink:label="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_B8BEC38C62AAE8FD5E51EEDE8088DF83" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssetsAbstract_17D4987B13AE9356DD46EEDE8087FAF8" xlink:to="loc_us-gaap_IncreaseDecreaseInAccruedLiabilities_B8BEC38C62AAE8FD5E51EEDE8088DF83" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInDeferredRevenue" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredRevenue_31935CD3E8C6CF780664EEDE80889B05" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssetsAbstract_17D4987B13AE9356DD46EEDE8087FAF8" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredRevenue_31935CD3E8C6CF780664EEDE80889B05" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_IncreaseDecreaseInDeferredLeasingFees" xlink:label="loc_us-gaap_IncreaseDecreaseInDeferredLeasingFees_0239F38D1B8970A6303FEEDE8088F73F" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssetsAbstract_17D4987B13AE9356DD46EEDE8087FAF8" xlink:to="loc_us-gaap_IncreaseDecreaseInDeferredLeasingFees_0239F38D1B8970A6303FEEDE8088F73F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInOperatingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_73842B35E8747D32131FEEDE8088A88F" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_IncreaseDecreaseInOtherOperatingAssetsAbstract_17D4987B13AE9356DD46EEDE8087FAF8" xlink:to="loc_us-gaap_NetCashProvidedByUsedInOperatingActivities_73842B35E8747D32131FEEDE8088A88F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_223AD2CEEA8EDD914BD7EEDE8088168E" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_593F48653875CC8ABB0CEEDE808597AD" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_223AD2CEEA8EDD914BD7EEDE8088168E" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquirePropertyPlantAndEquipment" xlink:label="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_B73985A9D14C4276F26AEEDE8089C4C7" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_223AD2CEEA8EDD914BD7EEDE8088168E" xlink:to="loc_us-gaap_PaymentsToAcquirePropertyPlantAndEquipment_B73985A9D14C4276F26AEEDE8089C4C7" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsToAcquireShortTermInvestments" xlink:label="loc_us-gaap_PaymentsToAcquireShortTermInvestments_309124E78AA4433B0C5DEEDE80899817" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_223AD2CEEA8EDD914BD7EEDE8088168E" xlink:to="loc_us-gaap_PaymentsToAcquireShortTermInvestments_309124E78AA4433B0C5DEEDE80899817" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInInvestingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_03672488523F7B8CEFD1EEDE8089262F" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInInvestingActivitiesAbstract_223AD2CEEA8EDD914BD7EEDE8088168E" xlink:to="loc_us-gaap_NetCashProvidedByUsedInInvestingActivities_03672488523F7B8CEFD1EEDE8089262F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_22F402E6B586F19AC0EFEEDE80893842" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_593F48653875CC8ABB0CEEDE808597AD" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_22F402E6B586F19AC0EFEEDE80893842" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceInitialPublicOffering" xlink:label="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_6B6BC6276043CE923639EEDE80894E0D" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_22F402E6B586F19AC0EFEEDE80893842" xlink:to="loc_us-gaap_ProceedsFromIssuanceInitialPublicOffering_6B6BC6276043CE923639EEDE80894E0D" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_PaymentsforInitialPublicOfferingCosts" xlink:label="loc_xers_PaymentsforInitialPublicOfferingCosts_15FD27E69C00289FE421EEDE80893617" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_22F402E6B586F19AC0EFEEDE80893842" xlink:to="loc_xers_PaymentsforInitialPublicOfferingCosts_15FD27E69C00289FE421EEDE80893617" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock_F82EE0B30C9B8CD50A98EEDE80893CF2" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_22F402E6B586F19AC0EFEEDE80893842" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfPreferredStockAndPreferenceStock_F82EE0B30C9B8CD50A98EEDE80893CF2" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsOfStockIssuanceCosts" xlink:label="loc_us-gaap_PaymentsOfStockIssuanceCosts_7B1EDA1B11C6A7B94AD2EEDE808AF845" xlink:type="locator" />
    <link:definitionArc order="4" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_22F402E6B586F19AC0EFEEDE80893842" xlink:to="loc_us-gaap_PaymentsOfStockIssuanceCosts_7B1EDA1B11C6A7B94AD2EEDE808AF845" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromIssuanceOfLongTermDebt" xlink:label="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_F66B043DDE7BFCA43A5EEEDE808A627B" xlink:type="locator" />
    <link:definitionArc order="5" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_22F402E6B586F19AC0EFEEDE80893842" xlink:to="loc_us-gaap_ProceedsFromIssuanceOfLongTermDebt_F66B043DDE7BFCA43A5EEEDE808A627B" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_PaymentsOfDebtIssuanceCosts" xlink:label="loc_us-gaap_PaymentsOfDebtIssuanceCosts_4E5552EA6FE3C5FD46BEEEDE808A8081" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_22F402E6B586F19AC0EFEEDE80893842" xlink:to="loc_us-gaap_PaymentsOfDebtIssuanceCosts_4E5552EA6FE3C5FD46BEEEDE808A8081" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_ProceedsFromStockOptionsExercised" xlink:label="loc_us-gaap_ProceedsFromStockOptionsExercised_7A0D1394A2C1EA1F93C8EEDE808A2422" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_22F402E6B586F19AC0EFEEDE80893842" xlink:to="loc_us-gaap_ProceedsFromStockOptionsExercised_7A0D1394A2C1EA1F93C8EEDE808A2422" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_NetCashProvidedByUsedInFinancingActivities" xlink:label="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4042CE27C7EF63DD4135EEDE808AEF38" xlink:type="locator" />
    <link:definitionArc order="8" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_22F402E6B586F19AC0EFEEDE80893842" xlink:to="loc_us-gaap_NetCashProvidedByUsedInFinancingActivities_4042CE27C7EF63DD4135EEDE808AEF38" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease" xlink:label="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_F956881A789DD8ABE3CDEEDE808AABAD" xlink:type="locator" />
    <link:definitionArc order="9" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_22F402E6B586F19AC0EFEEDE80893842" xlink:to="loc_us-gaap_CashAndCashEquivalentsPeriodIncreaseDecrease_F956881A789DD8ABE3CDEEDE808AABAD" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_CashAndCashEquivalentsAtCarryingValue" xlink:label="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_71933C1A42407BD902C5EEDF579A181F" xlink:type="locator" />
    <link:definitionArc order="10" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_NetCashProvidedByUsedInFinancingActivitiesAbstract_22F402E6B586F19AC0EFEEDE80893842" xlink:to="loc_us-gaap_CashAndCashEquivalentsAtCarryingValue_71933C1A42407BD902C5EEDF579A181F" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_SupplementalCashFlowInformationAbstract" xlink:label="loc_us-gaap_SupplementalCashFlowInformationAbstract_5C4EBA4E4A02C8FBAD12EEDE808BAC80" xlink:type="locator" />
    <link:definitionArc order="6" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_593F48653875CC8ABB0CEEDE808597AD" xlink:to="loc_us-gaap_SupplementalCashFlowInformationAbstract_5C4EBA4E4A02C8FBAD12EEDE808BAC80" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_InterestPaidNet" xlink:label="loc_us-gaap_InterestPaidNet_B30C933A7FD6EF947EA0EEDE808B4BDA" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_SupplementalCashFlowInformationAbstract_5C4EBA4E4A02C8FBAD12EEDE808BAC80" xlink:to="loc_us-gaap_InterestPaidNet_B30C933A7FD6EF947EA0EEDE808B4BDA" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_AdditionalCashFlowElementsAndSupplementalCashFlowInformationAbstract" xlink:label="loc_us-gaap_AdditionalCashFlowElementsAndSupplementalCashFlowInformationAbstract_A5F0BAB2D6E18C80C9D8EEDE808BCCE3" xlink:type="locator" />
    <link:definitionArc order="7" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_StatementLineItems_593F48653875CC8ABB0CEEDE808597AD" xlink:to="loc_us-gaap_AdditionalCashFlowElementsAndSupplementalCashFlowInformationAbstract_A5F0BAB2D6E18C80C9D8EEDE808BCCE3" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_Noncashallocationofdebtproceedstowarrants" xlink:label="loc_xers_Noncashallocationofdebtproceedstowarrants_FA867484A7F64305C942EEDE808B8DF9" xlink:type="locator" />
    <link:definitionArc order="1" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdditionalCashFlowElementsAndSupplementalCashFlowInformationAbstract_A5F0BAB2D6E18C80C9D8EEDE808BCCE3" xlink:to="loc_xers_Noncashallocationofdebtproceedstowarrants_FA867484A7F64305C942EEDE808B8DF9" xlink:type="arc" />
    <link:loc xlink:href="http://xbrl.fasb.org/us-gaap/2018/elts/us-gaap-2018-01-31.xsd#us-gaap_DebtIssuanceCostsIncurredDuringNoncashOrPartialNoncashTransaction" xlink:label="loc_us-gaap_DebtIssuanceCostsIncurredDuringNoncashOrPartialNoncashTransaction_71C69BB0A2C2355EF97EEEDE808CD104" xlink:type="locator" />
    <link:definitionArc order="2" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdditionalCashFlowElementsAndSupplementalCashFlowInformationAbstract_A5F0BAB2D6E18C80C9D8EEDE808BCCE3" xlink:to="loc_us-gaap_DebtIssuanceCostsIncurredDuringNoncashOrPartialNoncashTransaction_71C69BB0A2C2355EF97EEEDE808CD104" xlink:type="arc" />
    <link:loc xlink:href="xers-20180930.xsd#xers_Noncashvestingofearlyexercisedstockawards" xlink:label="loc_xers_Noncashvestingofearlyexercisedstockawards_15B5E491BDF9AB9D8785EEDE808C2278" xlink:type="locator" />
    <link:definitionArc order="3" xlink:arcrole="http://xbrl.org/int/dim/arcrole/domain-member" xlink:from="loc_us-gaap_AdditionalCashFlowElementsAndSupplementalCashFlowInformationAbstract_A5F0BAB2D6E18C80C9D8EEDE808BCCE3" xlink:to="loc_xers_Noncashvestingofearlyexercisedstockawards_15B5E491BDF9AB9D8785EEDE808C2278" xlink:type="arc" />
  </link:definitionLink>
</link:linkbase>
