\u539f\u6587\u5730\u5740\uff1ahttps:\/\/zhanglei.blog.csdn.net\/article\/details\/123221947<\/a><\/p> \n \u5df2\u77e5UniApp\u7684\u63d2\u4ef6\u5f00\u53d1\u65b9\u5f0f\u6709\u4e24\u79cd\uff0c \u7b2c\u4e00\u79cd Xcode Framework\u7684\u65b9\u5f0f\uff0c\u8fd9\u79cd\u65b9\u5f0f\u662f\u5b98\u65b9\u6307\u5b9a\u7684\u65b9\u5f0f\u3002 \u8fd9\u79cd\u65b9\u5f0f\u7684\u4f18\u70b9\u5c31\u662f\u7b80\u5355\u76f4\u63a5\uff0c \u4f46\u4e5f\u6709\u4e0d\u8db3\uff0c\u6bd4\u5982\u5f53\u63d2\u4ef6\u9700\u8981\u5f15\u5165\u4e00\u4e9b\u4e09\u65b9\u5e93\u65f6\uff0c\u64cd\u4f5c\u8d77\u6765\u5c31\u4e0d\u662f\u90a3\u4e48\u65b9\u4fbf\u3002 \u800c\u4f7f\u7528Cocoapods\u5219\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u5f15\u5165\u4e09\u65b9\u5e93\u3002 \u63a5\u4e0b\u6765\uff0c\u672c\u6587\u63a2\u7d22\u4f7f\u7528Cocoapods\u7684\u65b9\u5f0f\u6765\u8fdb\u884cUniApp\u63d2\u4ef6\u5f00\u53d1\u3002<\/p> \n \u63a2\u7d22\u4e4b\u524d\u53ef\u4ee5\u5148\u4e86\u89e3\u4e00\u4e0b\u5b98\u65b9\u63d2\u4ef6\u5f00\u53d1\u7684\u6d41\u7a0b\u53ca\u6b65\u9aa4\uff1a \u5982\u679c\u662f\u9996\u6b21\u4f7f\u7528Cocoapods \uff0c\u5219\u9700\u8981\u5148\u5b89\u88c5cocoapods\u3002\u5177\u4f53\u7684\u5b89\u88c5\u6b65\u9aa4\u975e\u672c\u6587\u91cd\u70b9\uff0c\u53ef\u53c2\u8003\u5982\u4e0b\u6587\u7ae0\uff1a \u4e0b\u8f7d\u5730\u5740<\/a><\/p> \n \u627e\u5230UniApp iOS SDK\u4e0b\u8f7d\u7684\u76ee\u5f55\uff0c\u770b\u4e00\u4e0b\u5b98\u65b9\u63d0\u4f9b\u7684\u76ee\u5f55\u7ed3\u6784 \u6253\u5f00\u201c\u547d\u4ee4\u884c\u201d\u5de5\u5177\uff0c \u6765\u521b\u5efaPodfile \u6587\u4ef6\u6a21\u677f \u914d\u7f6e\u5ffd\u7565Pod\u6240\u6709\u5e93\u7684\u8b66\u544a<\/strong><\/p> \n \u914d\u7f6eworkspace\u540d\u79f0<\/strong><\/p> \n \u5173\u95ed\u6240\u6709pod\u5e93\u7684BITCODE<\/strong><\/p> \n \u5728HBuilder-uniPluginDemo\u76ee\u5f55\u4e0b\u521b\u5efa\u4e00\u4e2a\u81ea\u5b9a\u4e49\u63d2\u4ef6\u76ee\u5f55 \u2018 \u6309\u4e0a\u8ff0\u5f15\u5bfc\u5b8c\u6210\u914d\u7f6e\uff0c\u5728\u5b8c\u6210\u521b\u5efa\u540e\u4f1a\u81ea\u52a8\u6253\u5f00pod \u5de5\u7a0b\uff0c \u76ee\u524d\u7528\u4e0d\u5230\u6b64\u5de5\u7a0b\uff0c\u63a5\u7740\u5173\u95ed\u5373\u53ef<\/p> \n <\/blockquote> \n \u56de\u5230\u76ee\u5f55 HBuilder-uniPluginDemo\u4e0b\uff0c\u627e\u5230 \u5b8c\u6574\u7684Podfile\u6587\u4ef6\u5982\u4e0b\uff1a<\/strong><\/p> \n Podfile\u914d\u7f6e\u5b8c\u6210\u540e\uff0c \u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u5728Podfile\u6240\u5728\u76ee\u5f55\u4e0b\uff0c\u6267\u884c\u547d\u4ee4<\/p> \n \u66f4\u591a\u5185\u5bb9\u8be6\u60c5\uff1a https:\/\/zhanglei.blog.csdn.net\/article\/details\/123221947<\/a><\/p> \n<\/div>","orderid":"0","title":"uniapp ios\u539f\u751f\u63d2\u4ef6\u5f00\u53d1 (framework,cocopods)","smalltitle":"","mid":"0","fname":"iOS","special_id":"0","bak_id":"0","info":"0","hits":"314","pages":"1","comments":"0","posttime":"2023-07-23 13:26:40","list":"1690090000","username":"admin","author":"","copyfrom":"","copyfromurl":"","titlecolor":"","fonttype":"0","titleicon":"0","picurl":"https:\/\/www.cppentry.com\/upload_files\/","ispic":"0","yz":"1","yzer":"","yztime":"0","levels":"0","levelstime":"0","keywords":"uniapp<\/A> ios<\/A> framework<\/A> cocopods<\/A>","jumpurl":"","iframeurl":"","style":"","template":"a:3:{s:4:\"head\";s:0:\"\";s:4:\"foot\";s:0:\"\";s:8:\"bencandy\";s:0:\"\";}","target":"0","ip":"119.59.235.169","lastfid":"0","money":"0","buyuser":"","passwd":"","allowdown":"","allowview":"","editer":"","edittime":"0","begintime":"0","endtime":"0","description":"uniapp ios\u539f\u751f\u63d2\u4ef6\u5f00\u53d1 (framework,cocopods)","lastview":"1714872241","digg_num":"0","digg_time":"0","forbidcomment":"0","ifvote":"0","heart":"","htmlname":"","city_id":"0"},"page":"1"}\u4e00\u3001\u4e86\u89e3UniApp \u63d2\u4ef6\u7684\u5f00\u53d1\u65b9\u5f0f<\/h2> \n
\n
iOS\u63d2\u4ef6\u5f00\u53d1\u6559\u7a0b<\/a><\/p> \n \u4e8c\u3001\u51c6\u5907<\/h2> \n
1.\u5b89\u88c5Cocoapods<\/h3> \n
\u5b89\u88c5Cocoapods\u7684\u6b65\u9aa4<\/a><\/p> \n 2. \u4e0b\u8f7dUniApp iOS SDK<\/h3> \n
\u4e09\u3001\u5c06HBuilder-UniPluginDemo\u8f6c\u6210Cocoapods<\/h2> \n
<\/p> \n podfile\u7684\u521b\u5efa\u53ca\u914d\u7f6e<\/h3> \n
cd<\/code> \u5230
HBuilder-uniPlugin.xcodeprj<\/code> \u5de5\u7a0b\u6240\u5728\u76ee\u5f55\u4e0b, \u5e76\u6267\u884c<\/p> \n
pod init\n<\/code><\/pre> \n
\u6b64\u65f6\u76ee\u5f55\u4e0b\u4f1a\u591a\u51fa\u4e00\u4e2a \u2018Podfile<\/code>\u2019 \u7684\u6587\u4ef6
\u6253\u5f00Podfile<\/code> \u6587\u4ef6, \u914d\u7f6e\u76f8\u5173\u8bbe\u7f6e\u5982\u4e0b \uff1a<\/p> \n
# Uncomment the next line to define a global platform for your project\nplatform :ios, '10.0'\n\n#\u5ffd\u7565pod\u6240\u6709\u5e93\u8b66\u544a\ninhibit_all_warnings!\n\nworkspace 'uniPlugins'\n\n#\u5173\u95ed\u6240\u6709pod\u5e93\u7684BITCODE\npost_install do |installer|\n installer.pods_project.targets.each do |target|\n target.build_configurations.each do |config|\n config.build_settings['ENABLE_BITCODE'] = 'NO'\n end\n end\nend\n\n\ntarget 'HBuilder' do\n # Comment the next line if you don't want to use dynamic frameworks\n use_frameworks!\n \nend\n<\/code><\/pre> \n
inhibit_all_warnings!\n<\/code><\/pre> \n
workspace 'uniPlugins'\n<\/code><\/pre> \n
post_install do |installer|\n installer.pods_project.targets.each do |target|\n target.build_configurations.each do |config|\n config.build_settings['ENABLE_BITCODE'] = 'NO'\n end\n end\nend\n<\/code><\/pre> \n
\u4f7f\u7528pod lib \u521b\u5efa\u63d2\u4ef6\u5de5\u7a0b<\/h3> \n
custom-plugins<\/code>\u2019 \u7528\u6765\u5b58\u653e\u81ea\u5b9a\u4e49\u7684\u63d2\u4ef6\u5de5\u7a0b\uff0c\u76ee\u5f55\u7ed3\u6784\u5982\u4e0b\uff1a
\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\uff0c cd<\/code> \u5230
custom-plugins<\/code>\u76ee\u5f55\u4e0b, \u5e76\u6267\u884c<\/p> \n
pod lib create rz-testplugin\n<\/code><\/pre> \n
\u6309\u56de\u8f66\uff0c\u6267\u884c\u547d\u4ee4\u3002 \u4f1a\u4ecegithub\u4e0a\u52a0\u8f7d\u521b\u5efapod\u5de5\u7a0b\u7684\u6a21\u677f\u3002 \u6a21\u677f\u4e0b\u8f7d\u7ed3\u675f\u540e\uff0c\u4f1a\u51fa\u73b0\u5982\u4e0b\u5f15\u5bfc\uff1a
<\/p> \n \n
Podfile<\/code> \u6587\u4ef6\uff0c\u5e76\u6253\u5f00
\u5c06\u672c\u5730\u65b0\u521b\u5efa\u7684pod\u5de5\u7a0b\u914d\u7f6e\u8fdb\u53bb<\/p> \n target 'HBuilder' do\n # Comment the next line if you don't want to use dynamic frameworks\n use_frameworks!\n \n #\u91cd\u8981\uff1a \u5bfc\u5165\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5e93\n pod 'rz-testplugin', :path =>'.\/custom-plugins\/rz-testplugin'\nend\n<\/code><\/pre> \n
# Uncomment the next line to define a global platform for your project\nplatform :ios, '10.0'\n\n#\u5ffd\u7565pod\u6240\u6709\u5e93\u8b66\u544a\ninhibit_all_warnings!\n\nworkspace 'uniPlugins'\n\n#\u5173\u95ed\u6240\u6709pod\u5e93\u7684BITCODE\npost_install do |installer|\n installer.pods_project.targets.each do |target|\n target.build_configurations.each do |config|\n config.build_settings['ENABLE_BITCODE'] = 'NO'\n end\n end\nend\n\ntarget 'HBuilder' do\n # Comment the next line if you don't want to use dynamic frameworks\n use_frameworks!\n \n #\u91cd\u8981\uff1a \u5bfc\u5165\u81ea\u5b9a\u4e49\u7ec4\u4ef6\u5e93\n pod 'rz-testplugin', :path =>'.\/custom-plugins\/rz-testplugin'\nend\n<\/code><\/pre> \n
pod install \n<\/code><\/pre> \n