luispadron / UICircularProgressRing

A circular progress bar for iOS written in Swift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

xcodebuild: error: Could not resolve package dependencies: Authentication failed because no credentials were provided

shingo-nakanishi opened this issue · comments

Bug Report

A shell task (/usr/bin/xcrun xcodebuild -project /Users/projectDir/Carthage/Checkouts/UICircularProgressRing/Example/UICircularProgressRingExample.xcodeproj CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES -list) failed with exit code 74:
xcodebuild: error: Could not resolve package dependencies:
  Authentication failed because no credentials were provided.

Version

  • Xcode12
  • UICircularProgressRing at "v7.0.0"

Overview of what you tried to do

Carthage/Carthage#3019 (comment)

I did the above script.

What is the expected outcome?

able to compile.

What is the actual outcome?

Error:

A shell task (/usr/bin/xcrun xcodebuild -project /Users/projectDir/Carthage/Checkouts/UICircularProgressRing/Example/UICircularProgressRingExample.xcodeproj CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES -list) failed with exit code 74:
xcodebuild: error: Could not resolve package dependencies:
  Authentication failed because no credentials were provided.

Post sample code or example here

I'll quote the linked script.

#!/usr/bin/env bash

# carthage.sh
# Usage example: ./carthage.sh build --platform iOS

set -euo pipefail

xcconfig=$(mktemp /tmp/static.xcconfig.XXXXXX)
trap 'rm -f "$xcconfig"' INT TERM HUP EXIT

# For Xcode 12 make sure EXCLUDED_ARCHS is set to arm architectures otherwise
# the build will fail on lipo due to duplicate architectures.
echo 'EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_simulator__NATIVE_ARCH_64_BIT_x86_64__XCODE_1200 = arm64 arm64e armv7 armv7s armv6 armv8' >> $xcconfig
echo 'EXCLUDED_ARCHS = $(inherited) $(EXCLUDED_ARCHS__EFFECTIVE_PLATFORM_SUFFIX_$(EFFECTIVE_PLATFORM_SUFFIX)__NATIVE_ARCH_64_BIT_$(NATIVE_ARCH_64_BIT)__XCODE_$(XCODE_VERSION_MAJOR))' >> $xcconfig

export XCODE_XCCONFIG_FILE="$xcconfig"
carthage "$@"

Any news about this?

@mrojas
I didn't know how to do it with Carthage , so I did it with the swift package manager in Xcode12.

I'm not sure what the issue is here, however, v7.0 is only explicitly supporting Swift package manger.