0

I have a framework project I built in debug mode. I added such resulting framework to another iOS project. My iOS project builds correctly and the framework is called, I get its methods results. However, some of the results are not the expected and I need to debug the framework's code from the iOS project.

I am also running the iOS project in debug mode and setting a breakpoint at the framework's method call I want to debug. But "step into" instruction in the debugger does not enter into the framework's code. In addition, if I "command-click" the name of the method to try to go to its code, I get an:

Couldn't Generate Swift Representation

My issue is similar to this one, but the answer there is not working for me. Is somebody experiencing the same? Could somebody provide another solution?

Community
  • 1
  • 1
AppsDev
  • 12,319
  • 23
  • 93
  • 186
  • Can you make a sample project that shows this error available to us? It's hard to figure out what's wrong in the abstract. If you can, please file a bug with http://bugreporter.apple.com. Thanks! – Jim Ingham Nov 10 '16 at 02:47
  • If you are not using a combined Xcode workspace with the two projects in the workspace, you might try that. Xcode can better manage the debug information between projects if they are in a shared workspace. – Jim Ingham Nov 10 '16 at 02:55
  • @JimIngham thank you, I'll try that. Which is the appropriate way to add the framework project to the main app project for this purpose, should I have to take care of any particular settings? – AppsDev Nov 10 '16 at 08:13
  • I think the simplest way to do this is to make an Xcode Workspace (File->New->Workspace) then add the two projects to the workspace. Here's an introduction to how workspaces work: https://developer.apple.com/library/content/featuredarticles/XcodeConcepts/Concept-Workspace.html – Jim Ingham Nov 10 '16 at 18:20

0 Answers0