{"id":20670,"date":"2024-04-07T12:32:57","date_gmt":"2024-04-07T04:32:57","guid":{"rendered":"https:\/\/www.yimenyun.cn\/emen\/?p=20670"},"modified":"2024-04-07T12:32:57","modified_gmt":"2024-04-07T04:32:57","slug":"ios%e4%b8%8a%e6%89%93%e5%8c%85deb%e5%a6%82%e4%bd%95%e5%ae%9e%e7%8e%b0%e7%9a%84%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.yimenyun.cn\/emen\/20670\/","title":{"rendered":"ios\u4e0a\u6253\u5305deb\u5982\u4f55\u5b9e\u73b0\u7684\uff1f"},"content":{"rendered":"

iOS\u4e0a\u6253\u5305deb\u6587\u4ef6\u7684\u8fc7\u7a0b\u5b9e\u9645\u4e0a\u662f\u5c06\u5e94\u7528\u7a0b\u5e8f\u7684\u6e90\u4ee3\u7801\u548c\u8d44\u6e90<\/p>\n

<\/figure>\n<\/p>\n

\u6587\u4ef6\u6253\u5305\u6210\u4e00\u4e2a.deb\u6587\u4ef6\uff0c\u7136\u540e\u53ef\u4ee5\u901a\u8fc7Cydia\u7b49\u5de5\u5177\u5b89\u88c5\u5728\u8d8a\u72f1\u8bbe\u5907\u4e0a\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecdiOS\u4e0a\u6253\u5305deb\u7684\u5177\u4f53\u6b65\u9aa4\u3002<\/p>\n

1. \u51c6\u5907\u73af\u5883<\/p>\n

\u9996\u5148\uff0c\u6211\u4eec\u9700\u8981\u5728\u7535\u8111\u4e0a\u5b89\u88c5\u597diOS\u5f00\u53d1\u73af\u5883\uff0c\u5305\u62ecXcode\u3001iOS SDK\u548c\u76f8\u5173\u7684\u547d\u4ee4\u884c\u5de5\u5177\u3002<\/p>\n

2. \u521b\u5efa\u5de5\u7a0b<\/p>\n

\u4f7f\u7528Xcode\u521b\u5efa\u4e00\u4e2a\u65b0\u7684iOS\u9879\u76ee\uff0c\u4e5f\u53ef\u4ee5\u4f7f\u7528\u5df2\u6709\u7684\u9879\u76ee\u3002<\/p>\n

3. \u8bbe\u7f6e\u6253\u5305\u914d\u7f6e<\/p>\n

\u9009\u62e9\u9879\u76ee\u7684Target\uff0c\u5728Build Settings\u4e2d\uff0c\u627e\u5230”Code Signing Identity”\u548c”Provisioning Profile”\uff0c\u9009\u62e9\u5bf9\u5e94\u7684\u5f00\u53d1\u8005\u8bc1\u4e66\u548c\u914d\u7f6e\u6587\u4ef6\u3002<\/p>\n

4. \u7f16\u8bd1\u9879\u76ee<\/p>\n

\u5728Xcode\u4e2d\u9009\u62e9”Build”\uff0c\u6216\u8005\u4f7f\u7528\u547d\u4ee4\u884c\u5de5\u5177\u6267\u884c”xcodebuild”\u547d\u4ee4\u6765\u7f16\u8bd1\u9879\u76ee\u3002\u786e\u4fdd\u9879\u76ee\u80fd\u591f\u7f16\u8bd1\u901a\u8fc7\u3002<\/p>\n

5. \u6784\u5efadeb\u6587\u4ef6<\/p>\n

iOS\u4e0a\u7684.deb\u6587\u4ef6\u5176\u5b9e\u662f\u4e00\u4e2a\u538b\u7f29\u5305\uff0c\u91cc\u9762\u5305\u542b\u4e86\u5e94\u7528\u7a0b\u5e8f\u7684\u6240\u6709\u6587\u4ef6\u3002\u6211\u4eec\u53ef\u4ee5\u4f7f\u7528dpkg-deb\u5de5\u5177\u5c06\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210.deb\u6587\u4ef6\u3002<\/p>\n

\u9996\u5148\uff0c\u5728\u7ec8\u7aef\u4e2d\u8fdb\u5165\u9879\u76ee\u7684\u76ee\u5f55\u3002\u7136ipad\u5982\u4f55\u6253\u5305ios<\/a>\u540e\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u521b\u5efa\u4e00\u4e2a\u4e34\u65f6\u76ee\u5f55\u6765\u5b58\u653edeb\u6587\u4ef6\u7684\u5185\u5bb9\uff1a<\/p>\n

“`<\/p>\n

mkdir temp<\/p>\n

“`<\/p>\n

\u8fdb\u5165\u5230temp\u76ee\u5f55\uff0c\u5e76\u521b\u5efaDEBIAN\u76ee\u5f55\u548c\u63a7\u5236\u6587\u4ef6\uff1a<\/p>\n

“`<\/p>\n

cd temp<\/p>\n

mkdir DEBIAN<\/p>\n

touch DEBIAN\/control<\/p>\n

“`<\/p>\n

\u7f16\u8f91\u63a7\u5236\u6587\u4ef6\uff0c\u586b\u5199\u5e94\u7528\u7a0b\u5e8f\u7684\u4fe1\u606f\uff1a<\/p>\n

“`<\/p>\n

nano DEBIAN\/control<\/p>\n

“`<\/p>\n

\u5728\u63a7\u5236\u6587\u4ef6\u4e2d\uff0c\u53ef\u4ee5\u586b\u5199\u4e00\u4e9b\u57fa\u672c\u7684\u4fe1\u606f\uff0c\u4f8b\u5982\u5e94\u7528\u7a0b\u5e8f\u7684\u540d\u79f0\u3001\u7248\u672c\u3001\u4f5c\u8005\u3001\u63cf\u8ff0\u7b49\u3002<\/p>\n

“`<\/p>\n

Package: com.examplios\u6253\u5305\u8bc1\u4e66\u8d2d\u4e70<\/a>e.app<\/p>\n

Name: MyApp<\/p>\n

Version: 1.0<\/p>\n

Architecture: iphoneos-arm<\/p>\n

Maintainer: Your Name<\/p>\n

Depends: mobilesubstrate<\/p>\n

Section: System<\/p>\n

Description: A short description of your app<\/p>\n

Homepage: http:\/\/www.example.com<\/p>\n

“`<\/p>\n

\u4fdd\u5b58\u5e76\u9000\u51fa\u63a7\u5236\u6587\u4ef6\u3002<\/p>\n

\u56de\u5230\u9879\u76ee\u7684\u76ee\u5f55\uff0c\u5c06\u7f16\u8bd1\u540e\u7684\u5e94\u7528\u7a0b\u5e8f\u590d\u5236\u5230temp\u76ee\u5f55\uff1a<\/p>\n

“`<\/p>\n

cd ..<\/p>\n

cp -R build\/Release-iphoneos\/MyApp.app temp\/<\/p>\n

“`<\/p>\n

\u6700\u540e\uff0c\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u521b\u5efa.deb\u6587\u4ef6\uff1a<\/p>\n

“`<\/p>\n

dpkg-deb -b temp MyApp.deb<\/p>\n

“`<\/p>\n

.deb\u6587\u4ef6\u5c06\u4f1a\u4fdd\u5b58\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\u3002<\/p>\n

6. \u5b89\u88c5deb\u6587\u4ef6<\/p>\n

\u5c06.deb\u6587\u4ef6\u4f20\u8f93\u5230\u8d8a\u72f1\u8bbe\u5907\u4e0a\uff0c\u53ef\u4ee5\u4f7f\u7528iFunBox\u7b49\u5de5\u5177\u6216\u8005\u901a\u8fc7SSH\u4f20\u8f93\u3002\u7136\u540e\u4f7f\u7528Cydia\u7b49\u5de5\u5177\u5b89\u88c5.deb\u6587\u4ef6\u5373\u53ef\u3002<\/p>\n

\u9700\u8981\u6ce8\u610f\u7684\u662f\uff0ciOS\u4e0a\u6253\u5305\u7684.deb\u6587\u4ef6\u9700\u8981\u5728\u8d8a\u72f1\u8bbe\u5907\u4e0a\u5b89\u88c5\uff0c\u800c\u4e14\u53ea\u80fd\u5728\u8d8a\u72f1\u8bbe\u5907\u4e0a\u4f7f\u7528\uff0c\u4e0d\u80fd\u5728\u975e\u8d8a\u72f1\u8bbe\u5907\u4e0a\u4f7f\u7528\u3002<\/p>\n

\u603b\u7ed3\uff1a<\/p>\n

\u4ee5\u4e0a\u5c31\u662f\u5728iOS\u4e0a\u6253\u5305deb\u6587\u4ef6\u7684\u539f\u7406\u548c\u8be6\u7ec6\u4ecb\u7ecd\uff0c\u901a\u8fc7\u4e0a\u8ff0\u6b65\u9aa4\uff0c\u6211\u4eec\u53ef\u4ee5\u5c06iOS\u5e94\u7528\u7a0b\u5e8f\u6253\u5305\u6210.deb\u6587\u4ef6\uff0c\u5e76\u5728\u8d8a\u72f1\u8bbe\u5907\u4e0a\u5b89\u88c5\u548c\u4f7f\u7528\u3002\u8fd9\u5bf9\u4e8e\u5f00\u53d1\u8005\u6765\u8bf4\u975e\u5e38\u6709\u7528\uff0c\u53ef\u4ee5\u65b9\u4fbf\u5730\u5728\u8d8a\u72f1\u8bbe\u5907\u4e0a\u6d4b\u8bd5\u548c\u4f7f\u7528\u81ea\u5df1\u7684\u5e94\u7528\u7a0b\u5e8f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

iOS\u4e0a\u6253\u5305deb\u6587\u4ef6\u7684\u8fc7\u7a0b\u5b9e\u9645\u4e0a\u662f\u5c06\u5e94\u7528\u7a0b\u5e8f\u7684\u6e90\u4ee3\u7801\u548c\u8d44\u6e90\u6587\u4ef6\u6253\u5305\u6210\u4e00\u4e2a.deb\u6587\u4ef6\uff0c\u7136\u540e\u53ef\u4ee5\u901a\u8fc7Cydia\u7b49\u5de5\u5177\u5b89\u88c5\u5728\u8d8a\u72f1\u8bbe\u5907\u4e0a\u3002\u4e0b\u9762\u5c06\u8be6\u7ec6\u4ecb\u7ecdiOS\u4e0a\u6253\u5305deb\u7684\u5177\u4f53\u6b65\u9aa4\u30021. \u51c6\u5907\u73af\u5883\u9996\u5148\uff0c<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[8832,22082,12,16,23],"topic":[],"class_list":["post-20670","post","type-post","status-publish","format-standard","hentry","category-appkf","tag-iosipa","tag-iosapp","tag-12","tag-16","tag-23"],"_links":{"self":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/20670","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/comments?post=20670"}],"version-history":[{"count":1,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/20670\/revisions"}],"predecessor-version":[{"id":20739,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/posts\/20670\/revisions\/20739"}],"wp:attachment":[{"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/media?parent=20670"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/categories?post=20670"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/tags?post=20670"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.yimenyun.cn\/emen\/wp-json\/wp\/v2\/topic?post=20670"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}