-
Notifications
You must be signed in to change notification settings - Fork 135
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
Xcodebuild exited with code 65 ( error: no such module 'WatchKit' ) #2174
Comments
I have problem with WatchOS module also, by trying to run tests on iOS simulator with flavor within both
and
|
looks like Patrol not really covers the whole scope of WatchOS runner |
When running commands like
Please provide a minimal reproducible example so we could investigate this issue. |
@piotruela thanks for the response. I've added the WatchOS app dependency to your example ios project, and it fails You're right. Probably, the |
we have temporarily fixed errors based on WatchOS by adding an extra target w/o WatchOS dependency, and by replacing of AppDelegate which also contains the initialization of Watchkit communication service |
Hi @piotruela! Did you have a chance to look into my example? |
Not yet, sorry. |
Steps to reproduce
patrol build ios--simulator --target integration_test/example_test.dart --flavor UAT --verbose
Actual results
Hello, I am getting this error after trying to run a very simple Integration test within our project " error: no such module 'WatchKit' import WatchKit "
Failed to build app with entrypoint test_bundle.dart for iOS simulator (xcodebuild exited with code 65) (87.1s)
Error: xcodebuild exited with code 65
Logs
$ xcodebuild build-for-testing -workspace Runner.xcworkspace -scheme UAT -configuration Debug-UAT -sdk iphonesimulator -destination generic/platform=iOS Simulator -quiet -derivedDataPath ../build/ios_integ OTHER_SWIFT_FLAGS=$(inherited) -D PATROL_ENABLED
/Users/ahmedamin/.pub-cache/hosted/pub.dev/patrol-3.6.1/darwin/Classes/Telegraph/Security/TLSPolicy.swift:36:5: warning: 'SecTrustEvaluate' was deprecated in iOS 13.0: renamed to 'SecTrustEvaluateWithError(::)'
SecTrustEvaluate(trust, &result)
^
/Users/ahmedamin/.pub-cache/hosted/pub.dev/patrol-3.6.1/darwin/Classes/Telegraph/Security/TLSPolicy.swift:36:5: note: use 'SecTrustEvaluateWithError(::)' instead
SecTrustEvaluate(trust, &result)
^~~~~~~~~~~~~~~~
SecTrustEvaluateWithError
/Users/ahmedamin/.pub-cache/hosted/pub.dev/patrol-3.6.1/darwin/Classes/AutomatorServer/Automator/IOSAutomator.swift:321:15: warning: value 'element' was defined but never used; consider replacing with boolean test
let element = self.waitFor(
~~~~^~~~~~~~~~
✗ Failed to build app with entrypoint test_bundle.dart for iOS simulator (xcodebuild exited with code 65) (87.1s)
Error: xcodebuild exited with code 65
#0 throwToolExit (package:patrol_cli/src/base/exceptions.dart:7:3)
#1 IOSTestBackend.build. (package:patrol_cli/src/ios/ios_test_backend.dart:137:9)
#2 DisposeScope.run (package:dispose_scope/src/dispose_scope.dart:46:7)
#3 IOSTestBackend.build (package:patrol_cli/src/ios/ios_test_backend.dart:76:5)
#4 TestCommand._build (package:patrol_cli/src/commands/test.dart:279:7)
#5 TestCommand.run (package:patrol_cli/src/commands/test.dart:213:5)
#6 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
#7 PatrolCommandRunner.runCommand (package:patrol_cli/src/runner/patrol_command_runner.dart:347:18)
#8 PatrolCommandRunner.run (package:patrol_cli/src/runner/patrol_command_runner.dart:291:18)
#9 patrolCommandRunner (package:patrol_cli/src/runner/patrol_command_runner.dart:70:20)
#10 main (file:///Users/ahmedamin/.pub-cache/hosted/pub.dev/patrol_cli-2.7.0/bin/main.dart:6:20)
See the logs above to learn what happened. Also consider running with --verbose. If the logs still aren't useful, then it's a bug - please report it.
Error: xcodebuild exited with code 65
#0 throwToolExit (package:patrol_cli/src/base/exceptions.dart:7:3)
#1 IOSTestBackend.build. (package:patrol_cli/src/ios/ios_test_backend.dart:137:9)
#2 DisposeScope.run (package:dispose_scope/src/dispose_scope.dart:46:7)
#3 IOSTestBackend.build (package:patrol_cli/src/ios/ios_test_backend.dart:76:5)
#4 TestCommand._build (package:patrol_cli/src/commands/test.dart:279:7)
#5 TestCommand.run (package:patrol_cli/src/commands/test.dart:213:5)
#6 CommandRunner.runCommand (package:args/command_runner.dart:212:13)
#7 PatrolCommandRunner.runCommand (package:patrol_cli/src/runner/patrol_command_runner.dart:347:18)
#8 PatrolCommandRunner.run (package:patrol_cli/src/runner/patrol_command_runner.dart:291:18)
#9 patrolCommandRunner (package:patrol_cli/src/runner/patrol_command_runner.dart:70:20)
#10 main (file:///Users/ahmedamin/.pub-cache/hosted/pub.dev/patrol_cli-2.7.0/bin/main.dart:6:20)
Patrol version
patrol: ^3.6.1
Patrol Doctor output
Patrol doctor:
Patrol CLI version: 2.7.0
Flutter command: flutter
Flutter 3.19.0 • channel stable
Android:
• Program adb not found (install with
export PATH="$ANDROID_HOME/platform-tools:$PATH"
)• Env var $ANDROID_HOME set to /path/to/your/android/sdk
iOS / macOS:
• Program xcodebuild found in /usr/bin/xcodebuild
• Program ideviceinstaller found in /usr/local/bin/ideviceinstaller
Flutter Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.19.0, on macOS 14.2.1 23C71 darwin-x64, locale en-DE)
[✗] Android toolchain - develop for Android devices
✗ ANDROID_HOME = /path/to/your/android/sdk
but Android SDK not found at this location.
[✓] Xcode - develop for iOS and macOS (Xcode 15.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2022.2)
[✓] VS Code (version 1.87.2)
[✓] Connected device (4 available)
! Error: Browsing on the local area network for 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
! Doctor found issues in 1 category.
The text was updated successfully, but these errors were encountered: