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

  1. <legend id='GgXXN'><style id='GgXXN'><dir id='GgXXN'><q id='GgXXN'></q></dir></style></legend>
    <tfoot id='GgXXN'></tfoot>

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

    1. 如何在为设备而不是 iOS 模拟器构建时只包含一个框架?

      How to only include a framework when building for device, not iOS Simulator?(如何在为设备而不是 iOS 模拟器构建时只包含一个框架?)

      <tfoot id='YPC6I'></tfoot>

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

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

          <legend id='YPC6I'><style id='YPC6I'><dir id='YPC6I'><q id='YPC6I'></q></dir></style></legend>
            <bdo id='YPC6I'></bdo><ul id='YPC6I'></ul>
              1. 本文介绍了如何在为设备而不是 iOS 模拟器构建时只包含一个框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                我们使用的第三方推送通知框架尚未针对 x86_64 进行编译,这意味着每当我们为模拟器构建时,都会收到构建警告.由于我们试图将警告视为错误,因此这是行不通的.

                We’re using a third-party push notification framework which has not been compiled for x86_64, which means that whenever we build for the simulator, we get a build warning. Since we’re trying to treat warnings as errors, this won’t do.

                我只想在设备上构建时包含这个框架.然后我只会编译在设备上使用它的代码.

                I’d like to only include this framework when building on devices. I’ll then only compile the code that uses it on devices too.

                可以实现吗?

                推荐答案

                1. Build Phases > Link Binary With Libraries
                2. 中让你的框架可选不是必需
                3. Build Settings > Linking 中的Other Linker Flags"中为选项 Any iOS Simulator SDK 创建调试标志并添加值 -ObjC -weak_framework YourFrameworkName.
                4. 并在代码中检查像这样的构建目标 #if TARGET_IPHONE_SIMULATOR.
                1. Make your framework optional not required in Build Phases > Link Binary With Libraries
                2. In Build Settings > Linking in "Other Linker Flags" create Debug flag for option Any iOS Simulator SDK and add value -ObjC -weak_framework YourFrameworkName.
                3. And in code check for build target like this #if TARGET_IPHONE_SIMULATOR.

                这篇关于如何在为设备而不是 iOS 模拟器构建时只包含一个框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                相关文档推荐

                iOS 6 rotations: supportedInterfaceOrientations doesn#180;t work?(iOS 6 旋转:supportedInterfaceOrientations 不起作用?)
                CABasicAnimation rotate returns to original position(CABasicAnimation 旋转返回原始位置)
                UITabBarController Rotation Issues in ios 6(ios 6 中的 UITabBarController 旋转问题)
                iOS: How to run a function after Device has Rotated (Swift)(iOS:设备旋转后如何运行函数(Swift))
                How to rotate an image 90 degrees on iOS?(如何在 iOS 上将图像旋转 90 度?)
                iOS 8 Rotation Methods Deprecation - Backwards Compatibility(iOS 8 旋转方法弃用 - 向后兼容性)

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

                <legend id='mJ4bv'><style id='mJ4bv'><dir id='mJ4bv'><q id='mJ4bv'></q></dir></style></legend>

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