google / google/EarlGrey

GREYAssert in a dispatch_sync block crashes the app

Open
#289 0 comments 0 reactions 0 assignees View on GitHub
Hacktoberfest
Dominant language
Objective-C
Stars
5.7k
Forks
737
Avg merge
1d 20h
Merged PRs (30d)
5

Description

Message((__objc_no) is true) failed is shown in Xcode. This just refers to the assert itself, which is on boolean NO.

My branch which will repro this issue:
https://github.com/axi0mX/EarlGrey/tree/crash

Tested on Xcode 8, iOS 10 simulator (iPhone SE).

Contributor guide

Open the contributing guide

Research direction

Start with the linked crash branch and reproduce the failure using the reported Xcode 8 and iOS 10 simulator setup. Trace the GREYAssert call inside the dispatch_sync block and compare its behavior with the reported assertion message. Done means the reproduction no longer crashes while the assertion still reports failures correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, objective-c
Domain
mobile, testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.