Skip to content

Opening XCode fails #5420

Closed
Closed

Description

@yahu1031

Describe the bug
Opening XCode from "Open in XCode" option fails to open XCode if it was not identified in the terminal/ if XCode is installed in External Drive.

Making use of -a argument in open command would fix it.

open -a XCode <iOS PROJECT PATH>

To Reproduce

  1. Install Xcode in External drive
  2. Try opening ios project via Termianl/VSCode

Expected behavior
Should open XCode

Please complete the following information:

!! ⚠️ PLEASE REVIEW THIS REPORT FOR SENSITIVE INFORMATION BEFORE SHARING ⚠️ !!

Workspace Environment
Dart Code extension: 3.104.0
Flutter extension: 3.104.0 (activated)

App: Trae
App Host: desktop
Version: mac 1.96.4

Workspace type: Flutter (LSP)
Workspace name: nlearnv4

Dart (3.7.0): /opt/homebrew/Caskroom/flutter/3.29.0/flutter/bin/cache/dart-sdk
Flutter (3.29.0): /opt/homebrew/Caskroom/flutter/3.29.0/flutter (iPhone 16 Pro Max (ios/ios))

Output from 'dart info'

/opt/homebrew/Caskroom/flutter/3.29.0/flutter/bin/cache/dart-sdk/bin/dart info

If providing this information as part of reporting a bug, please review the information
below to ensure it only contains things you're comfortable posting publicly.

General info

  • Dart 3.7.0 (stable) (Wed Feb 5 04:53:58 2025 -0800) on "macos_arm64"
  • on macos / Version 15.3.1 (Build 24D70)
  • locale is en-US

Project info

  • sdk constraint: '^3.5.3'
  • dependencies: aws_client, chewie, connectivity_plus, crypto, cupertino_icons, dartz, device_info_plus, dio, equatable, feature_flags, firebase_core, firebase_crashlytics, firebase_messaging, fl_chart, flutter, flutter_bloc, flutter_local_notifications, flutter_modular, flutter_secure_storage, flutter_svg, flutter_tex, freezed_annotation, get_it, google_fonts, hive, hive_flutter, json_annotation, logger, lottie, mixpanel_flutter, path_provider, permission_handler, shared_preferences, syncfusion_flutter_pdfviewer, table_calendar, tpstreams_player_sdk, video_player, webview_flutter_platform_interface, youtube_player_flutter
  • dev_dependencies: bloc_test, build_runner, flutter_lints, flutter_test, freezed, json_serializable, mocktail
  • elided dependencies: 3

Process info

Memory CPU Elapsed time Command line
7 MB 0.0% 08:01:58 dart devtools --machine --allow-embedding --dtd-uri ws:/SVOn_wdUsDc=
33 MB 0.0% 08:01:59 dart language-server --protocol=lsp --client-id=VS-Code --client-version=3.104.0
10 MB 0.0% 08:01:59 dart tooling-daemon --machine
29 MB 0.0% 08:01:59 flutter_tools.snapshot daemon
Output from 'flutter doctor'

/opt/homebrew/Caskroom/flutter/3.29.0/flutter/bin/flutter doctor -v

[✓] Flutter (Channel stable, 3.29.0, on macOS 15.3.1 24D70 darwin-arm64, locale en-US) [435ms]
    • Flutter version 3.29.0 on channel stable at /opt/homebrew/Caskroom/flutter/3.29.0/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 35c388afb5 (9 days ago), 2025-02-10 12:48:41 -0800
    • Engine revision f73bfc4522
    • Dart version 3.7.0
    • DevTools version 2.42.2

[✗] Android toolchain - develop for Android devices [367ms]
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/to/macos-android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[✓] Xcode - develop for iOS and macOS (Xcode 16.2) [945ms]
    • Xcode at /Volumes/HomeX/Applications/Xcode.app/Contents/Developer
    • Build 16C5032a
    • CocoaPods version 1.16.2

[✗] Chrome - develop for the web (Cannot find Chrome executable at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome) [6ms]
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[!] Android Studio (not installed) [5ms]
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/to/macos-android-setup for detailed instructions).

[✓] Connected device (3 available) [6.9s]
    • iPhone 16 Pro Max (mobile)      • 920B0919-C419-488C-AFDA-355223582A5F • ios          • com.apple.CoreSimulator.SimRuntime.iOS-18-2 (simulator)
    • macOS (desktop)                 • macos                                • darwin-arm64 • macOS 15.3.1 24D70 darwin-arm64
    • Mac Designed for iPad (desktop) • mac-designed-for-ipad                • darwin       • macOS 15.3.1 24D70 darwin-arm64

[✓] Network resources [1,937ms]
    • All expected network resources are available.

! Doctor found issues in 3 categories.

Activity

  1. added this to the v3.106.0 milestone on Feb 19, 2025
  2. DanTup commented on Feb 20, 2025

    @DanTup
    Member

    I've published a new pre-release version of the extension (3.105.20250220) that will show up in the next 20 mins or so. Could you switch to it (and reload), and then verify that it's working correctly for you with this change? Thanks!

    Dart pre-release versions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions