Skip to content

Commit 6bf8ee5

Browse files
Frank1234mikehardy
andauthored
docs(FAQ): add info re: disabling debugger for test crashes under Xcode (#4912)
* Update faqs-and-tips.md Added solution for this problem: #4014 * add SIGABRT to spellcheck dictionary Co-authored-by: Mike Hardy <[email protected]>
1 parent fa3d260 commit 6bf8ee5

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.spellcheck.dict.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ SDKs
118118
SDKs.
119119
SHA1
120120
SHA-256
121+
SIGABRT
121122
SMS
122123
src
123124
SVG

docs/faqs-and-tips.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ This happens to be a known problem with the upstream Analytics SDKs. The Firebas
4141

4242
To use some Firebase services (like auth) in an emulator, you need an Android virtual device with Google Play services installed. Check this [Stack Overflow post](https://stackoverflow.com/a/46246782/2275865) for instructions on creating a new Android virtual device with the necessary APIs installed.
4343

44+
### I'm getting an SIGABRT error in Xcode when faking a crash on iOS. How do I fix this?
45+
46+
When you get an error on this line when faking a crash on iOS:
47+
```
48+
RCT_EXPORT_METHOD(crash) {
49+
if ([RNFBCrashlyticsInitProvider isCrashlyticsCollectionEnabled]) {
50+
assert(NO);
51+
}
52+
}
53+
```
54+
Just disable your debugger in Xcode. 'Project name' -> 'Edit Scheme...' -> 'Run' -> deselect "Debug executable"
55+
4456
# Tips
4557

4658
- Whenever you face a strange issue (or an issue that causes build errors), there are two things you should always consider.

0 commit comments

Comments
 (0)