PageSourceSearch

https://elastos-wiki.netlify.app/assets/js/2fa6a7de.871b0ddf.js

js elastos-wiki.netlify.app collected 2026-10-03 10:42:11 UTC 5,714 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2682],{3905:(e,t,n)=>{n.d(t,{Zo:()=>d,kt:()=>f});var o=n(7294);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t){if(null==e)return{};var n,o,r=function(e,t){if(null==e)return{};var n,o,r={},a=Object.keys(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var s=o.createContext({}),c=function(e){var t=o.useContext(s),n=t;return e&&(n="function"==typeof e?e(t):l(l({},t),e)),n},d=function(e){var t=c(e.components);return o.createElement(s.Provider,{value:t},e.children)},u="mdxType",p={inlineCode:"code",wrapper:function(e){var t=e.children;return o.createElement(o.Fragment,{},t)}},m=o.forwardRef((function(e,t){var n=e.components,r=e.mdxType,a=e.originalType,s=e.parentName,d=i(e,["components","mdxType","originalType","parentName"]),u=c(n),m=r,f=u["".concat(s,".").concat(m)]||u[m]||p[m]||a;return n?o.createElement(f,l(l({ref:t},d),{},{components:n})):o.createElement(f,l({ref:t},d))}));function f(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var a=n.length,l=new Array(a);l[0]=m;var i={};for(var s in t)hasOwnProperty.call(t,s)&&(i[s]=t[s]);i.originalType=e,i[u]="string"==typeof e?e:r,l[1]=i;for(var c=2;c<a;c++)l[c]=n[c];return o.createElement.apply(null,l)}return o.createElement.apply(null,n)}m.displayName="MDXCreateElement"},5894:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>s,default:()=>f,frontMatter:()=>i,metadata:()=>c,toc:()=>u});var o=n(7462),r=n(3366),a=(n(7294),n(3905)),l=["components"],i={title:"Build & Install"},s=void 0,c={unversionedId:"sdk/hive/swift/install",id:"sdk/hive/swift/install",title:"Build & Install",description:"Build from source",source:"@site/../docs/7.sdk/hive/swift/install.md",sourceDirName:"7.sdk/hive/swift",slug:"/sdk/hive/swift/install",permalink:"/sdk/hive/swift/install",draft:!1,editUrl:"https://github.com/elastos/Elastos.Wiki/edit/master/website/../docs/7.sdk/hive/swift/install.md",tags:[],version:"current",lastUpdatedBy:"racollette",lastUpdatedAt:1678815391,formattedLastUpdatedAt:"Mar 14, 2023",frontMatter:{title:"Build & Install"},sidebar:"sdkSidebar",previous:{title:"Introduction",permalink:"/sdk/hive/swift/introduction"},next:{title:"Vault Subscription",permalink:"/sdk/hive/swift/guides/vault-subscription"}},d={},u=[{value:"Build from source",id:"build-from-source",level:2},{value:"Getting Started",id:"getting-started",level:3},{value:"CocoaPods",id:"cocoapods",level:2},{value:"Pod Installation",id:"pod-installation",level:3}],p={toc:u},m="wrapper";function f(e){var t=e.components,n=(0,r.Z)(e,l);return(0,a.kt)(m,(0,o.Z)({},p,n,{components:t,mdxType:"MDXLayout"}),(0,a.kt)("h2",{id:"build-from-source"},"Build from source"),(0,a.kt)("p",null,"Use the following commands to download and build source code:"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"$ git clone https://github.com/elastos/Elastos.NET.Hive.Swift.SDK\n$ cd Elastos.NET.Hive.Swift.SDK\n$ pod install\n$ open -a Xcode ElastosHiveSDK.xcworkspace\n")),(0,a.kt)("blockquote",null,(0,a.kt)("p",{parentName:"blockquote"},"Note: Different versions of CocoaPods will lead to compilation errors. Please keep the latest version. Use the following commands to update CocoaPods.")),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-bash"}
1,"sudo gem install cocoapods\n")),(0,a.kt)("p",null,"Then use the Apple Xcode to build ElastosHiveSDK target and generate ElastosHiveSDK.framework."),(0,a.kt)("h3",{id:"getting-started"},"Getting Started"),(0,a.kt)("p",null,"Open the ElastosHiveSDK.xcworkspace and Select TestHost target to run unit tests. Then press Command-6 to open the Test navigator. There are three ways to run the tests:"),(0,a.kt)("ol",null,(0,a.kt)("li",{parentName:"ol"},"Product \u25b8 Test or Command-U. Both of these run all test classes."),(0,a.kt)("li",{parentName:"ol"},"Click the arrow button in the Test navigator."),(0,a.kt)("li",{parentName:"ol"},"Click the diamond button in the gutter.")),(0,a.kt)("p",null,"You can alse run an individual test method by clicking its diamond, either in the Test navigator or in the gutter."),(0,a.kt)("p",null,"When all the tests succeed, the diamonds will turn green and show checkmarks."),(0,a.kt)("h2",{id:"cocoapods"},"CocoaPods"),(0,a.kt)("h3",{id:"pod-installation"},"Pod Installation"),(0,a.kt)("p",null,"The distribution would be published to the CocoaPods platform. So, the simple way to use ElastosHiveSDK.framework is to add the following line to your Podfile:"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"$ pod 'ElastosHiveSDK'\n")),(0,a.kt)("p",null,"Then run the command below to install it before open your Xcode workspace:"),(0,a.kt)("pre",null,(0,a.kt)("code",{parentName:"pre",className:"language-bash"},"$ pod install\n")))}f.isMDXComponent=!0}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.