gpt4 book ai didi

ios - 自从更新到 cocoa pods 到 use_frameworks 后无法调试我的 iOS 项目!对于 swift

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:35:16 24 4
gpt4 key购买 nike

在 cocoapods 0.38.0 之后,我将我的项目更新为 use_frameworks! 以便我可以使用 Swift 模块。

现在每当我尝试通过 lldb 进行调试时,我都会收到以下错误:

error: Error in auto-import:
failed to get module 'my-app-name' from AST context:
<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Path/To/Project/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-umbrella.h"
^
/Path/To/Project/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-umbrella.h:6:9: note: in file included from /Path/To/Project/Pods/Target Support Files/FBSDKCoreKit/FBSDKCoreKit-umbrella.h:6:
#import "FBSDKAppLinkResolver.h"
^
/Path/To/Project/Pods/FBSDKCoreKit/FBSDKCoreKit/FBSDKCoreKit/FBSDKAppLinkResolver.h:26:10: error: include of non-modular header inside framework module 'FBSDKCoreKit.FBSDKAppLinkResolver'
# import <Bolts/BFAppLinkResolving.h>
^
could not build Objective-C module 'FBSDKCoreKit'<module-includes>:1:9: note: in file included from <module-includes>:1:
#import "/Path/To/Project/Pods/Target Support Files/FBSDKLoginKit/FBSDKLoginKit-umbrella.h"
^
/Path/To/Project/Pods/Target Support Files/FBSDKLoginKit/FBSDKLoginKit-umbrella.h:3:9: note: in file included from /Path/To/Project/Pods/Target Support Files/FBSDKLoginKit/FBSDKLoginKit-umbrella.h:3:
#import "FBSDKLoginButton.h"
^
A fatal parse error has occurred. LLDB may become unstable; please restart your debug session as soon as possible.

最佳答案

我做了一些挖掘,发现如果您将 允许非模块化包含在框架模块中 设置为 yes 对于 Pods< 中的 FBSDKCoreKit 目标 修复 LLDB 错误的项目。

关于ios - 自从更新到 cocoa pods 到 use_frameworks 后无法调试我的 iOS 项目!对于 swift ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31880471/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com