openid / openid/AppAuth-iOS

Carthage failing with scheme "AppAuth_watchOS"

Open
#810 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug triage
Dominant language
Objective-C
Stars
2k
Forks
867
Avg merge
4d 48m
Merged PRs (30d)
1

Description

Describe the bug
Using Carthage to install AppAuth-iOS it's falling to me when carthage try to install the watchOS scheme.

Is there any way to disable watchOS scheme before installing it? I don't need it for my project

To Reproduce
Steps to reproduce the behavior:

  1. Cartfile added: github "openid/AppAuth-iOS" == 1.6.2
  2. in the Terminal run carthage bootstrap --use-xcframeworks
  3. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Environment

  • Device: MacBook Pro M1 Pro
  • OS: 13.5.1 (22G90)
  • Xcode Version 15.1 (15C65)
  • Carthage version 0.39.1

Additional context

*** Building scheme "AppAuth_macOS" in AppAuth.xcodeproj *** Building scheme "AppAuth_iOS" in AppAuth.xcodeproj *** Building scheme "AppAuth_watchOS" in AppAuth.xcodeproj Build Failed Task failed with exit code 70: /usr/bin/xcrun xcodebuild -project /Users/x/projects/x/Carthage/Checkouts/AppAuth-iOS/AppAuth.xcodeproj -scheme AppAuth_watchOS -configuration Release -derivedDataPath /Users/x/Library/Caches/org.carthage.CarthageKit/DerivedData/15.1_15C65/AppAuth-iOS/1.6.2 -sdk watchos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive VALIDATE_WORKSPACE=NO -archivePath /var/folders/d5/hth0x90s6z94_b888pks4cfm0000gn/T/AppAuth-iOS SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/x/projects/x/Carthage/Checkouts/AppAuth-iOS)

More logs:

`/usr/bin/xcrun xcodebuild -project /Users/x/projects/x/Carthage/Checkouts/AppAuth-iOS/AppAuth.xcodeproj -scheme AppAuth_watchOS -configuration Release -derivedDataPath /Users/x/Library/Caches/org.carthage.CarthageKit/DerivedData/15.1_15C65/AppAuth-iOS/1.6.2 -sdk watchos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive VALIDATE_WORKSPACE=NO -archivePath /var/folders/d5/hth0x90s6z94_b888pks4cfm0000gn/T/AppAuth-iOS SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/x/projects/x/Carthage/Checkouts/AppAuth-iOS)Command line invocation:
/Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -project /Users/x/projects/x/Carthage/Checkouts/AppAuth-iOS/AppAuth.xcodeproj -scheme AppAuth_watchOS -configuration Release -derivedDataPath /Users/x/Library/Caches/org.carthage.CarthageKit/DerivedData/15.1_15C65/AppAuth-iOS/1.6.2 -sdk watchos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive VALIDATE_WORKSPACE=NO -archivePath /var/folders/d5/hth0x90s6z94_b888pks4cfm0000gn/T/AppAuth-iOS SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO

User defaults from command line:
IDEArchivePathOverride = /var/folders/d5/hth0x90s6z94_b888pks4cfm0000gn/T/AppAuth-iOS
IDEDerivedDataPathOverride = /Users/x/Library/Caches/org.carthage.CarthageKit/DerivedData/15.1_15C65/AppAuth-iOS/1.6.2
IDEPackageSupportUseBuiltinSCM = YES

Build settings from command line:
CARTHAGE = YES
CLANG_ENABLE_CODE_COVERAGE = NO
CODE_SIGN_IDENTITY =
CODE_SIGNING_REQUIRED = NO
GCC_INSTRUMENT_PROGRAM_FLOW_ARCS = NO
ONLY_ACTIVE_ARCH = NO
SDKROOT = watchos10.2
SKIP_INSTALL = YES
STRIP_INSTALLED_PRODUCT = NO
VALIDATE_WORKSPACE = NO`

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with AppAuth.xcodeproj and the reported carthage bootstrap --use-xcframeworks command, focusing on how the AppAuth_watchOS scheme is selected and built. Compare the macOS, iOS, and watchOS scheme configuration shown in the logs. Done means the requested Carthage installation no longer fails when watchOS is not needed, with the affected command verified.

Written by the indexing model from the issue text.

Assessment

Tech stack
objective-c
Domain
build-system, mobile-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.