Carthage cannot build watchOS schemes with Xcode 10 GM Seed

Created on 13 Sep 2018  路  3Comments  路  Source: Carthage/Carthage

  • carthage install method: [x] .pkg, [ ] homebrew, [ ] source
  • which carthage: /usr/local/bin/carthage
  • carthage version: 0.30.1
  • xcodebuild -version: Xcode 10.0 Build version 10A254a
  • 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

Cartfile

github "Alamofire/Alamofire"
github "melvitax/AFDateHelper"  
github "robnadin/MMDrawerController" "carthage"
github "Alua-Kinzhebayeva/iOS-PDF-Reader"
github "capistkidd/FontAwesome.swift" "master"
github "danielgindi/Charts"
github "AgileBits/onepassword-extension" "add-framework-support"
github "SwiftyJSON/SwiftyJSON"
github "CocoaLumberjack/CocoaLumberjack"

Carthage Output

/usr/bin/xcrun xcodebuild -workspace /Users/tkidd/Documents/CAPIS.Mobile/Carthage/Checkouts/AFDateHelper/DateHelper.xcworkspace -scheme DateHelper\ watchOS -configuration Release -derivedDataPath /Users/tkidd/Library/Caches/org.carthage.CarthageKit/DerivedData/10.0_10A254a/AFDateHelper/4.2.8 -sdk watchsimulator -destination platform=watchOS\ Simulator,id=9F9FFEC8-BDA3-42D8-9168-892A7E41D1D3 -destination-timeout 3 ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES build (launched in /Users/tkidd/Documents/CAPIS.Mobile/Carthage/Checkouts/AFDateHelper)User defaults from command line:
    IDEDerivedDataPathOverride = /Users/tkidd/Library/Caches/org.carthage.CarthageKit/DerivedData/10.0_10A254a/AFDateHelper/4.2.8

Build settings from command line:
    CARTHAGE = YES
    CODE_SIGN_IDENTITY = 
    CODE_SIGNING_REQUIRED = NO
    ONLY_ACTIVE_ARCH = NO
    SDKROOT = watchsimulator5.0

--- xcodebuild: WARNING: Unable to open project file '/Users/tkidd/Documents/CAPIS.Mobile/Carthage/Checkouts/AFDateHelper/Playground.playground' in workspace '/Users/tkidd/Documents/CAPIS.Mobile/Carthage/Checkouts/AFDateHelper/DateHelper.xcworkspace'.
xcodebuild: error: Unable to find a destination matching the provided destination specifier:
        { platform:watchOS Simulator, id:9F9FFEC8-BDA3-42D8-9168-892A7E41D1D3 }

    The requested device could not be found because no available devices matched the request.

    Available destinations for the "DateHelper watchOS" scheme:
        { platform:watchOS Simulator, id:AC99A3A6-B725-45B8-94FA-9FD65F6ECAE9, OS:3.2, name:Apple Watch - 38mm }
        { platform:watchOS Simulator, id:36A9D80B-1C35-474B-9A56-62A219A8401B, OS:3.2, name:Apple Watch - 42mm }
        { platform:watchOS Simulator, id:51EB2E76-11CE-45F5-B93C-C8D8C4E75129, OS:3.2, name:Apple Watch Series 2 - 38mm }
        { platform:watchOS Simulator, id:14DDCDED-2598-43EF-9210-3ECC31ABAEBE, OS:5.0, name:Apple Watch Series 2 - 38mm }
        { platform:watchOS Simulator, id:F3B7450E-202C-4B17-BDB0-9CC00FBBDB01, OS:3.2, name:Apple Watch Series 2 - 42mm }
        { platform:watchOS Simulator, id:7AC64405-B70A-46BB-A854-76F47A38317A, OS:5.0, name:Apple Watch Series 2 - 42mm }
        { platform:watchOS Simulator, id:286C4A7C-BF7A-4471-8CC4-1E37E0110AC9, OS:5.0, name:Apple Watch Series 3 - 38mm }
        { platform:watchOS Simulator, id:10ACC375-BA30-4CA1-B9D9-3EB04C260949, OS:5.0, name:Apple Watch Series 3 - 42mm }
        { platform:watchOS Simulator, id:43BB887A-CFCA-4328-9A30-30F6EC616E4C, OS:5.0, name:Apple Watch Series 4 - 40mm }
        { platform:watchOS Simulator, id:9D23142A-D5B1-4B18-AE88-2BA420326959, OS:5.0, name:Apple Watch Series 4 - 44mm }

    Ineligible destinations for the "DateHelper watchOS" scheme:
        { platform:watchOS, id:dvtdevice-DVTiOSDevicePlaceholder-watchos:placeholder, name:Generic watchOS Device }
        { platform:watchOS Simulator, id:dvtdevice-DVTiOSDeviceSimulatorPlaceholder-watchsimulator:placeholder, name:Generic watchOS Simulator Device }

Actual outcome
Carthage exits with exit code 70 any time a watchOS target is built when using Xcode 10 GM

Expected outcome
Carthage should build the target successfully

The title and log pretty much say it all - anything using watchOS fails. If you use the --platform option to do anything else there's no problem (for libraries that have watchOS as an option). It kinda looks like it's looking for a particular simulator by GUID which isn't there anymore, but that's just a guess.

I found at least one project online where someone pointed this out to them and the response was that it was a Carthage bug.

Anyway I know Xcode 10 isn't final but I thought I'd point it out.

duplicate

Most helpful comment

You can also install via brew with brew install carthage --HEAD

All 3 comments

Hi there! I was having the same issue the other day. This seems to have been resolved and merged on master (see https://github.com/Carthage/Carthage/pull/2561).

There hasn't been a Carthage release with this fix yet, so in order to get it, you will need to install Carthage from source:

  1. clone the master branch of the repository
  2. run make install

So far it's been working great for me and I've been able to bypass the issue.

You can also install via brew with brew install carthage --HEAD

Thanks, the latest code worked great.

Was this page helpful?
0 / 5 - 0 ratings