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

Failed to build master branch using Carthage #654

Closed
mssun opened this issue Apr 30, 2018 · 1 comment
Closed

Failed to build master branch using Carthage #654

mssun opened this issue Apr 30, 2018 · 1 comment
Assignees
Labels

Comments

@mssun
Copy link
Contributor

mssun commented Apr 30, 2018

I have this in my Carthage file:

github "libgit2/objective-git" "master"

When building for iOS, I got an error:

*** Checking out objective-git at "7b3348f5a9c591e86599860e9dd530c3ccffb0a0"
*** Building scheme "ObjectiveGit iOS" in ObjectiveGitFramework.xcworkspace
Build Failed
	Task failed with exit code 65:
	/usr/bin/xcrun xcodebuild -workspace /Users/user/Repos/passforios/Carthage/Checkouts/objective-git/ObjectiveGitFramework.xcworkspace -scheme ObjectiveGit\ iOS -configuration Release -derivedDataPath /Users/user/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/objective-git/7b3348f5a9c591e86599860e9dd530c3ccffb0a0 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath /var/folders/p4/ry0l86nd70b9nfzjftxdqtcc0000gn/T/objective-git SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO STRIP_INSTALLED_PRODUCT=NO (launched in /Users/user/Repos/passforios/Carthage/Checkouts/objective-git)

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

Here is the error message I find from the log:

ld: '/Users/user/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/objective-git/7b3348f5a9c591e86599860e9dd530c3ccffb0a0/Build/Intermediates.noindex/ArchiveIntermediates/ObjectiveGit iOS/BuildProductsPath/Release-iphoneos/Nimble.framework/Nimble' does\
 not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. file '/Users/user/Library/Caches/org.carthage.CarthageKit/DerivedData/9.3_9E145/objective-\
git/7b3348f5a9c591e86599860e9dd530c3ccffb0a0/Build/Intermediates.noindex/ArchiveIntermediates/ObjectiveGit iOS/BuildProductsPath/Release-iphoneos/Nimble.framework/Nimble' for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@phatblat
Copy link
Member

phatblat commented May 3, 2018

Carthage isn't supposed to build Nimble, but apparently a dependency from the iOS target slipped in there. #655 should resolve this.

@phatblat phatblat self-assigned this May 3, 2018
@phatblat phatblat added the bug label May 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants