Skip to content

"No devices are connected" when running a Flutter integration test #1327

Closed Answered by mregnauld
mregnauld asked this question in Q&A
Discussion options

You must be logged in to vote

OK so this finally worked:

- name: Install pods
  script: |
    flutter pub get
    find . -name "Podfile" -execdir pod install \;
- name: Integration tests iOS
  script: |
    xcrun simctl shutdown all
    TEST_DEVICE=$(xcrun simctl create test-device com.apple.CoreSimulator.SimDeviceType.iPhone-11 com.apple.CoreSimulator.SimRuntime.iOS-16-2)
    xcrun simctl boot $TEST_DEVICE
    flutter -d $TEST_DEVICE test integration_test --flavor free

Also, very important, it works only if I use cocoapods: 1.11.3, and not cocoapods: 1.9.1.

Thanks @himesh-cm for your help!

Replies: 2 comments 11 replies

Comment options

You must be logged in to vote
10 replies
@mregnauld
Comment options

@himesh-cm
Comment options

@himesh-cm
Comment options

@mregnauld
Comment options

@himesh-cm
Comment options

Comment options

You must be logged in to vote
1 reply
@himesh-cm
Comment options

Answer selected by himesh-cm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants