{"id":82,"date":"2016-01-04T20:13:09","date_gmt":"2016-01-04T12:13:09","guid":{"rendered":"http:\/\/zsaber.com\/blog\/?p=82"},"modified":"2019-08-26T15:36:48","modified_gmt":"2019-08-26T07:36:48","slug":"xcode-%e8%87%aa%e5%8a%a8%e6%b7%bb%e5%8a%a0%e4%bb%a3%e7%a0%81%e6%96%87%e4%bb%b6%e5%88%b0%e9%a1%b9%e7%9b%ae","status":"publish","type":"post","link":"http:\/\/zsaber.com\/blog\/p\/82","title":{"rendered":"XCode \u81ea\u52a8\u6dfb\u52a0\u4ee3\u7801\u6587\u4ef6\u5230\u9879\u76ee"},"content":{"rendered":"<p>XCode \u5927\u5bb6\u90fd\u5f88\u719f\u4e86, \u7531\u4e8e\u82f9\u679c\u81ea\u5df1\u6df1\u5ea6\u5b9a\u5236, \u5916\u52a0 LLVM \u7684\u5927\u529b\u652f\u6301, \u5728\u8c03\u8bd5\u65b9\u9762\u548c\u7f16\u8bd1\u901f\u5ea6\u65b9\u9762\u7b80\u76f4\u597d\u7528, \u5176\u5b83\u5404\u79cd IDE \u7279\u6027\u548c\u529f\u80fd\u4e5f\u90fd\u4e00\u5e94\u4ff1\u5168<\/p>\n<p>\u4e0d\u8fc7, \u8fd9\u8d27\u7684\u5de5\u7a0b\u6587\u4ef6\u7b80\u76f4\u662f\u4e0d\u80fd\u5fcd, \u7a0d\u5fae\u5927\u4e00\u70b9\u7684\u9879\u76ee, \u5de5\u7a0b\u6587\u4ef6\u5206\u5206\u949f\u5c31\u51e0MB \u5927\u4e86, \u800c\u4e14\u6700\u5947\u8469\u7684\u662f, \u5220\u9664\u4e00\u4e2a\u6e90\u7801\u76ee\u5f55\u518d\u6dfb\u52a0\u56de\u6765, \u4f1a\u5bfc\u81f4\u6574\u4e2a\u5de5\u7a0b\u6587\u4ef6\u53d8\u5316, \u975e\u5e38\u4e0d\u5229\u4e8e\u7248\u672c\u63a7\u5236, \u6dfb\u52a0\u65b0\u4ee3\u7801\u6587\u4ef6\u4e5f\u975e\u5e38\u9ebb\u70e6, \u5fc5\u987b\u624b\u52a8\u6dfb\u52a0<\/p>\n<p>\u5fcd\u53d7\u4e86\u8bb8\u4e45\u4e4b\u540e\u7ec8\u4e8e\u8fd8\u662f\u5fcd\u4e0d\u4f4f\u4e86, \u64cd\u8d77 Google \u53d1\u73b0\u4e86\u4ee5\u4e0b\u51e0\u79cd\u505a\u6cd5<\/p>\n<h1>XcodeEditor<\/h1>\n<p>\u9879\u76ee\u5730\u5740: <a href=\"https:\/\/github.com\/appsquickly\/XcodeEditor\">https:\/\/github.com\/appsquickly\/XcodeEditor<\/a><\/p>\n<p>\u6ca1\u600e\u4e48\u4ed4\u7ec6\u7814\u7a76, \u4e0d\u8fc7\u4f3c\u4e4e\u662f\u5f97\u81ea\u884c\u6298\u817e\u7f16\u8bd1\u4e00\u4e2a\u547d\u4ee4\u884c\u7a0b\u5e8f, \u6765\u4fee\u6539 XCode \u5de5\u7a0b\u6587\u4ef6, \u4e0d\u8fc7\u7167\u8bf4\u660e\u6765\u770b\u5e94\u8be5\u662f\u65e0\u6cd5\u89e3\u51b3\u7248\u672c\u63a7\u5236\u95ee\u9898\u548c\u6587\u4ef6\u5de8\u5927\u95ee\u9898<\/p>\n<h1>xUnique<\/h1>\n<p>\u9879\u76ee\u5730\u5740: <a href=\"https:\/\/github.com\/truebit\/xUnique\">https:\/\/github.com\/truebit\/xUnique<\/a><\/p>\n<p>\u5f88\u5b9e\u7528\u7684\u5de5\u5177, \u539f\u7406\u662f\u5c06\u539f\u59cb\u6587\u4ef6\u6309\u56fa\u5b9a\u89c4\u5219\u5206\u914d hash, \u7136\u540e\u91cd\u65b0\u6392\u5217, \u6240\u4ee5\u80fd\u89e3\u51b3\u7248\u672c\u63a7\u5236\u7684\u95ee\u9898, \u4f46\u662f\u65e0\u6cd5\u89e3\u51b3\u5de5\u7a0b\u6587\u4ef6\u8fc7\u4e8e\u5e9e\u5927\u7684\u95ee\u9898<\/p>\n<h1>Unity Builds<\/h1>\n<p><a href=\"http:\/\/stackoverflow.com\/questions\/17894259\/how-to-compile-and-link-additional-source-code-without-including-it-explicitly-i\/17894337#17894337\">\u601d\u8def\u6765\u81ea\u8fd9\u91cc<\/a><\/p>\n<p>\u8fd9\u4e2a\u5728 C\u8279 \u7684\u4e16\u754c\u91cc\u4e0d\u5c11\u89c1, \u4e3b\u8981\u662f\u7528\u6765\u505a\u7f16\u8bd1\u901f\u5ea6\u4f18\u5316\u4e4b\u7c7b\u7684\u4e8b\u60c5, \u6ca1\u60f3\u5230\u8fd9\u91cc\u53ef\u4ee5\u7528\u6765\u89e3\u51b3 XCode \u8981\u624b\u52a8\u6dfb\u52a0\u6587\u4ef6\u7684\u95ee\u9898<\/p>\n<p>\u5177\u4f53\u505a\u6cd5\u5982\u4e0b:<\/p>\n<ol>\n<li>\n<p>\u51c6\u5907\u811a\u672c\u6587\u4ef6, \u811a\u672c\u5185\u5bb9\u53c2\u7167 <a href=\"https:\/\/github.com\/ZFFramework\/ZFFramework\/blob\/master\/tools\/common\/unity_build.sh\">unity_build.sh<\/a><\/p>\n<p>\u539f\u7406\u662f, \u67e5\u627e\u6240\u6709 cpp \u6587\u4ef6, \u7136\u540e\u5168\u90e8 <code>#include<\/code> \u5230\u4e00\u4e2a cpp \u6587\u4ef6\u4e2d<\/p>\n<\/li>\n<li>\n<p>\u5728\u9879\u76ee Target \u7684 Build Phases \u91cc\u9762\u6dfb\u52a0\u4e00\u4e2a Run Script Phase, \u5e76\u79fb\u52a8\u5230 Compile Sources \u4e4b\u524d<\/p>\n<\/li>\n<li>\n<p>\u4e0a\u8ff0 Run Script Phase \u91cc\u9762\u7684\u5185\u5bb9\u4e3a<\/p>\n<pre><code class=\"language-sh\">unity_build.sh \"\u5408\u5e76\u6587\u4ef6.mm\" \"\u6e90\u7801\u76ee\u5f551\" \"\u6e90\u7801\u76ee\u5f552\" ...<\/code><\/pre>\n<p>\u8fd9\u6837\u5c31\u4f1a\u81ea\u52a8\u628a\u4f60\u6307\u5b9a\u7684\u6e90\u7801\u76ee\u5f55\u91cc\u9762\u6240\u6709 <code>c\/cxx\/cpp\/m\/mm<\/code> \u6587\u4ef6 import \u5230\u6307\u5b9a\u7684 mm \u6587\u4ef6\u4e2d\u4e86<\/p>\n<\/li>\n<li>\n<p>\u628a\u751f\u6210\u7684 mm \u6587\u4ef6\u62d6\u8fdb\u5de5\u7a0b\u4e2d<\/p>\n<\/li>\n<\/ol>\n<p>\u8bf4\u660e:<\/p>\n<ul>\n<li>\n<p>\u8fd9\u4e48\u505a\u4e5f\u6709\u660e\u663e\u7684\u7f3a\u70b9, \u4efb\u610f\u4e00\u4e2a\u6587\u4ef6\u53d8\u5316\u540e\u4f1a\u5bfc\u81f4\u6574\u4e2a\u9879\u76ee\u91cd\u65b0\u7f16\u8bd1<\/p>\n<p>\u6240\u4ee5, \u53ef\u4ee5\u6309\u76ee\u5f55\u6765\u591a\u5206\u51e0\u4e2a\u6587\u4ef6, \u6dfb\u52a0\u65b9\u6cd5\u4e0d\u53d8<\/p>\n<\/li>\n<li>\n<p>\u4e3a\u4e86\u5c3d\u91cf\u51cf\u5c11\u91cd\u65b0\u7f16\u8bd1\u7684\u65f6\u95f4, \u5408\u5e76\u6587\u4ef6\u5e76\u6ca1\u6709\u6bcf\u6b21\u91cd\u65b0\u751f\u6210, \u800c\u662f\u7528\u6587\u4ef6\u6bd4\u8f83\u7684\u65b9\u5f0f\u6765\u6bd4\u8f83\u6587\u4ef6\u5217\u8868\u662f\u5426\u53d1\u751f\u4e86\u53d8\u5316<\/p>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>XCode \u5927\u5bb6\u90fd\u5f88\u719f\u4e86, \u7531\u4e8e\u82f9\u679c\u81ea\u5df1\u6df1\u5ea6\u5b9a\u5236, \u5916\u52a0 LLVM \u7684\u5927\u529b\u652f\u6301, \u5728\u8c03\u8bd5\u65b9\u9762\u548c\u7f16\u8bd1\u901f\u5ea6\u65b9\u9762\u7b80\u76f4\u2026 <span class=\"read-more\"><a href=\"http:\/\/zsaber.com\/blog\/p\/82\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>XCode \u81ea\u52a8\u6dfb\u52a0\u4ee3\u7801\u6587\u4ef6\u5230\u9879\u76ee - \u67d0Z\u7684\u535a\u5ba2<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/zsaber.com\/blog\/p\/82\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"XCode \u81ea\u52a8\u6dfb\u52a0\u4ee3\u7801\u6587\u4ef6\u5230\u9879\u76ee - \u67d0Z\u7684\u535a\u5ba2\" \/>\n<meta property=\"og:description\" content=\"XCode \u5927\u5bb6\u90fd\u5f88\u719f\u4e86, \u7531\u4e8e\u82f9\u679c\u81ea\u5df1\u6df1\u5ea6\u5b9a\u5236, \u5916\u52a0 LLVM \u7684\u5927\u529b\u652f\u6301, \u5728\u8c03\u8bd5\u65b9\u9762\u548c\u7f16\u8bd1\u901f\u5ea6\u65b9\u9762\u7b80\u76f4\u2026 Read More &raquo;\" \/>\n<meta property=\"og:url\" content=\"http:\/\/zsaber.com\/blog\/p\/82\" \/>\n<meta property=\"og:site_name\" content=\"\u67d0Z\u7684\u535a\u5ba2\" \/>\n<meta property=\"article:published_time\" content=\"2016-01-04T12:13:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-08-26T07:36:48+00:00\" \/>\n<meta name=\"author\" content=\"Z\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"Z\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"http:\/\/zsaber.com\/blog\/p\/82#article\",\"isPartOf\":{\"@id\":\"http:\/\/zsaber.com\/blog\/p\/82\"},\"author\":{\"name\":\"Z\",\"@id\":\"http:\/\/zsaber.com\/blog\/#\/schema\/person\/6a6701fc719eff087e24e39a00e2280f\"},\"headline\":\"XCode \u81ea\u52a8\u6dfb\u52a0\u4ee3\u7801\u6587\u4ef6\u5230\u9879\u76ee\",\"datePublished\":\"2016-01-04T12:13:09+00:00\",\"dateModified\":\"2019-08-26T07:36:48+00:00\",\"mainEntityOfPage\":{\"@id\":\"http:\/\/zsaber.com\/blog\/p\/82\"},\"wordCount\":43,\"commentCount\":0,\"publisher\":{\"@id\":\"http:\/\/zsaber.com\/blog\/#\/schema\/person\/6a6701fc719eff087e24e39a00e2280f\"},\"articleSection\":[\"iOS\"],\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"http:\/\/zsaber.com\/blog\/p\/82#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/zsaber.com\/blog\/p\/82\",\"url\":\"http:\/\/zsaber.com\/blog\/p\/82\",\"name\":\"XCode \u81ea\u52a8\u6dfb\u52a0\u4ee3\u7801\u6587\u4ef6\u5230\u9879\u76ee - \u67d0Z\u7684\u535a\u5ba2\",\"isPartOf\":{\"@id\":\"http:\/\/zsaber.com\/blog\/#website\"},\"datePublished\":\"2016-01-04T12:13:09+00:00\",\"dateModified\":\"2019-08-26T07:36:48+00:00\",\"breadcrumb\":{\"@id\":\"http:\/\/zsaber.com\/blog\/p\/82#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/zsaber.com\/blog\/p\/82\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/zsaber.com\/blog\/p\/82#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"http:\/\/zsaber.com\/blog\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"XCode \u81ea\u52a8\u6dfb\u52a0\u4ee3\u7801\u6587\u4ef6\u5230\u9879\u76ee\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/zsaber.com\/blog\/#website\",\"url\":\"http:\/\/zsaber.com\/blog\/\",\"name\":\"\u67d0Z\u7684\u535a\u5ba2\",\"description\":\"\u7b80\u4ecb\u53c8\u4e0d\u80fd\u5403\",\"publisher\":{\"@id\":\"http:\/\/zsaber.com\/blog\/#\/schema\/person\/6a6701fc719eff087e24e39a00e2280f\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/zsaber.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"http:\/\/zsaber.com\/blog\/#\/schema\/person\/6a6701fc719eff087e24e39a00e2280f\",\"name\":\"Z\",\"logo\":{\"@id\":\"http:\/\/zsaber.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"\u67d0Z\",\"sameAs\":[\"http:\/\/ZFFramework.com\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"XCode \u81ea\u52a8\u6dfb\u52a0\u4ee3\u7801\u6587\u4ef6\u5230\u9879\u76ee - \u67d0Z\u7684\u535a\u5ba2","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/zsaber.com\/blog\/p\/82","og_locale":"zh_CN","og_type":"article","og_title":"XCode \u81ea\u52a8\u6dfb\u52a0\u4ee3\u7801\u6587\u4ef6\u5230\u9879\u76ee - \u67d0Z\u7684\u535a\u5ba2","og_description":"XCode \u5927\u5bb6\u90fd\u5f88\u719f\u4e86, \u7531\u4e8e\u82f9\u679c\u81ea\u5df1\u6df1\u5ea6\u5b9a\u5236, \u5916\u52a0 LLVM \u7684\u5927\u529b\u652f\u6301, \u5728\u8c03\u8bd5\u65b9\u9762\u548c\u7f16\u8bd1\u901f\u5ea6\u65b9\u9762\u7b80\u76f4\u2026 Read More &raquo;","og_url":"http:\/\/zsaber.com\/blog\/p\/82","og_site_name":"\u67d0Z\u7684\u535a\u5ba2","article_published_time":"2016-01-04T12:13:09+00:00","article_modified_time":"2019-08-26T07:36:48+00:00","author":"Z","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"Z"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"http:\/\/zsaber.com\/blog\/p\/82#article","isPartOf":{"@id":"http:\/\/zsaber.com\/blog\/p\/82"},"author":{"name":"Z","@id":"http:\/\/zsaber.com\/blog\/#\/schema\/person\/6a6701fc719eff087e24e39a00e2280f"},"headline":"XCode \u81ea\u52a8\u6dfb\u52a0\u4ee3\u7801\u6587\u4ef6\u5230\u9879\u76ee","datePublished":"2016-01-04T12:13:09+00:00","dateModified":"2019-08-26T07:36:48+00:00","mainEntityOfPage":{"@id":"http:\/\/zsaber.com\/blog\/p\/82"},"wordCount":43,"commentCount":0,"publisher":{"@id":"http:\/\/zsaber.com\/blog\/#\/schema\/person\/6a6701fc719eff087e24e39a00e2280f"},"articleSection":["iOS"],"inLanguage":"zh-Hans","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["http:\/\/zsaber.com\/blog\/p\/82#respond"]}]},{"@type":"WebPage","@id":"http:\/\/zsaber.com\/blog\/p\/82","url":"http:\/\/zsaber.com\/blog\/p\/82","name":"XCode \u81ea\u52a8\u6dfb\u52a0\u4ee3\u7801\u6587\u4ef6\u5230\u9879\u76ee - \u67d0Z\u7684\u535a\u5ba2","isPartOf":{"@id":"http:\/\/zsaber.com\/blog\/#website"},"datePublished":"2016-01-04T12:13:09+00:00","dateModified":"2019-08-26T07:36:48+00:00","breadcrumb":{"@id":"http:\/\/zsaber.com\/blog\/p\/82#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["http:\/\/zsaber.com\/blog\/p\/82"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/zsaber.com\/blog\/p\/82#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"http:\/\/zsaber.com\/blog"},{"@type":"ListItem","position":2,"name":"XCode \u81ea\u52a8\u6dfb\u52a0\u4ee3\u7801\u6587\u4ef6\u5230\u9879\u76ee"}]},{"@type":"WebSite","@id":"http:\/\/zsaber.com\/blog\/#website","url":"http:\/\/zsaber.com\/blog\/","name":"\u67d0Z\u7684\u535a\u5ba2","description":"\u7b80\u4ecb\u53c8\u4e0d\u80fd\u5403","publisher":{"@id":"http:\/\/zsaber.com\/blog\/#\/schema\/person\/6a6701fc719eff087e24e39a00e2280f"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/zsaber.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":["Person","Organization"],"@id":"http:\/\/zsaber.com\/blog\/#\/schema\/person\/6a6701fc719eff087e24e39a00e2280f","name":"Z","logo":{"@id":"http:\/\/zsaber.com\/blog\/#\/schema\/person\/image\/"},"description":"\u67d0Z","sameAs":["http:\/\/ZFFramework.com"]}]}},"_links":{"self":[{"href":"http:\/\/zsaber.com\/blog\/wp-json\/wp\/v2\/posts\/82"}],"collection":[{"href":"http:\/\/zsaber.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zsaber.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zsaber.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zsaber.com\/blog\/wp-json\/wp\/v2\/comments?post=82"}],"version-history":[{"count":0,"href":"http:\/\/zsaber.com\/blog\/wp-json\/wp\/v2\/posts\/82\/revisions"}],"wp:attachment":[{"href":"http:\/\/zsaber.com\/blog\/wp-json\/wp\/v2\/media?parent=82"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zsaber.com\/blog\/wp-json\/wp\/v2\/categories?post=82"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zsaber.com\/blog\/wp-json\/wp\/v2\/tags?post=82"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}