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

Carthage failing with scheme "AppAuth_watchOS" #810

Open
tnmendes opened this issue Jan 2, 2024 · 4 comments
Open

Carthage failing with scheme "AppAuth_watchOS" #810

tnmendes opened this issue Jan 2, 2024 · 4 comments
Labels
bug triage Issues that need to be triaged

Comments

@tnmendes
Copy link

tnmendes commented Jan 2, 2024

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`

@tnmendes tnmendes added bug triage Issues that need to be triaged labels Jan 2, 2024
@danielrosero
Copy link

Hi @tnmendes did you manage to solve this issue?

@tnmendes
Copy link
Author

@danielrosero yeap, don't point to the latest version but point to the master (I think that the latest version is way older then master)
Do this:
github "openid/AppAuth-iOS" "master"

@danielrosero
Copy link

danielrosero commented Feb 7, 2024

@tnmendes Thank you for your reply.

Is still failing, there is an issue with watchOS scheme.

I managed to bypass it by specifying the platform when building carthage deps

carthage bootstrap --platform ios --use-xcframeworks

(I'm using xcframeworks because I'm on a M1)

@tnmendes
Copy link
Author

tnmendes commented Feb 7, 2024

maybe it is time to give up on the Carthage and move to Swift Package ¯_(ツ)_/¯

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues that need to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants