{"id":3830,"date":"2016-04-20T15:19:24","date_gmt":"2016-04-20T07:19:24","guid":{"rendered":"http:\/\/blog.qdac.cc\/?p=3830"},"modified":"2016-04-20T15:19:36","modified_gmt":"2016-04-20T07:19:36","slug":"%e8%af%91%e6%95%99%e7%a8%8b%ef%bc%9a%e5%9c%a8-rad-studio-%e4%b8%ad%e5%8f%91%e5%b8%83%e4%bd%a0%e7%9a%84-ios-%e5%ba%94%e7%94%a8","status":"publish","type":"post","link":"https:\/\/blog.qdac.cc\/?p=3830","title":{"rendered":"[\u8bd1]\u6559\u7a0b\uff1a\u5728 RAD Studio \u4e2d\u53d1\u5e03\u4f60\u7684 iOS \u5e94\u7528"},"content":{"rendered":"<p>Before you build your application for distribution on iOS platforms, you must configure several project options of your application.<\/p>\n<p><span style=\"color: #000080;\">\u5728\u4f60\u6784\u5efa\u4f60\u8981\u5728iOS\u5e73\u53f0\u53d1\u5e03\u7684\u5e94\u7528\u4e4b\u524d\uff0c\u4f60\u5fc5\u9700\u4e3a\u4f60\u7684\u5e94\u7528\u914d\u7f6e\u51e0\u4e2a\u5de5\u7a0b\u9009\u9879\u3002<\/span><\/p>\n<p>The properties that you configure are bundled with your application, usually in the form of .plist files. You cannot modify these properties after you build and sign your application. Because these properties provide key information about your application, you should ensure that they contain the right values before you deploy your application, or you might have to rebuild your application in order to change the configured values.<\/p>\n<p><span style=\"color: #000080;\">\u4f60\u4e3a\u4f60\u7684\u5e94\u7528\u914d\u7f6e\u7684\u5c5e\u6027\u901a\u5e38\u7ed1\u5b9a\u5230\u4e00\u4e2a.plist \u6587\u4ef6\u3002\u4f60\u4e0d\u80fd\u5728\u4f60\u6784\u5efa\u5e76\u7b7e\u540d\u4f60\u7684\u5e94\u7528\u4e4b\u540e\u4fee\u6539\u5b83\u4eec\u3002\u56e0\u4e3a\u8fd9\u4e9b\u5c5e\u6027\u63d0\u4f9b\u4e86\u4f60\u5e94\u7528\u7684\u5173\u952e\u4fe1\u606f\uff0c\u4f60\u5e94\u8be5\u786e\u4fdd\u5728\u53d1\u5e03\u4f60\u7684\u5e94\u7528\u4e4b\u524d\u5b83\u4eec\u5305\u542b\u6b63\u786e\u7684\u503c\uff0c\u6216\u8005\u4f60\u53ef\u80fd\u9700\u8981\u91cd\u5efa\u4f60\u7684\u5e94\u7528\u4ee5\u4fbf\u66f4\u6539\u914d\u7f6e\u7684\u503c\u3002<\/span><\/p>\n<p>To configure your iOS app, select Project &gt; Options:<\/p>\n<p><span style=\"color: #000080;\">\u8981\u914d\u7f6e\u4f60\u7684 iOS \u5e94\u7528\uff0c\u9009\u62e9 Project &gt; Options:<\/span><\/p>\n<p>On the Target field of the Project Options dialog box, select an iOS device target platform. As build configuration you may select All configurations.<\/p>\n<p><span style=\"color: #000080;\">\u5728\u5de5\u7a0b\u9009\u9879\u5bf9\u8bdd\u6846\u7684\u76ee\u6807\u5b57\u6bb5\u4e2d\uff0c\u9009\u62e9\u4e00\u4e2a iOS \u8bbe\u5907\u76ee\u6807\u5e73\u53f0\u3002\u4f5c\u4e3a\u6784\u5efa\u914d\u7f6e\uff0c\u4f60\u53ef\u80fd\u9009\u62e9\u5168\u90e8\u914d\u7f6e\u3002<\/span><\/p>\n<p>Notes:<\/p>\n<p><span style=\"color: #000080;\">\u5907\u6ce8\uff1a<\/span><\/p>\n<p>To submit your application to the App Store, you must configure these properties for the iOS Device &#8211; 64 bit target platform. The values of these deployment properties for the iOS Device &#8211; 32 bit target platform have no effect on applications built for the App Store, regardless of whether or not your application supports 32-bit iOS devices. See Deploying Your iOS Application for Submission to the App Store for more information.<\/p>\n<p><span style=\"color: #000080;\">\u8981\u63d0\u4ea4\u4f60\u7684\u5e94\u7528\u5230\u5e94\u7528\u5546\u5e97\uff0c\u4f60\u5fc5\u9700\u914d\u7f6e\u5b83\u4eec\u7684 64 \u4f4d\u76ee\u6807\u5e73\u53f0\u5c5e\u6027\u300232 \u4f4d\u76ee\u6807\u5e73\u53f0\u5bf9\u4e8e\u6784\u5efa\u7528\u4e8e\u5e94\u7528\u5546\u5e97\u7684\u7a0b\u5e8f\u6ca1\u6709\u6548\u679c\uff0c\u4e0d\u8bba\u4f60\u7684\u5e94\u7528\u662f\u5426\u652f\u6301 32 \u4f4d iOS \u8bbe\u5907\u3002\u67e5\u770b\u53d1\u5e03\u4f60\u7684 iOS \u5e94\u7528\u5230\u5e94\u7528\u5546\u7ad9\u6765\u4e86\u89e3\u66f4\u591a\u4fe1\u606f\u3002<\/span><\/p>\n<p>If you want to deploy your application for ad hoc distribution, and you want to build separate binaries for 32-bit and 64-bit iOS devices, you must perform the following steps for both the iOS Device &#8211; 32 bit and iOS Device &#8211; 64 bit target platforms.<\/p>\n<p><span style=\"color: #000080;\">\u5982\u679c\u4f60\u60f3\u8ba9\u4f60\u7684\u5e94\u7528\u505a\u4e3a ad hoc\uff08\u70b9\u5bf9\u70b9\uff09 \u5206\u53d1\uff0c\u5e76\u4e14\u4f60\u60f3\u8981\u4e3a 32 \u4f4d\u548c 64 \u4f4d iOS \u8bbe\u5907\u5206\u522b\u6784\u5efa\uff0c\u4f60\u5fc5\u9700\u5728 iOS Device &#8211; 32\u00a0bit \u00a0\u548c iOS Device &#8211; 64 bit \u4e0a\u6267\u884c\u4e0b\u8ff0\u6b65\u9aa4\uff1a<\/span><\/p>\n<ul>\n<li>On the Application page, provide the icons and images to represent your application.<br \/>\n<span style=\"color: #000080;\">\u5728\u00a0Application\u00a0\u9875\uff0c\u63d0\u4f9b\u56fe\u7247\u548c\u56fe\u7247\u6765\u6807\u5fd7\u4f60\u7684\u5e94\u7528\u3002<\/span><\/li>\n<li>On the Entitlement List page, assign the entitlements (system access rights) that you want for your application.<br \/>\n<span style=\"color: #000080;\">\u5728\u00a0Entitlement List \u9875\uff0c\u6307\u5b9a\u4f60\u5e0c\u671b\u4f60\u7684\u5e94\u7528\u9700\u8981\u7684\u6388\u6743\uff08\u7cfb\u7edf\u8bbf\u95ee\u6743\u9650\uff09<\/span><\/li>\n<li>On the Version Info page, define key-value pairs to include in the info.plist file of your application. For example:<br \/>\nCFBundleIdentifier is a unique identifier for your application.<br \/>\n<span style=\"color: #000080;\">\u5728 Version Info \u9875\uff0c\u5b9a\u4e49\u7528\u4e8e\u4f60\u5e94\u7528 info.plist \u6587\u4ef6\u7684\u952e\u503c\u5bf9\u3002\u4f8b\u5982\uff1aCFBundleIdentifier \u662f\u4e00\u4e2a\u7528\u4e8e\u552f\u4e00\u533a\u5206\u4f60\u5e94\u7528\u7684\u6807\u8bb0\u3002<\/span><br \/>\nYou should already have an App ID for your application. You should provide here the second part of your app ID, the bundle ID. For example: com.mycompany.myapp.<br \/>\n<span style=\"color: #000080;\">\u4f60\u7684\u5e94\u7528\u5e94\u8be5\u5df2\u7ecf\u62e5\u6709\u4e00\u4e2aApp ID\u3002\u4f60\u5e94\u8be5\u5728\u8fd9\u91cc\u63d0\u4f9b\u4f60\u7684\u5e94\u7528\u7a0b\u5e8f\u6807\u8bc6\u7684\u7b2c\u4e8c\u90e8\u5206\uff0c\u8be5\u5305\u7684\u6807\u8bc6\u3002\u4f8b\u5982\uff1acom.mycompany.myapp\u3002<\/span><br \/>\nCFBundleVersion is the version of your application. For example: 1.0.0.<br \/>\n<span style=\"color: #000080;\">CFBundleVersion \u662f\u4f60\u5e94\u7528\u7684\u7248\u672c\u53f7\u3002\u4f8b\u5982\uff1a1.0.0\u3002<\/span><br \/>\nUIDeviceFamily determines the type of iOS devices that your application supports:<br \/>\n<span style=\"color: #000080;\">UIDeviceFamily \u51b3\u5b9a\u4f60\u5e94\u7528\u652f\u6301\u7684 iOS \u8bbe\u5907\u7c7b\u578b\uff1a<\/span><br \/>\niPhone<br \/>\niPad<br \/>\niPhone and iPad<br \/>\nIf you need to customize your info.plist file, see Customizing Your info.plist File.<br \/>\n<span style=\"color: #000080;\">\u5982\u679c\u4f60\u60f3\u81ea\u5b9a\u4e49\u4f60\u7684 info.plist \u6587\u4ef6\uff0c\u67e5\u770b\uff1a\u81ea\u5b9a\u4e49\u4f60\u7684 info.plist \u6587\u4ef6\u3002<\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Before you build you [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[69,8,602,603],"tags":[],"class_list":["post-3830","post","type-post","status-publish","format-standard","hentry","category-c-builder","category-delphi","category-ios","category-603"],"views":3101,"_links":{"self":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3830","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3830"}],"version-history":[{"count":1,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3830\/revisions"}],"predecessor-version":[{"id":3831,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=\/wp\/v2\/posts\/3830\/revisions\/3831"}],"wp:attachment":[{"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3830"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3830"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.qdac.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3830"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}