question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS 16 - app doesn't launch with permissions passed into device.launchApp() and freezes after setBiometricEnrollment()

See original GitHub issue

What happened?

After updating xcode to version 14 and using iOS 16 simulator, app doest launch if device.launchApp have permissions passed inside configuration. If there are no permissions in configuration app launch as expected.

Also, after app started with empty config if we have device.setBiometricEnrollment(true) app instantly freezes.

Same config worked as expected on iOS 15 simulators.

Detox doesnt return any logs on any level due to app wasnt launched.

What was the expected behaviour?

App launches correctly

Was it tested on latest Detox?

  • I have tested this issue on the latest Detox release and it still reproduces.

Did your test throw out a timeout?

Help us reproduce this issue!

launch app on iOS 16 simulator with any permissions passed

In what environment did this happen?

Detox version: 19.12.1 React Native version: 0.68.2 Node version: 18.8.0 Device model: iPhone 11 Simulator iOS version: 16 macOS version: 12.6 Xcode version: 14 Test-runner (select one): jest-circus

Detox logs

Detox logs
paste logs here!

Device logs

Device logs
paste logs here!

More data, please!

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:14 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
kyarorucommented, Oct 31, 2022

Hi, thanks for the fixes. I am having the same issues & updated my applesimutils to v0.9.8. But running detox with

await device.launchApp({ newInstance: true, permissions: { notifications: 'YES' } })

still fails (as in it loads forever until timeout)

it was working fine before I updated my xcode from v13 to v14 with ios 16 simulator

The log i’m getting from detox test --configuration ios.sim.debug --loglevel=verbose is only load up to set permissions line & stopped

00:50:32.383 detox[36236] DEBUG: [EXEC_CMD, #7] applesimutils --byId 0838CF49-F522-4435-ABA7-6EA13CF25D83 --bundle com.xxx.xxx.dev --restartSB --setPermissions notifications=YES
00:50:32.383 detox[36236] DEBUG: [EXEC_TRY, #7] Trying to set permissions...

UPDATE: it works now after restarting macbook! Thanks a lot for the fix!

11:18:47.868 detox[6737] DEBUG: [EXEC_CMD, #7] applesimutils --byId 0838CF49-F522-4435-ABA7-6EA13CF25D83 --bundle com.xxx.xxx.dev --restartSB --setPermissions notifications=YES
11:18:47.868 detox[6737] DEBUG: [EXEC_TRY, #7] Trying to set permissions...
11:18:48.297 detox[6737] DEBUG: [EXEC_SUCCESS, #7] Permissions are set
11:18:48.300 detox[6737] DEBUG: [EXEC_CMD, #8] SIMCTL_CHILD_GULGeneratedClassDisposeDisabled=YES SIMCTL_CHILD_DYLD_INSERT_LIBRARIES="/Users/xxxxx/Library/Detox/ios/72120b03035e65d17a017da0f0c3488e1cacc27e/Detox.framework/Detox" /usr/bin/xcrun simctl launch 0838CF49-F522-4435-ABA7-6EA13CF25D83 com.xxx.xxx.dev --args -detoxServer ws://localhost:49767 -detoxSessionId 64e6644f-76e8-965c-62fd-8a7a9ddc0b19 -detoxDisableHierarchyDump YES
11:18:48.300 detox[6737] DEBUG: [EXEC_TRY, #8] Launching com.xxx.xxx.dev...
1reaction
asafkoremcommented, Oct 30, 2022

@alarm109, apparently, Apple has renamed the bundle_id with udId in this sources table. image I’ve opened the corresponding issue in AppleSimUtils, here. If you want to fix this yourself, this can be a great open source contribution, if not, I’ll fix this soon.

ASU v0.9.8 released with this fix (HealthKit). Thanks to @GGGava! 👏🏼 Please upgrade your ASU version using homebrew. FYI @alarm109 ☝🏼

As for your issue @yaanr3is and @Vadko, please provide the error message you get, I suspect you have a different error than this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

iOS 16 - app doesn't launch with permissions passed into device ...
iOS 16 - app doesn't launch with permissions passed into device.launchApp() and freezes after setBiometricEnrollment()
Read more >
iOS freezes after app update when … | Apple Developer Forums
iOS shows home screen, not responding to touches and button presses; Crashlytics Console does not show crashes; Guided Access cannot be disabled; the...
Read more >
iOS 16 & 16.2 Problems and Bugs Tracker: How to Fix Them?
Wi-Fi disconnection problem. Apple Music Sing is not available (Fixed); The app crashes and freezes. Issues with cellular data and signal reception. Read ......
Read more >
iOS: Failed to launch .app file - iphone - Stack Overflow
1 - remove the app from the iPhone. · 2 - remove the contents of the DerivedData folder. · 3 - Clean &...
Read more >
iOS 16 - Wikipedia
The first developer beta was released on June 6, 2022 immediately after WWDC, with the first public beta being released on July 11,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found