Swift错误:无法从AST上下文获取模块'My_App'

问题描述:

我使用的是Swift 3,Xcode 8.1,CocoaPods 1.1.1。运行pod update后,每当我尝试使用Xcode的lldb控制台时 - 它都会打印一个错误。
例如,po self输出: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:

有谁知道如何解决这一问题?

Swift目前不支持调试预构建(即构建在另一台机器上)的Swift二进制文件。确保您构建了本地使用的所有CocoaPods模块。如果这不能解决问题,请用http://bugs.swift.org或Apple的bug记者http://bugreporter.apple.com提交错误。

+3

如何做到这一点?是不是完全没有这样做的cocoapods点?生态系统已经成为最近使用的一种痛苦 – Petar

+0

如何在本地构建CocoaPod模块? – Rob