The following code causes a crash:

let tags : [NSObject : AnyObject] = [NSString(string: "Key") : NSString(string: "Value")]

The crash message:

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderArray initWithObjects:count:]: attempt to insert nil object from objects[1]'

There's very little to work on here since the SDK is for some reason not open source. I managed to get the push notifications working, but setTags method causing a crash without any debuggable source code is certainly a deal breaker. What could cause the issue?

asked 04 Aug '15, 14:03
asdasd's gravatar image


Hi, it seems that the similar issue was fixed just yesterday. Could you possibly try the latest SDK and try again?

permanent link
answered 11 Aug '15, 13:48
Benedict's gravatar image


Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 04 Aug '15, 14:03

question was seen: 949 times

last updated: 11 Aug '15, 13:48