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

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

      <tfoot id='ckqqp'></tfoot>

      CocoaPod 将 Objective-C 框架导入 Swift 项目时,桥接头中出现“找不到文件"

      时间:2023-05-19

            <tbody id='k5j1h'></tbody>

            <bdo id='k5j1h'></bdo><ul id='k5j1h'></ul>

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

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

              2. 本文介绍了CocoaPod 将 Objective-C 框架导入 Swift 项目时,桥接头中出现“找不到文件"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                问题描述

                限时送ChatGPT账号..

                我有一个 swift 项目,并使用 CocoaPod 导入第三方存储库.在 pod 文件中,我使用 use_frameworks!,因此存储库将构建到框架中使用.我在桥接头中导入了像 #import ""#import <> 这样的 ObjC 框架.
                在这种情况下,我运行该项目,它可以工作.但是当我存档时,在桥接头文件中找到找不到文件".

                I got a swift project ,and use CocoaPod to import the third part repositories. In pod file I use use_frameworks!, so the repositories will build into framework to use. And I import the ObjC framework like #import "" or #import <> in my Bridging Header.
                In this situation, I run the project, it works. but When I archive, "file not found" is found in Bridging Header file.

                `BridgingHeader.h:5:9: error: 'RESideMenu/RESideMenu.h>' file not found 
                #import <RESideMenu/RESideMenu.h>
                <unknown>:0: error: failed to import bridging header 'xxx-Bridging-Header'`  
                

                `failed to import bridging header '/Users/xxx/Documents/xxxProjectName/xxxProjectName/xxxProjectName-Bridging-Header.h'`
                

                我该如何解决这个问题?

                How can i solve the problem?

                推荐答案

                我的解决方案是:
                不要在桥接头文件中导入ObjC框架,只需在需要框架的文件中导入框架即可.就像:
                导入xxxframework

                这篇关于CocoaPod 将 Objective-C 框架导入 Swift 项目时,桥接头中出现“找不到文件"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                上一篇:每个框架内的 module.modulemap 文件中的 export * 是什么? 下一篇:“请勿嵌入"、“嵌入"签名"、“不带签名嵌入".这些是什么?.他们做什么?

                相关文章

                <tfoot id='NDyrH'></tfoot>

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

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

                      <bdo id='NDyrH'></bdo><ul id='NDyrH'></ul>

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