<small id='9P0rW'></small><noframes id='9P0rW'>

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

      1. 具有静态框架子依赖项的 XCFramework

        时间:2023-05-18
        • <legend id='4mob2'><style id='4mob2'><dir id='4mob2'><q id='4mob2'></q></dir></style></legend>

              <tbody id='4mob2'></tbody>
              • <bdo id='4mob2'></bdo><ul id='4mob2'></ul>
                  <tfoot id='4mob2'></tfoot>

                  <small id='4mob2'></small><noframes id='4mob2'>

                • <i id='4mob2'><tr id='4mob2'><dt id='4mob2'><q id='4mob2'><span id='4mob2'><b id='4mob2'><form id='4mob2'><ins id='4mob2'></ins><ul id='4mob2'></ul><sub id='4mob2'></sub></form><legend id='4mob2'></legend><bdo id='4mob2'><pre id='4mob2'><center id='4mob2'></center></pre></bdo></b><th id='4mob2'></th></span></q></dt></tr></i><div id='4mob2'><tfoot id='4mob2'></tfoot><dl id='4mob2'><fieldset id='4mob2'></fieldset></dl></div>
                • 本文介绍了具有静态框架子依赖项的 XCFramework的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  限时送ChatGPT账号..

                  我有一个依赖于几个静态框架的 XCFramework.

                  I have a XCFramework which depends upon several static frameworks.

                  我的 XCFramework 是在启用 BUILD_FOR_LIBRARIES_FOR_DISTRIBUTION 的情况下构建的.

                  My XCFramework is built with BUILD_FOR_LIBRARIES_FOR_DISTRIBUTION enabled.

                  不需要从 XCFramework 外部访问子框架.

                  The sub frameworks don't need to be accessible from outside the XCFramework.

                  当我尝试在客户端(主机)应用程序中编译我的 XCFramework 时,我在 XCFramework 的 .swiftinterface 文件中出现错误提示 No such module 'FBSDKLoginKit'(FBSDKLoginKit 是 XCFramework 之一子框架)

                  When I try to compile my XCFramework in the client(host) app, I am getting en error in the XCFramework's .swiftinterface file saying No such module 'FBSDKLoginKit' (FBSDKLoginKit is one of the XCFramework sub frameworks)

                  似乎缺少的是依赖模块的 swiftinterface 文件.例如,我使用的是 FBSDKLoginKit,但 XCFramework 中没有 swiftinterface.

                  What seems to be missing is the swiftinterface files for the dependent modules. For example, I am using FBSDKLoginKit but the swiftinterface is not there within the XCFramework.

                  作为参考,我正在编译框架如下:

                  For reference I'm compiling the the framework as follows:

                  xcodebuild archive -project "TestFrameowrk.xcodeproj" -scheme "TestFrameowrk" -sdk iphoneos -archivePath ~/Desktop/xcframework.arm SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
                  
                  xcodebuild archive -project "TestFrameowrk.xcodeproj" -scheme "TestFrameowrk" -sdk iphonesimulator -archivePath ~/Desktop/xcframework.x86 SKIP_INSTALL=NO BUILD_LIBRARY_FOR_DISTRIBUTION=YES
                  
                  xcodebuild -create-xcframework -framework ~/Desktop/xcframework.x86.xcarchive/Products/Library/Frameworks/TestFrameowrk.framework  -framework ~/Desktop/xcframework.arm.xcarchive/Products/Library/Frameworks/TestFrameowrk.framework -output ~/Desktop/Framework.xcframework
                  

                  推荐答案

                  是的,我在 alamofire 依赖项中遇到了同样的问题.所以发生的事情是当你生成 xcframeworks 时,你对 FBSDKLoginKit 有依赖关系.但是在生成您的客户想要使用的框架之后.您还必须提到具有相同版本的 FBSDKLoginKit 的依赖关系,然后这个问题就不会发生.对我来说,我在客户端添加 alamofire 添加后解决了.

                  Yes I had same issue happening with alamofire dependency . so what happening is when you generate xcframeworks you have dependency with FBSDKLoginKit fine . But after generating frameworks your client want to use .you also have to mention dependency as FBSDKLoginKit with same version then this problem not happen . For me I solves after adding alamofire adding in client side.

                  这篇关于具有静态框架子依赖项的 XCFramework的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:将纯 Swift 自定义框架导入其他 Swift 项目 下一篇:ios中的框架包含内部的静态或动态库

                  相关文章

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

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