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

When using Carthage to build, xcodebuild error "Unhandled/unexpected case where no run destinations were produced." #3305

Open
teemobean opened this issue Oct 5, 2022 · 10 comments

Comments

@teemobean
Copy link

  • carthage install method: [ ] .pkg, [ x] homebrew, [ ] source
  • which carthage: /opt/homebrew/bin/carthage
  • carthage version: 0.38.0
  • xcodebuild -version:
    Xcode 14.0.1
    Build version 14A400
  • Are you using --no-build? no
  • Are you using --no-use-binaries? no
  • Are you using --use-submodules? no
  • Are you using --cache-builds? no
  • Are you using --new-resolver? no
  • Are you using --use-xcframeworks? yes

Cartfile

github "wordpress-mobile/AztecEditor-iOS" "develop"

Carthage Output

❯ carthage update --use-xcframeworks
*** Fetching AztecEditor-iOS
*** Checking out AztecEditor-iOS at "b7d8a70582133a329b6e4502e437b7a3cdd4ffb6"
*** xcodebuild output can be found in /var/folders/2c/py4twb5x471gqdhp0khhkz600000gn/T/carthage-xcodebuild.AUeT5z.log
A shell task (/usr/bin/xcrun xcodebuild -project /Users/tim/src/ios/sharpen.git/Carthage/Checkouts/AztecEditor-iOS/Aztec.xcodeproj -scheme Carthage\ Update -configuration Release CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -showBuildSettings -skipUnavailableActions) failed with exit code 6:
2022-10-05 15:17:16.472 xcodebuild[41334:40820482] [MT] DVTAssertions: ASSERTION FAILURE in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot2/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-21336/IDEFoundation/Execution/RunDestinations/IDERunDestinationCLI.m:566
Details:  Unhandled/unexpected case where no run destinations were produced.
Object:   <IDERunDestinationCLI>
Method:   +resolveRunDestinationsWithWorkspace:scheme:buildAction:schemeCommand:schemeTask:destinationSpecifications:architectures:timeout:runDestinationManager:deviceManager:fallbackPreferredSDK:fallbackPreferredArchitectures:skipUnsupportedDestinations:shouldSkipRunDestinationValidation:didDisambiguate:disambiguatedMatches:disambiguatedMatchesDescription:error:
Thread:   <_NSMainThread: 0x600000ab4240>{number = 1, name = main}
Hints:

Backtrace:
  0   -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
  1   _DVTAssertionHandler (in DVTFoundation)
  2   _DVTAssertionFailureHandler (in DVTFoundation)
  3   _sortDevicesForDisplay (in IDEFoundation)
  4   -[Xcode3CommandLineBuildTool _resolveRunDestinationsForBuildAction:] (in Xcode3Core)
  5   -[Xcode3CommandLineBuildTool _resolveInputOptionsWithTimingSection:] (in Xcode3Core)
  6   -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
  7   XcodeBuildMain (in libxcodebuildLoader.dylib)
  8   start (in dyld)

Actual outcome
Carthage did not build

Expected outcome
Carthage should build

I looked at the command line generated by Carthage:

/usr/bin/xcrun xcodebuild -project /Users/tim/src/ios/sharpen.git/Carthage/Checkouts/AztecEditor-iOS/Aztec.xcodeproj -scheme Carthage\ Update -configuration Release CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -showBuildSettings -skipUnavailableActions

if I remove all the parameters, the project builds. I suspect the issue is with "-scheme Carthage\ Update" but it might also be related to the other parameters - I tried removing one or two parameters and couldn't find a magic combo. Removing all parameters causes the project to build properly.

@isaachernandezMT
Copy link

isaachernandezMT commented Oct 5, 2022

is happening the same error on my project, with another library...

@WGFcode
Copy link

WGFcode commented Nov 1, 2022

The same problem occurred with the project

@LiuSky
Copy link

LiuSky commented Nov 2, 2022

I had the same problem

@SherhaMM
Copy link

SherhaMM commented Nov 4, 2022

Same for me, error when building on Xcode 14.0, at the same moment on Xcode 13 there's no such issue

@hojatdelfan
Copy link

I have this problem in Xcode 14.1 with Lottie-ios library.
Mac os: Ventura 13.0
$ carthage update --platform ios --use-xcframeworks

What's happening

Error on (carthage_dependency)! Exit status of command 'carthage update --platform ios --use-xcframeworks' was 1 instead of 0.
*** Fetching lottie-ios
*** Checking out lottie-ios at "9e19fd1a62a1658538d2d1ec6f0e43b2cc989678"
*** xcodebuild output can be found in /var/folders/z1/jlhfp_c561z9mz12yg58n4rw0000gn/T/carthage-xcodebuild.MTJOpQ.log
A shell task (/usr/bin/xcrun xcodebuild -project /Users/Projects/Carthage/Checkouts/lottie-ios/Lottie.xcodeproj -scheme Lottie_iOS -configuration Release CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -showBuildSettings -skipUnavailableActions) failed with exit code 6:
2022-11-11 xcodebuild[1804:25219] [MT] DVTAssertions: ASSERTION FAILURE in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot1/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-21534.1/IDEFoundation/Execution/RunDestinations/IDERunDestinationCLI.m:566
Details: Unhandled/unexpected case where no run destinations were produced.
Object:
Method: +resolveRunDestinationsWithWorkspace:scheme:buildAction:schemeCommand:schemeTask:destinationSpecifications:architectures:timeout:runDestinationManager:deviceManager:fallbackPreferredSDK:fallbackPreferredArchitectures:skipUnsupportedDestinations:shouldSkipRunDestinationValidation:didDisambiguate:disambiguatedMatches:disambiguatedMatchesDescription:error:
Thread: <_NSMainThread: 0x13260b490>{number = 1, name = main}
Hints:

Backtrace:
0 -[DVTAssertionHandler handleFailureInMethod:object:fileName:lineNumber:assertionSignature:messageFormat:arguments:] (in DVTFoundation)
1 _DVTAssertionHandler (in DVTFoundation)
2 _DVTAssertionFailureHandler (in DVTFoundation)
3 _sortDevicesForDisplay (in IDEFoundation)
4 -[Xcode3CommandLineBuildTool _resolveRunDestinationsForBuildAction:] (in Xcode3Core)
5 -[Xcode3CommandLineBuildTool _resolveInputOptionsWithTimingSection:] (in Xcode3Core)
6 -[Xcode3CommandLineBuildTool run] (in Xcode3Core)
7 XcodeBuildMain (in libxcodebuildLoader.dylib)
8 start (in dyld)

@diegocesarmoura
Copy link

diegocesarmoura commented Nov 17, 2022 via email

@HiroHosono
Copy link

I had the same problem with another library, but after deleting the folder below and running 'carthage update', the update was successful.
/Carthage/Checkouts/
/Carthage/Build/

@silex-bart
Copy link

silex-bart commented Dec 13, 2022

Same issue as hojatdelfan on different library and Monterey, Xcode 14.1. Removing Builds & Checkouts does not help.

@dmholyday
Copy link

exactly the same issue as @hojatdelfan . Has there been any resolution of this??

I've noticed that when editing the Lottie_iOS scheme in Xcode, under Build > Targets it is showing Lottie_iOS (missing). adding with + Lottie-iOS, and it has moved past this error, now producing same error for next scheme Lottie_macOS. After doing similar change for Lottie_macOS, and final scheme Lottie_tvOS, the build completes. Whether this is a viable workaround, i do not know.

image

image

@Sato-Falisa
Copy link

I wonder how to find the file "the command line generated by Carthage"

i go to folder of "/usr/bin/xcrun”'
and find many Executable file
like this
WechatIMG1
how to remove all the parameters, the project builds?????

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