Swift error: failed to get module 'My_App' from AST context

白昼怎懂夜的黑 提交于 2019-12-08 19:08:47

问题


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:

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?


回答1:


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.



来源:https://stackoverflow.com/questions/41013538/swift-error-failed-to-get-module-my-app-from-ast-context

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!