Swift错误:无法从AST上下文获取模块"My_App" [英] Swift error: failed to get module 'My_App' from AST context
问题描述
我正在使用Swift 3,Xcode 8.1,CocoaPods 1.1.1.运行pod update
之后,每次我尝试使用Xcode的lldb控制台时-都会打印错误.
例如,po self
输出:
I'm using Swift 3, Xcode 8.1, CocoaPods 1.1.1. After running pod update
, every time i try to use Xcode's lldb console - it prints an error.
For example, po self
outputs:
我的应用" 的共享Swift状态出现了致命错误,并被丢弃.
REPL定义和永久名称/类型将丢失.
警告:模块我的应用中的Swift错误.
该模块的调试信息将在调试器中不可用.
错误:在自动导入中:
无法从AST上下文获取模块" My_App ":
Shared Swift state for My App has developed fatal errors and is being discarded.
REPL definitions and persistent names/types will be lost.
warning: Swift error in module My App.
Debug info from this module will be unavailable in the debugger.
error: in auto-import:
failed to get module 'My_App' from AST context:
有人知道如何解决此问题吗?
Does anyone know how to fix this?
推荐答案
Swift当前不支持调试预构建(即在另一台计算机上构建)的Swift二进制文件.确保您在本地构建所有正在使用的CocoaPods模块.如果仍不能解决问题,请使用 http://bugs.swift.org 提交错误或苹果的错误报告者 http://bugreporter.apple.com .
Swift doesn't currently support debugging pre-built (i.e. built on another machine) Swift binaries. Make sure that you build all the CocoaPods modules you are using locally. If that doesn't fix the problem, please file a bug with http://bugs.swift.org or Apple's bug reporter http://bugreporter.apple.com.
这篇关于Swift错误:无法从AST上下文获取模块"My_App"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!