openid / AppAuth-iOS

iOS and macOS SDK for communicating with OAuth 2.0 and OpenID Connect providers.
https://openid.github.io/AppAuth-iOS
Apache License 2.0
1.73k stars 749 forks source link

Carthage failing with scheme "AppAuth_watchOS" #810

Open tnmendes opened 6 months ago

tnmendes commented 6 months ago

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

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`

danielrosero commented 6 months ago

Hi @tnmendes did you manage to solve this issue?

tnmendes commented 5 months ago

@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 commented 5 months ago

@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 commented 5 months ago

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