{"id":4056,"date":"2024-12-11T18:49:01","date_gmt":"2024-12-11T15:49:01","guid":{"rendered":"https:\/\/demensdeum.com\/blog\/2024\/12\/11\/dynamic-linking-qt-app-macos\/"},"modified":"2024-12-16T22:32:09","modified_gmt":"2024-12-16T19:32:09","slug":"dynamic-linking-qt-app-macos","status":"publish","type":"post","link":"https:\/\/demensdeum.com\/blog\/zh\/2024\/12\/11\/dynamic-linking-qt-app-macos\/","title":{"rendered":"macOS \u4e0a Qt \u5e94\u7528\u7a0b\u5e8f\u7684\u52a8\u6001\u94fe\u63a5"},"content":{"rendered":"<p>\u4eca\u5929\uff0c\u6211\u53d1\u5e03\u4e86\u9002\u7528\u4e8e\u914d\u5907 macOS \u548c M1\/M2\/M3\/M4 \u5904\u7406\u5668\uff08Apple Silicon\uff09\u7684 Apple \u8bbe\u5907\u7684 RaidenVideoRipper \u7248\u672c\u3002 RaidenVideoRipper \u662f\u4e00\u6b3e\u5feb\u901f\u89c6\u9891\u7f16\u8f91\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ef\u8ba9\u60a8\u5c06\u89c6\u9891\u6587\u4ef6\u7684\u4e00\u90e8\u5206\u526a\u5207\u6210\u65b0\u6587\u4ef6\u3002\u60a8\u8fd8\u53ef\u4ee5\u5236\u4f5c gif \u5e76\u5c06\u97f3\u8f68\u5bfc\u51fa\u4e3a mp3\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u7b80\u8981\u63cf\u8ff0\u6211\u4f7f\u7528\u4e86\u54ea\u4e9b\u547d\u4ee4\u6765\u5b8c\u6210\u6b64\u4efb\u52a1\u3002\u8fd9\u91cc\u53d1\u751f\u7684\u4e8b\u60c5\u7684\u7406\u8bba\uff0c\u5b9e\u7528\u7a0b\u5e8f\u7684\u6587\u6863\uff0c\u53ef\u4ee5\u5728\u4ee5\u4e0b\u94fe\u63a5\u4e2d\u9605\u8bfb\uff1a<br \/>\n<a href=\"https:\/\/www.unix.com\/man-page\/osx\/1\/otool\/\" rel=\"noopener\" target=\"_blank\">https:\/\/www.unix.com\/man-page\/osx\/1\/otool\/<\/a><br \/>\n<a href=\"https:\/\/www.unix.com\/man-page\/osx\/1\/install_name_tool\/\" rel=\"noopener\" target=\"_blank\">https:\/\/www.unix.com\/man-page\/osx\/1\/install_name_tool\/<\/a><br \/>\n<a href=\"https:\/\/llvm.org\/docs\/CommandGuide\/llvm-nm.html\" rel=\"noopener\" target=\"_blank\">https:\/\/llvm.org\/docs\/CommandGuide\/llvm-nm.html<\/a><br \/>\n<a href=\"https:\/\/linux.die.net\/man\/1\/file\" rel=\"noopener\" target=\"_blank\">https:\/\/linux.die.net\/man\/1\/file<\/a><br \/>\n<a href=\"https:\/\/www.unix.com\/man-page\/osx\/8\/SPCTL\/\" rel=\"noopener\" target=\"_blank\">https:\/\/www.unix.com\/man-page\/osx\/8\/SPCTL\/<\/a><br \/>\n<a href=\"https:\/\/linux.die.net\/man\/1\/chmod\" rel=\"noopener\" target=\"_blank\">https:\/\/linux.die.net\/man\/1\/chmod<\/a><br \/>\n<a href=\"https:\/\/linux.die.net\/man\/1\/ls\" rel=\"noopener\" target=\"_blank\">https:\/\/linux.die.net\/man\/1\/ls<\/a><br \/>\n<a href=\"https:\/\/man7.org\/linux\/man-pages\/man7\/xattr.7.html\" rel=\"noopener\" target=\"_blank\">https:\/\/man7.org\/linux\/man-pages\/man7\/xattr.7.html<\/a><br \/>\n<a href=\"https:\/\/doc.qt.io\/qt-6\/macos-deployment.html\" rel=\"noopener\" target=\"_blank\">https:\/\/doc.qt.io\/qt-6\/macos-deployment.html<\/a><\/p>\n<p>\u9996\u5148\uff0c\u5728 macOS \u4e0a\u5b89\u88c5 Qt\uff0c\u5e76\u5b89\u88c5 Qt \u684c\u9762\u5f00\u53d1\u73af\u5883\u3002\u4e4b\u540e\uff0c\u4f8b\u5982\u5728 Qt Creator \u4e2d\u7ec4\u88c5\u60a8\u7684\u9879\u76ee\uff0c\u7136\u540e\u6211\u5c06\u63cf\u8ff0\u5728\u5c06\u5e94\u7528\u7a0b\u5e8f\u5206\u53d1\u7ed9\u6700\u7ec8\u7528\u6237\u65f6\u786e\u4fdd\u6b63\u786e\u5904\u7406\u4e0e\u5916\u90e8\u52a8\u6001\u5e93\u7684\u4f9d\u8d56\u5173\u7cfb\u6240\u9700\u7684\u5185\u5bb9\u3002<\/p>\n<p>\u5728\u5e94\u7528\u7a0b\u5e8f\u7684 YOUR_APP.app\/Contents \u6587\u4ef6\u5939\u4e2d\u521b\u5efa Frameworks \u76ee\u5f55\uff0c\u5e76\u5c06\u5916\u90e8\u4f9d\u8d56\u9879\u653e\u5165\u5176\u4e2d\u3002\u4f8b\u5982\uff0cRaidenVideoRipper \u5e94\u7528\u7a0b\u5e8f\u7684\u6846\u67b6\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"bash\"><code>Frameworks\n\u251c\u2500\u2500 DullahanFFmpeg.framework\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 dullahan_ffmpeg.a\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 libavcodec.60.dylib\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 libavdevice.60.dylib\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 libavfilter.9.dylib\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 libavformat.60.dylib\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 libavutil.58.dylib\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 libpostproc.57.dylib\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 libswresample.4.dylib\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 libswscale.7.dylib\n\u251c\u2500\u2500 QtCore.framework\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Headers -> Versions\/Current\/Headers\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 QtCore -> Versions\/Current\/QtCore\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Resources -> Versions\/Current\/Resources\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 Versions\n\u251c\u2500\u2500 QtGui.framework\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Headers -> Versions\/Current\/Headers\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 QtGui -> Versions\/Current\/QtGui\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Resources -> Versions\/Current\/Resources\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 Versions\n\u251c\u2500\u2500 QtMultimedia.framework\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Headers -> Versions\/Current\/Headers\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 QtMultimedia -> Versions\/Current\/QtMultimedia\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Resources -> Versions\/Current\/Resources\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 Versions\n\u251c\u2500\u2500 QtMultimediaWidgets.framework\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Headers -> Versions\/Current\/Headers\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 QtMultimediaWidgets -> Versions\/Current\/QtMultimediaWidgets\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Resources -> Versions\/Current\/Resources\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 Versions\n\u251c\u2500\u2500 QtNetwork.framework\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Headers -> Versions\/Current\/Headers\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 QtNetwork -> Versions\/Current\/QtNetwork\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Resources -> Versions\/Current\/Resources\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 Versions\n\u2514\u2500\u2500 QtWidgets.framework\n    \u251c\u2500\u2500 Headers -> Versions\/Current\/Headers\n    \u251c\u2500\u2500 QtWidgets -> Versions\/Current\/QtWidgets\n    \u251c\u2500\u2500 Resources -> Versions\/Current\/Resources\n    \u2514\u2500\u2500 Versions\n<\/code><\/pre>\n<\/div>\n<p>\u4e3a\u4e86\u7b80\u5355\u8d77\u89c1\uff0c\u6211\u53ea\u6253\u5370\u4e86\u7b2c\u4e8c\u5c42\u5d4c\u5957\u3002<\/p>\n<p>\u63a5\u4e0b\u6765\uff0c\u6211\u4eec\u6253\u5370\u5e94\u7528\u7a0b\u5e8f\u5f53\u524d\u7684\u52a8\u6001\u4f9d\u8d56\u5173\u7cfb\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"bash\"><code>otool -L RaidenVideoRipper \n<\/code><\/pre>\n<\/div>\n<p>RaidenVideoRipper \u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u8f93\u51fa\uff0c\u4f4d\u4e8e RaidenVideoRipper.app\/Contents\/MacOS\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"bash\"><code>RaidenVideoRipper:\n\t@rpath\/DullahanFFmpeg.framework\/dullahan_ffmpeg.a (compatibility version 0.0.0, current version 0.0.0)\n\t@rpath\/QtMultimediaWidgets.framework\/Versions\/A\/QtMultimediaWidgets (compatibility version 6.0.0, current version 6.8.1)\n\t@rpath\/QtWidgets.framework\/Versions\/A\/QtWidgets (compatibility version 6.0.0, current version 6.8.1)\n\t@rpath\/QtMultimedia.framework\/Versions\/A\/QtMultimedia (compatibility version 6.0.0, current version 6.8.1)\n\t@rpath\/QtGui.framework\/Versions\/A\/QtGui (compatibility version 6.0.0, current version 6.8.1)\n\t\/System\/Library\/Frameworks\/AppKit.framework\/Versions\/C\/AppKit (compatibility version 45.0.0, current version 2575.20.19)\n\t\/System\/Library\/Frameworks\/ImageIO.framework\/Versions\/A\/ImageIO (compatibility version 1.0.0, current version 1.0.0)\n\t\/System\/Library\/Frameworks\/Metal.framework\/Versions\/A\/Metal (compatibility version 1.0.0, current version 367.4.0)\n\t@rpath\/QtNetwork.framework\/Versions\/A\/QtNetwork (compatibility version 6.0.0, current version 6.8.1)\n\t@rpath\/QtCore.framework\/Versions\/A\/QtCore (compatibility version 6.0.0, current version 6.8.1)\n\t\/System\/Library\/Frameworks\/IOKit.framework\/Versions\/A\/IOKit (compatibility version 1.0.0, current version 275.0.0)\n\t\/System\/Library\/Frameworks\/DiskArbitration.framework\/Versions\/A\/DiskArbitration (compatibility version 1.0.0, current version 1.0.0)\n\t\/System\/Library\/Frameworks\/UniformTypeIdentifiers.framework\/Versions\/A\/UniformTypeIdentifiers (compatibility version 1.0.0, current version 709.0.0)\n\t\/System\/Library\/Frameworks\/AGL.framework\/Versions\/A\/AGL (compatibility version 1.0.0, current version 1.0.0)\n\t\/System\/Library\/Frameworks\/OpenGL.framework\/Versions\/A\/OpenGL (compatibility version 1.0.0, current version 1.0.0)\n\t\/usr\/lib\/libc++.1.dylib (compatibility version 1.0.0, current version 1800.101.0)\n\t\/usr\/lib\/libSystem.B.dylib (compatibility version 1.0.0, current version 1351.0.0)\n<\/code><\/pre>\n<\/div>\n<p>\u4ece RaidenVideoRipper \u4e2d\u7684 Qt \u548c dullahan_ffmpeg \u4f9d\u8d56\u9879\u4e2d\u53ef\u4ee5\u770b\u51fa\u3002 Dullahan FFmpeg \u662f FFmpeg \u7684\u4e00\u4e2a\u5206\u652f\uff0c\u5c06\u5176\u529f\u80fd\u5c01\u88c5\u5728\u52a8\u6001\u5e93\u4e2d\uff0c\u80fd\u591f\u4f7f\u7528 C \u4f8b\u7a0b\u83b7\u53d6\u5f53\u524d\u6267\u884c\u8fdb\u5ea6\u548c\u53d6\u6d88\u3002<br \/>\n\u63a5\u4e0b\u6765\uff0c\u4f7f\u7528 install_name_tool \u66ff\u6362\u5e94\u7528\u7a0b\u5e8f\u548c\u6240\u6709\u5fc5\u9700\u5e93\u7684\u8def\u5f84\u3002<\/p>\n<p>\u6267\u884c\u6b64\u64cd\u4f5c\u7684\u547d\u4ee4\u662f\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"bash\"><code>install_name_tool -change old_path new_path target\n<\/code><\/pre>\n<\/div>\n<p>\u4f7f\u7528\u793a\u4f8b\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"bash\"><code>install_name_tool -change \/usr\/local\/lib\/libavfilter.9.dylib @rpath\/DullahanFFmpeg.framework\/libavfilter.9.dylib dullahan_ffmpeg.a\n<\/code><\/pre>\n<\/div>\n<p>\u8f93\u5165\u6240\u6709\u6b63\u786e\u7684\u8def\u5f84\u540e\uff0c\u5e94\u7528\u7a0b\u5e8f\u5e94\u8be5\u6b63\u786e\u542f\u52a8\u3002\u68c0\u67e5\u5e93\u7684\u6240\u6709\u8def\u5f84\u662f\u5426\u90fd\u662f\u76f8\u5bf9\u7684\uff0c\u4f20\u8f93\u4e8c\u8fdb\u5236\u6587\u4ef6\uff0c\u7136\u540e\u518d\u6b21\u6253\u5f00\u5b83\u3002<br \/>\n\u5982\u679c\u60a8\u770b\u5230\u4efb\u4f55\u9519\u8bef\uff0c\u8bf7\u901a\u8fc7 otool \u68c0\u67e5\u8def\u5f84\u5e76\u901a\u8fc7 install_name_tool \u518d\u6b21\u66f4\u6539\u3002<\/p>\n<p>\u5f53\u60a8\u66ff\u6362\u7684\u5e93\u5728\u8868\u4e2d\u6ca1\u6709\u7b26\u53f7\u65f6\uff0c\u8fd8\u4f1a\u51fa\u73b0\u4f9d\u8d56\u5173\u7cfb\u6df7\u4e71\u7684\u9519\u8bef\uff1b\u60a8\u53ef\u4ee5\u50cf\u8fd9\u6837\u68c0\u67e5\u662f\u5426\u5b58\u5728\u7b26\u53f7\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"bash\"><code>nm -gU path\n<\/code><\/pre>\n<\/div>\n<p>\u6267\u884c\u540e\uff0c\u60a8\u5c06\u770b\u5230\u5e93\u6216\u5e94\u7528\u7a0b\u5e8f\u7684\u6574\u4e2a\u7b26\u53f7\u8868\u3002<br \/>\n\u4e5f\u6709\u53ef\u80fd\u60a8\u590d\u5236\u4e86\u9519\u8bef\u67b6\u6784\u7684\u4f9d\u8d56\u9879\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u6587\u4ef6\u68c0\u67e5\uff1a<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"bash\"><code>file path\n<\/code><\/pre>\n<\/div>\n<p>\u6587\u4ef6\u5b9e\u7528\u7a0b\u5e8f\u5c06\u5411\u60a8\u663e\u793a\u5e93\u6216\u5e94\u7528\u7a0b\u5e8f\u5c5e\u4e8e\u54ea\u4e2a\u4f53\u7cfb\u7ed3\u6784\u3002<\/p>\n<p>\u6b64\u5916\uff0cQt \u9700\u8981 YOUR_APP.app \u76ee\u5f55\u7684 Contents \u6587\u4ef6\u5939\u4e2d\u6709\u4e00\u4e2a Plugins \u6587\u4ef6\u5939\uff0c\u5c06\u63d2\u4ef6\u4ece Qt \u590d\u5236\u5230 Contents\u3002\u63a5\u4e0b\u6765\uff0c\u68c0\u67e5\u5e94\u7528\u7a0b\u5e8f\u7684\u529f\u80fd\uff0c\u4e4b\u540e\u60a8\u53ef\u4ee5\u901a\u8fc7\u4ece\u6b64\u6587\u4ef6\u5939\u4e2d\u5220\u9664\u9879\u76ee\u5e76\u6d4b\u8bd5\u5e94\u7528\u7a0b\u5e8f\u6765\u5f00\u59cb\u4f18\u5316\u63d2\u4ef6\u6587\u4ef6\u5939\u3002<\/p>\n<h2>macOS \u5b89\u5168\u6027<\/h2>\n<p>\u590d\u5236\u6240\u6709\u4f9d\u8d56\u9879\u5e76\u66f4\u6b63\u52a8\u6001\u94fe\u63a5\u7684\u8def\u5f84\u540e\uff0c\u60a8\u9700\u8981\u4f7f\u7528\u5f00\u53d1\u4eba\u5458\u7684\u7b7e\u540d\u5bf9\u5e94\u7528\u7a0b\u5e8f\u8fdb\u884c\u7b7e\u540d\uff0c\u5e76\u5c06\u5e94\u7528\u7a0b\u5e8f\u7248\u672c\u53d1\u9001\u7ed9 Apple \u8fdb\u884c\u516c\u8bc1\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6ca1\u6709 100 \u7f8e\u5143\u7684\u5f00\u53d1\u4eba\u5458\u8bb8\u53ef\u8bc1\u6216\u4e0d\u60f3\u7b7e\u7f72\u4efb\u4f55\u5185\u5bb9\uff0c\u8bf7\u5411\u60a8\u7684\u7528\u6237\u7f16\u5199\u6709\u5173\u5982\u4f55\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f\u7684\u8bf4\u660e\u3002<\/p>\n<p>\u6b64\u6307\u4ee4\u4e5f\u9002\u7528\u4e8e RaidenVideoRipper\uff1a<\/p>\n<ul>\n<li>\u7981\u7528\u7f51\u95f8\uff1aspctl &#8211;master-disable<\/li>\n<li>\u5141\u8bb8\u4ece\u201c\u9690\u79c1\u4e0e\u5b89\u5168\u201d\u4e2d\u7684\u4efb\u4f55\u6765\u6e90\u542f\u52a8\uff1a\u5141\u8bb8\u5e94\u7528\u7a0b\u5e8f\u5207\u6362\u5230\u4efb\u4f55\u5730\u65b9<\/li>\n<li>\u4ece zip \u6216 dmg \u5e94\u7528\u7a0b\u5e8f\u4e0b\u8f7d\u540e\u5220\u9664\u9694\u79bb\u6807\u5fd7\uff1axattr -d com.apple.quarantine app.dmg<\/li>\n<li>\u68c0\u67e5\u9694\u79bb\u6807\u5fd7 (com.apple.quarantine) \u662f\u5426\u4e22\u5931\uff1als -l@ app.dmg\n<li>\u5982\u6709\u5fc5\u8981\uff0c\u8bf7\u5728\u201c\u9690\u79c1\u4e0e\u5b89\u5168\u201d\u4e2d\u6dfb\u52a0\u542f\u52a8\u5e94\u7528\u7a0b\u5e8f\u7684\u786e\u8ba4\u4fe1\u606f<\/li>\n<\/ul>\n<p>\u9694\u79bb\u6807\u5fd7\u7684\u9519\u8bef\u901a\u5e38\u4f1a\u901a\u8fc7\u7528\u6237\u5c4f\u5e55\u4e0a\u51fa\u73b0\u7684\u201c\u5e94\u7528\u7a0b\u5e8f\u5df2\u635f\u574f\u201d\u9519\u8bef\u6765\u91cd\u73b0\u3002\u5728\u8fd9\u79cd\u60c5\u51b5\u4e0b\uff0c\u60a8\u9700\u8981\u4ece\u5143\u6570\u636e\u4e2d\u5220\u9664\u9694\u79bb\u6807\u5fd7\u3002<\/p>\n<p>\u4e3a Apple Silicon \u6784\u5efa RaidenVideoRipper \u7684\u94fe\u63a5\uff1a<br \/>\n<a href=\"https:\/\/github.com\/demensdeum\/RaidenVideoRipper\/releases\/download\/1.0.1.0\/RaidenVideoRipper-1.0.1.0.dmg\" rel=\"noopener\" target=\"_blank\">https:\/\/github.com\/demensdeum\/RaidenVideoRipper\/releases\/download\/1.0.1.0\/RaidenVideoRipper-1.0.1.0.dmg<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4eca\u5929\uff0c\u6211\u53d1\u5e03\u4e86\u9002\u7528\u4e8e\u914d\u5907 macOS \u548c M1\/M2\/M3\/M4 \u5904\u7406\u5668\uff08Apple Silicon\uff09\u7684 Apple \u8bbe\u5907\u7684 RaidenVideoRipper \u7248\u672c\u3002 RaidenVideoRipper \u662f\u4e00\u6b3e\u5feb\u901f\u89c6\u9891\u7f16\u8f91\u5e94\u7528\u7a0b\u5e8f\uff0c\u53ef\u8ba9\u60a8\u5c06\u89c6\u9891\u6587\u4ef6\u7684\u4e00\u90e8\u5206\u526a\u5207\u6210\u65b0\u6587\u4ef6\u3002\u60a8\u8fd8\u53ef\u4ee5\u5236\u4f5c gif \u5e76\u5c06\u97f3\u8f68\u5bfc\u51fa\u4e3a mp3\u3002 \u63a5\u4e0b\u6765\uff0c\u6211\u5c06\u7b80\u8981\u63cf\u8ff0\u6211\u4f7f\u7528\u4e86\u54ea\u4e9b\u547d\u4ee4\u6765\u5b8c\u6210\u6b64\u4efb\u52a1\u3002\u8fd9\u91cc\u53d1\u751f\u7684\u4e8b\u60c5\u7684\u7406\u8bba\uff0c\u5b9e\u7528\u7a0b\u5e8f\u7684\u6587\u6863\uff0c\u53ef\u4ee5\u5728\u4ee5\u4e0b\u94fe\u63a5\u4e2d\u9605\u8bfb\uff1a https:\/\/www.unix.com\/man-page\/osx\/1\/otool\/ https:\/\/www.unix.com\/man-page\/osx\/1\/install_name_tool\/ https:\/\/llvm.org\/docs\/CommandGuide\/llvm-nm.html https:\/\/linux.die.net\/man\/1\/file https:\/\/www.unix.com\/man-page\/osx\/8\/SPCTL\/ https:\/\/linux.die.net\/man\/1\/chmod https:\/\/linux.die.net\/man\/1\/ls https:\/\/man7.org\/linux\/man-pages\/man7\/xattr.7.html https:\/\/doc.qt.io\/qt-6\/macos-deployment.html \u9996\u5148\uff0c\u5728 macOS \u4e0a\u5b89\u88c5 Qt\uff0c\u5e76\u5b89\u88c5 Qt \u684c\u9762\u5f00\u53d1\u73af\u5883\u3002\u4e4b\u540e\uff0c\u4f8b\u5982\u5728 Qt Creator \u4e2d\u7ec4\u88c5\u60a8\u7684\u9879\u76ee\uff0c\u7136\u540e\u6211\u5c06\u63cf\u8ff0\u5728\u5c06\u5e94\u7528\u7a0b\u5e8f\u5206\u53d1\u7ed9\u6700\u7ec8\u7528\u6237\u65f6\u786e\u4fdd\u6b63\u786e\u5904\u7406\u4e0e\u5916\u90e8\u52a8\u6001\u5e93\u7684\u4f9d\u8d56\u5173\u7cfb\u6240\u9700\u7684\u5185\u5bb9\u3002 \u5728\u5e94\u7528\u7a0b\u5e8f\u7684 YOUR_APP.app\/Contents \u6587\u4ef6\u5939\u4e2d\u521b\u5efa Frameworks \u76ee\u5f55\uff0c\u5e76\u5c06\u5916\u90e8\u4f9d\u8d56\u9879\u653e\u5165\u5176\u4e2d\u3002\u4f8b\u5982\uff0cRaidenVideoRipper \u5e94\u7528\u7a0b\u5e8f\u7684\u6846\u67b6\u5982\u4e0b\u6240\u793a\uff1a Frameworks \u251c\u2500\u2500 DullahanFFmpeg.framework \u2502\u00a0\u00a0 \u251c\u2500\u2500 dullahan_ffmpeg.a \u2502\u00a0\u00a0 \u251c\u2500\u2500 libavcodec.60.dylib \u2502\u00a0\u00a0 \u251c\u2500\u2500 libavdevice.60.dylib \u2502\u00a0\u00a0 \u251c\u2500\u2500 libavfilter.9.dylib<a class=\"more-link\" href=\"https:\/\/demensdeum.com\/blog\/zh\/2024\/12\/11\/dynamic-linking-qt-app-macos\/\">Continue reading <span class=\"screen-reader-text\">&#8220;macOS \u4e0a Qt \u5e94\u7528\u7a0b\u5e8f\u7684\u52a8\u6001\u94fe\u63a5&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[49],"tags":[],"class_list":["post-4056","post","type-post","status-publish","format-standard","hentry","category-blog","entry"],"translation":{"provider":"WPGlobus","version":"3.0.2","language":"zh","enabled_languages":["en","ru","zh","de","fr","ja","pt"],"languages":{"en":{"title":true,"content":true,"excerpt":false},"ru":{"title":true,"content":true,"excerpt":false},"zh":{"title":true,"content":true,"excerpt":false},"de":{"title":true,"content":true,"excerpt":false},"fr":{"title":true,"content":true,"excerpt":false},"ja":{"title":true,"content":true,"excerpt":false},"pt":{"title":true,"content":true,"excerpt":false}}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/demensdeum.com\/blog\/zh\/wp-json\/wp\/v2\/posts\/4056","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/demensdeum.com\/blog\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/demensdeum.com\/blog\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/zh\/wp-json\/wp\/v2\/comments?post=4056"}],"version-history":[{"count":7,"href":"https:\/\/demensdeum.com\/blog\/zh\/wp-json\/wp\/v2\/posts\/4056\/revisions"}],"predecessor-version":[{"id":4063,"href":"https:\/\/demensdeum.com\/blog\/zh\/wp-json\/wp\/v2\/posts\/4056\/revisions\/4063"}],"wp:attachment":[{"href":"https:\/\/demensdeum.com\/blog\/zh\/wp-json\/wp\/v2\/media?parent=4056"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/zh\/wp-json\/wp\/v2\/categories?post=4056"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/demensdeum.com\/blog\/zh\/wp-json\/wp\/v2\/tags?post=4056"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}