{"id":1256,"date":"2018-09-17T14:12:18","date_gmt":"2018-09-17T06:12:18","guid":{"rendered":"http:\/\/www.yusian.com\/blog\/?p=1256"},"modified":"2018-09-18T17:43:48","modified_gmt":"2018-09-18T09:43:48","slug":"xcode10-linker-command-failed-with-exit-code-1-use-v-to-see-invocation","status":"publish","type":"post","link":"https:\/\/www.yusian.com\/blog\/analysis\/2018\/09\/17\/1412181256.html","title":{"rendered":"Xcode10 linker command failed with exit code 1 (use -v to see invocation)"},"content":{"rendered":"<p>1\u3001\u524d\u4e24\u5929\u5347\u7ea7\u4e86Xcode 10\u7684GM\u7248\uff0c\u672c\u6765\u7b49\u4e24\u5929\u5c31\u53ef\u4ee5\u6b63\u5f0f\u5347\u7ea7\u66f4\u65b0\u4e86\uff0c\u5b9e\u5728\u7b49\u4e0d\u4e86\u4e86\u3002<br \/>\n2\u3001\u5347\u7ea7\u540e\u53d1\u73b0\u539f\u6765\u7684\u9879\u76ee\u7f16\u8bd1\u4e0d\u901a\u8fc7\uff0c\u4e00\u76f4\u62a5\u9519linker command failed with exit code 1 (use -v to see invocation)\uff1b<br \/>\n3\u3001\u70b9\u51fb\u62a5\u9519\u4e5f\u6ca1\u6709\u5b9a\u4f4d\u5177\u4f53\u662f\u54ea\u91cc\u7684\u95ee\u9898\uff0c\u8fd9\u4e0b\u597d\u4e86\uff0c\u56de\u5934\u7528Xcode9\u662f\u597d\u597d\u7684\uff1b<br \/>\n4\u3001\u7f51\u4e0a\u67e5\u4e86\u4e00\u4e0b\uff0c\u5f88\u591a\u63cf\u8ff0\u90fd\u6307\u5411\u4e86libstdc++\u8fd9\u4e2a\u5e93\uff0c\u5e76\u4e14\u636e\u8bf4\u82f9\u679c\u5b98\u65b9\u57285\u5e74\u524d\u5c31\u6709\u58f0\u660e\u5c06\u8981\u5e9f\u5f03\uff0c\u540e\u7eed\u4f7f\u7528libc++\u5e93\u6765\u66ff\u4ee3\u4e4b\uff1b<br \/>\n5\u3001\u5176\u5b9e\u6211\u4eec\u81ea\u5df1\u662f\u4e0d\u4f1a\u4e3b\u52a8\u4f7f\u7528\u8fd9\u79cd\u5e93\u7684\uff0c\u56e0\u4e3a\u8fd9\u662fC++\u5e93\uff0c\u6211\u4eec\u4e00\u822c\u4e5f\u4e0d\u4f1a\u5728\u4ee3\u7801\u91cc\u9762\u5927\u91cf\u4f7f\u7528C++\uff1b<br \/>\n6\u3001\u90a3\u95ee\u9898\u57fa\u672c\u4e0a\u662f\u627e\u5230\u70b9\u4e86\uff0c\u4f7f\u7528\u8fd9\u4e9b\u5e93\u7684\u4e00\u822c\u662f\u6709\u56fe\u5f62\u5904\u7406\u76f8\u5173\u7684\u9700\u6c42\uff0c\u6bd4\u5982\u5730\u56fe\uff1b<br \/>\n7\u3001\u5e9f\u8bdd\u4e0d\u8bf4\u591a\u4e86\uff0c\u5982\u4f55\u5904\u7406\u624d\u662f\u6b63\u9898\uff0c\u76f4\u63a5\u6dfb\u52a0libstdc++\u5e93\u662f\u4e0d\u884c\u4e86\uff0c\u56e0\u4e3aiOS12SDK\u4e2d\u5df2\u7ecf\u4e0d\u5305\u542b\u8fd9\u4e2a\u5e93\u4e86\uff1b<br \/>\n8\u3001\u76ee\u524d\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u5c31\u662f\u5c06Xcode9\u4e2d\u7684libstdc++\u76f8\u5173\u7684\u5e93\u62f7\u8d1d\u5230Xcode10\u4e2d\u6765\uff0c\u907f\u514d\u5f15\u7528\u62a5\u9519\uff0c\u5e94\u8be5\u5c31\u641e\u5b9a\u4e86\uff01<br \/>\n9\u3001\u771f\u673a\u8def\u5f84\uff1aXcode.app\u2069 \u25b8 \u2068Contents\u2069 \u25b8 \u2068Developer\u2069 \u25b8 \u2068Platforms\u2069 \u25b8 \u2068iPhoneOS.platform\u2069 \u25b8 \u2068Developer\u2069 \u25b8 \u2068SDKs\u2069 \u25b8 \u2068iPhoneOS.sdk\u2069 \u25b8 \u2068usr\u2069 \u25b8 \u2068lib\u2069<br \/>\n10\u3001\u5728\u8fd9\u4e2alib\u76ee\u5f55\u4e0b\uff0c\u76f8\u5173\u7684\u6587\u4ef6\u6709libstdc++.6.0.9.tbd\u3001libstdc++.tbd\u3001libstdc++.6.tbd\uff1b<br \/>\n11\u3001\u5c06\u8fd9\u4e09\u4e2a\u6587\u4ef6\uff0c\u4eceXcode9\u4e2d\u62f7\u8d1d\u5230Xcode10\u76f8\u5bf9\u5e94\u7684\u76ee\u5f55\u4e0b\uff1b<br \/>\n12\u3001\u6a21\u62df\u5668\uff1a\u2068Xcode.app\u2069 \u25b8 \u2068Contents\u2069 \u25b8 \u2068Developer\u2069 \u25b8 \u2068Platforms\u2069 \u25b8 \u2068iPhoneSimulator.platform\u2069 \u25b8 \u2068Developer\u2069 \u25b8 \u2068SDKs\u2069 \u25b8 \u2068iPhoneSimulator.sdk\u2069 \u25b8 \u2068usr\u2069 \u25b8 \u2068lib\u2069\uff1b<br \/>\n13\u3001\u89e3\u51b3\u529e\u6cd5\u7c7b\u4f3c\uff0c\u4e5f\u662f\u5c06\u76f8\u5bf9\u5e94\u7684\u6587\u4ef6\u62f7\u8d1d\u5230\u76f8\u5173\u8def\u5f84\uff0c<strong>\u6ce8\u610f\uff1a\u76f8\u5bf9\u5e94\uff01\uff01\uff01<\/strong>\u6a21\u62df\u5668\u62f7\u6a21\u62df\u5668\uff0c\u771f\u673a\u62f7\u771f\u673a\u3002<\/p>\n<p>14\u3001libstdc++\u5e93\u6587\u4ef6\u4e0b\u8f7d\uff1a<a href=\"http:\/\/www.yusian.com\/blog\/wp-content\/uploads\/2018\/09\/libstdc.6.0.9.tbd_.zip\">libstdc++.6.0.9.tbd<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1\u3001\u524d\u4e24\u5929\u5347\u7ea7\u4e86Xcode 10\u7684GM\u7248\uff0c\u672c\u6765\u7b49\u4e24\u5929\u5c31\u53ef\u4ee5\u6b63\u5f0f\u5347\u7ea7\u66f4\u65b0\u4e86\uff0c\u5b9e\u5728\u7b49\u4e0d\u4e86\u4e86\u3002 2\u3001\u5347\u7ea7\u540e\u53d1\u73b0\u539f\u6765\u7684\u9879\u76ee\u7f16\u8bd1\u4e0d\u901a\u8fc7\uff0c\u4e00\u76f4\u62a5\u9519linker command failed with exit code 1 (use -v to see invocation)\uff1b 3\u3001\u70b9\u51fb\u62a5\u9519\u4e5f\u6ca1\u6709\u5b9a\u4f4d\u5177\u4f53\u662f\u54ea\u91cc\u7684\u95ee\u9898\uff0c\u8fd9\u4e0b\u597d\u4e86\uff0c\u56de\u5934\u7528Xcode9\u662f\u597d\u597d\u7684\uff1b 4\u3001\u7f51\u4e0a\u67e5\u4e86\u4e00\u4e0b\uff0c\u5f88\u591a\u63cf\u8ff0\u90fd\u6307\u5411\u4e86libstdc++\u8fd9\u4e2a\u5e93\uff0c\u5e76\u4e14\u636e\u8bf4\u82f9\u679c\u5b98\u65b9\u57285\u5e74\u524d\u5c31\u6709\u58f0\u660e\u5c06\u8981\u5e9f\u5f03\uff0c\u540e\u7eed\u4f7f\u7528libc++\u5e93\u6765\u66ff\u4ee3\u4e4b\uff1b 5\u3001\u5176\u5b9e\u6211\u4eec\u81ea\u5df1\u662f\u4e0d\u4f1a\u4e3b\u52a8\u4f7f\u7528\u8fd9\u79cd\u5e93\u7684\uff0c\u56e0\u4e3a\u8fd9\u662fC++\u5e93\uff0c\u6211\u4eec\u4e00\u822c\u4e5f\u4e0d\u4f1a\u5728\u4ee3\u7801\u91cc\u9762\u5927\u91cf\u4f7f\u7528C++\uff1b 6\u3001\u90a3\u95ee\u9898\u57fa\u672c\u4e0a\u662f\u627e\u5230\u70b9\u4e86\uff0c\u4f7f\u7528\u8fd9\u4e9b\u5e93\u7684\u4e00\u822c\u662f\u6709\u56fe\u5f62\u5904\u7406\u76f8\u5173\u7684\u9700\u6c42\uff0c\u6bd4\u5982\u5730\u56fe\uff1b 7\u3001\u5e9f\u8bdd\u4e0d\u8bf4\u591a\u4e86\uff0c\u5982\u4f55\u5904\u7406\u624d\u662f\u6b63\u9898\uff0c\u76f4\u63a5\u6dfb\u52a0libstdc++\u5e93\u662f\u4e0d\u884c\u4e86\uff0c\u56e0\u4e3aiOS12SDK\u4e2d\u5df2\u7ecf\u4e0d\u5305\u542b\u8fd9\u4e2a\u5e93\u4e86\uff1b 8\u3001\u76ee\u524d\u6700\u7b80\u5355\u7684\u65b9\u6cd5\u5c31\u662f\u5c06Xcode9\u4e2d\u7684libstdc++\u76f8\u5173\u7684\u5e93\u62f7\u8d1d\u5230Xcode10\u4e2d\u6765\uff0c\u907f\u514d\u5f15\u7528\u62a5\u9519\uff0c\u5e94\u8be5\u5c31\u641e\u5b9a\u4e86\uff01 9\u3001\u771f\u673a\u8def\u5f84\uff1aXcode.app\u2069 \u25b8 \u2068Contents\u2069 \u25b8 \u2068Developer\u2069 \u25b8 \u2068Platforms\u2069 \u25b8 \u2068iPhoneOS.platform\u2069 \u25b8 \u2068Developer\u2069 \u25b8 \u2068SDKs\u2069 \u25b8 \u2068iPhoneOS.sdk\u2069 \u25b8 \u2068usr\u2069 \u25b8 \u2068lib\u2069 10\u3001\u5728\u8fd9\u4e2alib\u76ee\u5f55\u4e0b\uff0c\u76f8\u5173\u7684\u6587\u4ef6\u6709libstdc++.6.0.9.tbd\u3001libstdc++.tbd\u3001libstdc++.6.tbd\uff1b 11\u3001\u5c06\u8fd9\u4e09\u4e2a\u6587\u4ef6\uff0c\u4eceXcode9\u4e2d\u62f7\u8d1d\u5230Xcode10\u76f8\u5bf9\u5e94\u7684\u76ee\u5f55\u4e0b\uff1b 12\u3001\u6a21\u62df\u5668\uff1a\u2068Xcode.app\u2069 \u25b8 \u2068Contents\u2069 \u25b8 \u2068Developer\u2069 \u25b8 \u2068Platforms\u2069 \u25b8 \u2068iPhoneSimulator.platform\u2069 \u25b8 \u2068Developer\u2069 \u25b8 \u2068SDKs\u2069 \u25b8 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,11],"tags":[114,112,113,111],"class_list":["post-1256","post","type-post","status-publish","format-standard","hentry","category-analysis","category-project","tag-ios12","tag-libstdc","tag-sdk","tag-xcode10"],"_links":{"self":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/1256","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/comments?post=1256"}],"version-history":[{"count":0,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/1256\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/media?parent=1256"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/categories?post=1256"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/tags?post=1256"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}