Guest User

Untitled

a guest
May 17th, 2018
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Hi,
  2. the following code does work in iOS-Simulator and when debugging through XCode, but when running on plain device without gdb it gives an EXC_CRASH (SIGKILL) with no further information:
  3.  
  4. NuInit();
  5. NSString* script = @"(do () (puts \"called\"))";
  6. id parsed = [[Nu sharedParser] parse:script];
  7. NuBlock* block = [[Nu sharedParser] eval:parsed];
  8. void (^cblock)( ) = [NuBridgedBlock cBlockWithNuBlock:block signature:@"v"];
  9. cblock();
  10.  
  11. Is there any error in my understanding of NuBridgedBlock?
Add Comment
Please, Sign In to add comment