7

I have a problem debugging swift pods in my project. We've created a swift pod and integrated that into one of our projects as a development pod. Everything runs great. However, when we try to debug the code in the pod, we don't see any values.

I've checked and we don't strip debug symbols in the Pods project nor in the main project. What else can be wrong. How do we fix this?

variables view

Here is some output from when i 'po' the variables:

enter image description here

Here are the buildsettings of my project (not of the Pods project)

enter image description here

4
  • Are you able to run po vc or po with any of the other variable names? Commented Oct 13, 2015 at 17:29
  • Unfortunatly not Keith... Commented Oct 14, 2015 at 9:06
  • Is there an error when you attempt to po them? If so can you add that here? Commented Oct 14, 2015 at 20:43
  • I have a similar problem and the error I get is error: <EXPR>:1:1: error: use of unresolved identifier 'vc' Commented Mar 8, 2016 at 1:10

1 Answer 1

1

I had exact the same issue, few days ago. My solution was setting optimization flag in Build Settings to none:

SWIFT_OPTIMIZATION_LEVEL = "-Onone";

This is the key when you open it as Source Code.

Optimization Level is inside UI, under code generation. Keep fast for the release since you don't need variables for release :)

Sign up to request clarification or add additional context in comments.

3 Comments

Thnx. But we already have that setting on -Onone (otherwise our builds take way too long to be productive)
Have you checked do you build just DWARF or DWARD with DSYM ? it's under Debug Information Format
We have DWARF with DSYM's on. I've added a screenshot of my buildsettings.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.