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

On Mac OS Mojave 10.14 cannot add library with Carthage #22

Open
RomaSafin opened this issue Oct 4, 2018 · 4 comments
Open

On Mac OS Mojave 10.14 cannot add library with Carthage #22

RomaSafin opened this issue Oct 4, 2018 · 4 comments

Comments

@RomaSafin
Copy link

RomaSafin commented Oct 4, 2018

OS version: MAC OS Mojave 10.14
Carthage version: 0.31.0
Xcode version: 10.0

While trying to install library with Carthage having issue:

*** Fetching SwiftyXMLParser
*** Checking out SwiftyXMLParser at "4.2.0"
*** xcodebuild output can be found in /var/folders/kw/c7dppsfx5l7cvy75jhftwllh0000gn/T/carthage-xcodebuild.AbPXKF.log
*** Skipped downloading SwiftyXMLParser.framework binary due to the error:
"API rate limit exceeded for ..*.. (But here's the good news: Authenticated requests get a higher rate limit. Check out the documentation for more details.)"
*** Building scheme "SwiftyXMLParser" in SwiftyXMLParser.xcodeproj
Build Failed
Task failed with exit code 65:
/usr/bin/xcrun xcodebuild -project /Users/romansafin/Documents/GetThisBuild/GetThisBuild/Carthage/Checkouts/SwiftyXMLParser/SwiftyXMLParser.xcodeproj -scheme SwiftyXMLParser -configuration Release -derivedDataPath /Users/romansafin/Library/Caches/org.carthage.CarthageKit/DerivedData/10.0_10A255/SwiftyXMLParser/4.2.0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/kw/c7dppsfx5l7cvy75jhftwllh0000gn/T/SwiftyXMLParser SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/romansafin/Documents/GetThisBuild/GetThisBuild/Carthage/Checkouts/SwiftyXMLParser)

This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/kw/c7dppsfx5l7cvy75jhftwllh0000gn/T/carthage-xcodebuild.AbPXKF.log

Xcodebuild log attached
carthage-xcodebuild.AbPXKF.log

@kazuhiro4949
Copy link
Member

kazuhiro4949 commented Oct 9, 2018

@RomaSafin
Hi. Thanks for giving your build log.

There was no error log on my environment when I built SwiftyXMLParser for macOS app in Mojave.
Could you tell me which version of Xcode your Carthage use?
You can check it with the following command.

xcode-select -p

You can change it with the following command.

sudo xcode-select -s /Your/Xcode10/Path/Xcode.app/Contents/Developer

@RomaSafin
Copy link
Author

@kazuhiro4949
Hi. Thanks for advise.

I've checked it and i was using Xcode 10.

@RomaSafin
Copy link
Author

One more thing. I've found that when i'm trying to 'carthage update' trough terminal in generated log files from time to time appears randomized settings
SDKROOT = appletvos12.0
Wich is not expected due i'm trying to build it for iphoneos12.0
Cannot see where this randomization come from.
carthage-xcodebuild.Mpv1r0.log

Also done git clone of SwiftyXMLParser repo and tried to specify local repo in cart file. Still getting the same error:
The following build commands failed:
CompileC

@kazuhiro4949
Copy link
Member

kazuhiro4949 commented Oct 22, 2018

If you want a framework only for iOS, you need to add 'platform' option.

carthage update SwiftyXMLParser --platform iOS

SwiftyXMLParser is supporting ios, macos and tvos. Carthage build framework for each platform unless you add the option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants