<tfoot id='Omi0T'></tfoot>

      <small id='Omi0T'></small><noframes id='Omi0T'>

        <legend id='Omi0T'><style id='Omi0T'><dir id='Omi0T'><q id='Omi0T'></q></dir></style></legend>
        • <bdo id='Omi0T'></bdo><ul id='Omi0T'></ul>
      1. <i id='Omi0T'><tr id='Omi0T'><dt id='Omi0T'><q id='Omi0T'><span id='Omi0T'><b id='Omi0T'><form id='Omi0T'><ins id='Omi0T'></ins><ul id='Omi0T'></ul><sub id='Omi0T'></sub></form><legend id='Omi0T'></legend><bdo id='Omi0T'><pre id='Omi0T'><center id='Omi0T'></center></pre></bdo></b><th id='Omi0T'></th></span></q></dt></tr></i><div id='Omi0T'><tfoot id='Omi0T'></tfoot><dl id='Omi0T'><fieldset id='Omi0T'></fieldset></dl></div>

        安装带有 iPhone SDK 4 的 Xcode 3.2.3,得到“缺少基本 SDK",看不到其他 SDK

        时间:2023-10-03
      2. <small id='9bbck'></small><noframes id='9bbck'>

      3. <i id='9bbck'><tr id='9bbck'><dt id='9bbck'><q id='9bbck'><span id='9bbck'><b id='9bbck'><form id='9bbck'><ins id='9bbck'></ins><ul id='9bbck'></ul><sub id='9bbck'></sub></form><legend id='9bbck'></legend><bdo id='9bbck'><pre id='9bbck'><center id='9bbck'></center></pre></bdo></b><th id='9bbck'></th></span></q></dt></tr></i><div id='9bbck'><tfoot id='9bbck'></tfoot><dl id='9bbck'><fieldset id='9bbck'></fieldset></dl></div>
          <bdo id='9bbck'></bdo><ul id='9bbck'></ul>

          <legend id='9bbck'><style id='9bbck'><dir id='9bbck'><q id='9bbck'></q></dir></style></legend>
              <tbody id='9bbck'></tbody>
                • <tfoot id='9bbck'></tfoot>
                  本文介绍了安装带有 iPhone SDK 4 的 Xcode 3.2.3,得到“缺少基本 SDK",看不到其他 SDK的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我创建了这个社区 wiki 来将许多我在这里看到的其他问答.如果你在这里,你可能已经使用 iPhone SDK 4 安装了 Xcode 3.2.3 的最终版本 (这个问题.

                  如果您对 Xcode 3.2.4 升级特别感兴趣,它有一个密切相关的问题,您可能想授予 的 回答)

                  附录

                  有关此主题的更多详细信息也可以在此问题的第一个答案中找到.这里还有一些有用的信息.

                  I created this community wiki to bind together a number of other Q/A's I've seen here on SO. If you're here, you've probably installed the final version of Xcode 3.2.3 with iPhone SDK 4 (download link, reg reqd), and then encountered one or both of these problems:

                  • In your previously working Xcode iPhone project, you get "Base SDK Missing" somewhere. Something like this:

                  • In a related but more general observation, none of the previously available panoply of Device or Simulator SDK choices (e.g. 3.0, 3.1, 3.1.3, ...) is available where you used to see them.

                  解决方案

                  Overview

                  I'm going to explain why this is going on, and then how fix the specific "Base SDK Missing" problem. You can skip to the bottom for just the fix, though I recommend reading all of this. I also recommend John Muchow's excellent take on this issue.

                  If you are specifically interested in the Xcode 3.2.4 upgrade, which has a strongly related problem, you might want to confer here.

                  One SDK to rule them all

                  Here's the deal: 4.0 is now the only SDK version allowed for submitting new or updated iPhone-only apps. This is direct from Apple's iOS 4 Readiness Checklist (reg reqd):

                  All new applications and updates to existing applications must be built with iPhone SDK 4. Please note, the App Store will no longer support applications that target iOS 2.x.

                  Presumably -- I'm guessing here -- iPad-only and universal apps should use the 3.2 SDK. That is why 4.0 & 3.2 are your only choices for SDKs.

                  That is also why your project is now broken, since the SDK it was previously mapped to is deprecated, gones-ville.

                  (But) 3 is a magic number

                  Relax. You can still target devices running iPhone OS 3.0 (but not lower). The SDK you use to compile does not limit -- downward -- what iOS version you can program to or support. Once you've patched things up in your project etc. (cf. next section) you can set "iPhone OS Deployment Target" to a lower iOS version. For a quick shot of how to do this, cf. step 7 in the next section.

                  Note that you are now entering some tricky terrain. Your usual Xcode 3.2.3 compiler will no longer be enforcing your compliance to 3.0-only calls, nor does it have a simulator for these. And if you want to support 4.0 features, you'll have to do some conditional code to prevent crashes on 3.0 devices. Fun.

                  You can still download (from Apple!) and install a previous Xcode version or SDK (cf. here). Yes, you can install multiple Xcode versions, in different directories, i.e. put only one version in /Developer. You can use the old Xcode to test your app's compliance vs. a 3.x SDK, moving the hard work to a fancy compiler, and simulator. But you can no longer use the products of the previous SDKs to submit to the app store.

                  FWIW, I plan on doing just this check before I ship.

                  What condition my condition is in

                  Matt Gallagher has a Cocoa with Love post on version conditional code entitled "Tips & Tricks for conditional iOS3, iOS3.2 and iOS4 code". If you are planning on conditionally using 4.0 features, this is a strong recommendation to check it out.

                  Fixing "Base SDK Missing"

                  1. Load your project
                  2. From the menu, select Project > Edit Project Settings...
                  3. Under Architecture > Base SDK, choose one of the available device options: iPhone 3.2 or iPhone 4.0. If you are iPhone-only, 4.0 is the way to go.
                  4. Close that window.
                  5. From the menu, select Project > Edit Active Target "YourTarget"
                  6. Under Architecture > Base SDK, choose one of the available device or simulator options: iPhone 3.2 or iPhone 4.0.
                  7. If you want to target previous iOS versions, then in that same window, under Deployment > iPhone OS Deployment Target, select the lowest version you want to support. Note that support for 2.x versions through the app store is deprecated. See the "Readiness Checklist" quote above.

                  Base SDK location for Xcode 4 and above

                  Follow the steps above, but for Step #2, click the following:

                  • Select the Project navigator using folder icon on the left of the navigator sidebar
                  • Select the Project, which will be at the top of that view.
                  • The project configuration will appear in the main editor panel; select "Build Settings" at the top and below will be the 'Architecture' section.

                                 

                  (This answer is a slightly-adapted version of Sherman Lo's answer )

                  Addendum

                  More detailed information on this topic can also be found in the first answer to this question. There's also some useful info here.

                  这篇关于安装带有 iPhone SDK 4 的 Xcode 3.2.3,得到“缺少基本 SDK",看不到其他 SDK的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:我们如何以编程方式检测设备在哪个 iOS 版本上运行? 下一篇:为 iOS 应用程序中的 Facebook 身份验证设计,该应用程序还访问安全的 Web 服务

                  相关文章

                  <legend id='8lodn'><style id='8lodn'><dir id='8lodn'><q id='8lodn'></q></dir></style></legend>

                  <tfoot id='8lodn'></tfoot>

                    • <bdo id='8lodn'></bdo><ul id='8lodn'></ul>
                    <i id='8lodn'><tr id='8lodn'><dt id='8lodn'><q id='8lodn'><span id='8lodn'><b id='8lodn'><form id='8lodn'><ins id='8lodn'></ins><ul id='8lodn'></ul><sub id='8lodn'></sub></form><legend id='8lodn'></legend><bdo id='8lodn'><pre id='8lodn'><center id='8lodn'></center></pre></bdo></b><th id='8lodn'></th></span></q></dt></tr></i><div id='8lodn'><tfoot id='8lodn'></tfoot><dl id='8lodn'><fieldset id='8lodn'></fieldset></dl></div>

                  1. <small id='8lodn'></small><noframes id='8lodn'>