use of unresolved identifier 'self'

So I'm trying to debug a swift app with LLDB and ever since I incorporated cocoapods, I get this error when trying to use po on any variables or objects.


"error: <EXPR>:1:1: error: use of unresolved identifier 'self'"


I have checked all the optimization settings for my targets and project overview and everything seems correct according to other forums posts that used to be here.


This is happening with xcode 6.3.2 and 6.4 beta 3, I havent tried with xcode 7 yet because I dont want to convert my app over to swift 2 yet.


From what little I have learned it might be an xcode bug, but since its really difficult to debug complex apps with random println() I'm following up and trying to make sure I didnt miss some random setting that might be affecting this.


Thanks.

Replies

This has been a problem for awhile (see https://devforums.apple.com/message/1084260#1084260,https://devforums.apple.com/message/1136726#1136726,and https://devforums.apple.com/message/1131807#1131807). Try to create a sample project that reproduces the problem and submit a bug report at https://bugreport.apple.com.

.