Skip to content

Instantly share code, notes, and snippets.

@ashfurrow
Created October 21, 2014 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ashfurrow/4dbe36d0faf65ce69ecd to your computer and use it in GitHub Desktop.
Save ashfurrow/4dbe36d0faf65ce69ecd to your computer and use it in GitHub Desktop.
Breakpoint errors
error: <EXPR>:1:8: error: consecutive statements on a line must be separated by ';'
(void*)dlopen("/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2);
^
;
error: <EXPR>:1:53: error: expected ',' separator
(void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
^
,
<EXPR>:1:68: error: expected ',' separator
(void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
^
,
<EXPR>:1:89: error: expected expression in list of expressions
(void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
^
<EXPR>:1:89: error: expected ',' separator
(void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
^
,
<EXPR>:1:89: error: expected expression in list of expressions
(void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
^
<EXPR>:1:89: error: expected ',' separator
(void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
^
,
<EXPR>:1:89: error: expected ']' in expression list
(void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
^
<EXPR>:1:7: note: to match this opening '['
(void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
^
<EXPR>:1:89: error: consecutive statements on a line must be separated by ';'
(void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
^
;
<EXPR>:1:90: error: expected an attribute name
(void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
^
<EXPR>:1:90: error: expected declaration
(void)[(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];
^
@tonyarnold
Copy link

I've just tried with a pure iOS Swift project (no ObjC code in it):

2014-10-22 10:37:27.594 SwiftySwiftofferson[21689:558410] Version 0.87.0 of Realm is now available: http://static.realm.io/downloads/cocoa/latest
(lldb) expr (void*)dlopen("/Users/tonyarnold/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib", 0x2);
(void *) $0 = 0x00007fcc19e8f8f0
(lldb) expr [(NSNotificationCenter*)[NSNotificationCenter defaultCenter] postNotificationName:@"IBARevealRequestStart" object:nil];

2014-10-22 10:38:07.946 SwiftySwiftofferson[21689:558054]  INFO: Reveal server started.
2014-10-22 10:38:07.954 SwiftySwiftofferson[21689:558054]  INFO: Reveal server started.
(lldb) continue
Process 21689 resuming

I'll do some more digging.

@tonyarnold
Copy link

I can reproduce what you're seeing when I setup the LLDB command aliases and try to execute them via breakpoints.

@crylico
Copy link

crylico commented Dec 8, 2014

Did this ever get resolved?

@zonebin
Copy link

zonebin commented Sep 28, 2016

I also come this problem. Did this have been solved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment