Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shanxus opened this issue Dec 19, 2024 · 1 comment
Open

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

shanxus opened this issue Dec 19, 2024 · 1 comment

Comments

@shanxus
Copy link

shanxus commented Dec 19, 2024

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 shanxus changed the title Can not finish test with example app on real device. Can not finish test with example app on real iOS device. Dec 19, 2024
@shanxus shanxus changed the title Can not finish test with example app on real iOS device. Can not finish test with starter project on real iOS device. Dec 19, 2024
@jigar-f
Copy link

jigar-f commented Dec 27, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants