Skip to content

Xcode 10.2 | NSInvalidArgumentException #32

@mylegfeelsfunny

Description

@mylegfeelsfunny

Xcode 10.2
Mojave 10.14.3
Swift 4.2

Scenario

When we run the tests, it appears there are scenarios where the strings cannot bridge between objectiveC and swift. Its somehow seems to be related to the content.

NSInvalidArgumentException -[Swift.__SharedStringStorage stringValue]: unrecognized 
selector sent to instance 0x60000203d3e0

Could it be Apple?

Example:

If the output is The Under $5 Rule for expectationThe Under $5 Rule, the test should pass but we get the exception.
Screen Shot 2019-03-28 at 4 15 02 PM

If the output is The Under $5 Ru for expectation The Under $5 Ru, the test passes.
Screen Shot 2019-03-28 at 4 22 15 PM

If the output is The Under $5 Ru for expectation The Under $5 Rule, the test fails but as it should.
Screen Shot 2019-03-28 at 4 21 59 PM

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions