react-native-owl icon indicating copy to clipboard operation
react-native-owl copied to clipboard

[iOS] Test on GitHub Action doesn't seem to change the iOS simulator time

Open shadowsheep1 opened this issue 3 years ago • 6 comments

I'm trying to integrate your great tool with GA in this test repo, but tests fail because the simulator time differs (It's not 9:41).

iOS Tests fail due to time difference

Can you help me understand what I'm missing?

shadowsheep1 avatar Jan 29 '23 10:01 shadowsheep1

Hello First of all, thank you very much for doing such a great work on this library. Just want to write a comment here to support the above issue. I have explored the lib codebase for a bit and find out that you have already fixed this issue a quite while ago in this PR https://github.com/FormidableLabs/react-native-owl/pull/16 but it seems issue is still there. Below implementation is not working as expected. Fixing this issue would be really helpful. It's mainly happening on iOS 16

const SIMULATOR_TIME = '9:41';
const setTimeCommand = `xcrun simctl status_bar ${simulator} override --time ${SIMULATOR_TIME}`;
await execa.command(setTimeCommand, { stdio, cwd });

muhammadkhan0009 avatar Feb 15 '23 23:02 muhammadkhan0009

@shadowsheep1 It seems like you are using xcode 16 or above version which is causing the issue. The following changes would fix the issue:

  • Open xcode and tap on the Xcode on the top left corner.
  • Tap on Preferences
  • Tap on the Platforms
  • Tap on the + at the bottom left
  • Tap on iOS
  • Download the 15.5 ios emulator
  • Open the simulator iPhone 13 from the xcode and you are good to go.

muhammadkhan0009 avatar Feb 16 '23 19:02 muhammadkhan0009

so it is not compatible with iOS 16?

HERRKIN avatar Mar 15 '23 22:03 HERRKIN

This seems to be an issue with iOS 16 (or 16.1) - https://developer.apple.com/forums/thread/720610 There is nothing that RN Owl can do itself to resolve this. While waiting for Apple to resolve this issue, you may need to continue to test on iOS 15

robwalkerco avatar Mar 26 '23 09:03 robwalkerco

Okay, got it. Thanks guys.

shadowsheep1 avatar Mar 27 '23 07:03 shadowsheep1

Related to #165

Is this still an issue? I presume that it's resolved by Apple now that iOS Simulators 17.x are released

robwalkerco avatar Feb 10 '24 11:02 robwalkerco

Closing as it appears that this was resolved by newer ios simulator versions

robwalkerco avatar May 01 '24 11:05 robwalkerco