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

2.0: Carthage build fails #1947

Closed
rajagp opened this issue Nov 2, 2017 · 3 comments
Closed

2.0: Carthage build fails #1947

rajagp opened this issue Nov 2, 2017 · 3 comments
Assignees
Milestone

Comments

@rajagp
Copy link
Contributor

rajagp commented Nov 2, 2017


  • Version: DB 18
  • Client OS: iOS
~/projects/ios/CBL2TestBed/carthage | => carthage update --platform ios
*** Fetching couchbase-lite-ios
*** Checking out couchbase-lite-ios at "e44651965ad4d6eb5d63f3ab182b7b2d3730dc00"
*** xcodebuild output can be found in /var/folders/p0/y1qfxmk527j0sr9v9brcf9rwr3r6xv/T/carthage-xcodebuild.rA76xd.log
*** Building scheme "CBL ObjC" in CouchbaseLite.xcodeproj
Build Failed
          Task failed with exit code 65:
          /usr/bin/xcrun xcodebuild -project /Users/priya.rajagopal/projects/ios/CBL2TestBed/carthage/Carthage/Checkouts/couchbase-lite-ios/CouchbaseLite.xcodeproj -scheme CBL\ ObjC -configuration Release -derivedDataPath /Users/priya.rajagopal/Library/Caches/org.carthage.CarthageKit/DerivedData/9.0.1_9A1004/couchbase-lite-ios/e44651965ad4d6eb5d63f3ab182b7b2d3730dc00 -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES archive -archivePath ./ SKIP_INSTALL=YES GCC_INSTRUMENT_PROGRAM_FLOW_ARCS=NO CLANG_ENABLE_CODE_COVERAGE=NO (launched in /Users/priya.rajagopal/projects/ios/CBL2TestBed/carthage/Carthage/Checkouts/couchbase-lite-ios)
 
This usually indicates that project itself failed to compile. Please check the xcodebuild log for more details: /var/folders/p0/y1qfxmk527j0sr9v9brcf9rwr3r6xv/T/carthage-xcodebuild.rA76xd.log

Manually trying to compile gives the following error

fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.

@pasin pasin changed the title 2.0 Carthage build fails 2.0: Carthage build fails Nov 2, 2017
@pasin
Copy link
Contributor

pasin commented Nov 2, 2017

Both CBL and LiteCore have a script to get repository version and inject the info to the source code prior build. The git rev-parse HEAD fails only when using Carthage with XCode 9 which has git version 2.13.6 (Apple Git-96).

@pasin pasin self-assigned this Nov 2, 2017
@pasin pasin added this to the 2.0.0 milestone Nov 2, 2017
@rajagp
Copy link
Contributor Author

rajagp commented Nov 3, 2017

Actually seems to be an issue with DB018. I tried with DB016 and carthage build works fine on Xcode 8.3 and Xcode 9

@pasin
Copy link
Contributor

pasin commented Nov 3, 2017

LiteCore did not have / run the get_repo_version.sh in DB016. CBL did have though. I'm not sure why CBL doesn't the issue in DB016.

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