Skip to content

Commit

Permalink
iOS(AppleSimUtils): enable NSZombies on app launch.
Browse files Browse the repository at this point in the history
This workaround solves the issue described here:
firebase/firebase-ios-sdk#9083

And some of the crashes that was mentioned here:
- #3000
- #3123
- #2641
- #2802
  • Loading branch information
asafkorem committed Dec 20, 2021
1 parent 3fce3b2 commit cf5249b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ class AppleSimUtils {
}

const cmdArgs = quote(_.flatten(this._mergeLaunchArgs(launchArgs, languageAndLocale)));
let launchBin = `SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="${dylibs}" ` +
let launchBin = `SIMCTL_CHILD_NSZombieEnabled=YES SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="${dylibs}" ` +
`/usr/bin/xcrun simctl launch ${udid} ${bundleId} --args ${cmdArgs}`;

const result = await exec.execWithRetriesAndLogs(launchBin, {
Expand Down

0 comments on commit cf5249b

Please sign in to comment.