patrol icon indicating copy to clipboard operation
patrol copied to clipboard

Can not finish test with starter project on real iOS device.

Open shanxus opened this issue 1 year ago • 1 comments

Steps to reproduce

  1. Follow instructions to setup for iOS.
  2. Follow instructions to clone starter project.
  3. Use patrol test --release command to start the integration test on real device.

Device: iPhone 11 with iOS 18.0.1

Actual results

Everything works fine until the step where the test attempts to tap the notification. The integration test tries to tap the Patrol says hello! notification, but the app does not open, causing the test to hang.

On the other hand, the integration test for the starter project works fine on the iOS simulator with patrol test command.

Logs

Logs
shanchen@Shans-Mac-mini patrol-basics-tutorial % patrol test --release
No device specified, using the first one (Shan_iPhone11)
• Building app with entrypoint test_bundle.dart for iOS device (release)...
        Warning: Building for device with codesigning disabled. You will have to manually codesign before deploying to device.
        Building com.resocoder.patrolBasicsTutorial for device (ios-release)...
✓ Completed building app with entrypoint test_bundle.dart for iOS device (52.1s)
• Running app with entrypoint test_bundle.dart for iOS device on device Shan_iPhone11...

Patrol version

patrol: ^3.13.1

Patrol Doctor output

Patrol Doctor output
shanchen@Shans-Mac-mini patrol-basics-tutorial % patrol doctor
Patrol doctor:
Patrol CLI version: 3.4.1
Flutter command: flutter 
  Flutter 3.24.3 • channel stable
Android: 
• Program adb not found (install with `export PATH="$ANDROID_HOME/platform-tools:$PATH"`)
• Env var $ANDROID_HOME is not set. (See the link: https://developer.android.com/tools/variables#set)
iOS / macOS: 
• Program xcodebuild found in /usr/bin/xcodebuild
• Program ideviceinstaller found in /opt/homebrew/bin/ideviceinstaller

Flutter Doctor output

Flutter Doctor output
shanchen@Shans-Mac-mini patrol-basics-tutorial % flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.3, on macOS 15.0.1 24A348 darwin-arm64, locale en-TW)
[✓] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 16.0)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2024.1)
[✓] Connected device (4 available)
    ! Error: Browsing on the local area network for Shan_iPhone11. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for WinnieYC_iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
    ! Error: Browsing on the local area network for PinXuan的iPhone. Ensure the device is unlocked and attached with a cable or associated with the same local area network as this Mac.
      The device must be opted into Developer Mode to connect wirelessly. (code -27)
[✓] Network resources

• No issues found!

shanxus avatar Dec 19 '24 08:12 shanxus

@shanxus, Do you manually codesign the IPa before installing it on the real device? Somehow for me it not even installing

jigar-f avatar Dec 27 '24 18:12 jigar-f

Please fill new issue, if problem still persists. Closing for now.

Kendru98 avatar Aug 01 '25 12:08 Kendru98

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue.

github-actions[bot] avatar Aug 08 '25 13:08 github-actions[bot]