Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Empty variables in xcode's variable view while debugging cocoapod pod

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

like image 755
Tycho Pandelaar Avatar asked Oct 13 '15 08:10

Tycho Pandelaar


1 Answers

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 :)

like image 130
Miknash Avatar answered Oct 15 '22 09:10

Miknash