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

Failure with Carthage for Mac build #45

Closed
skreutzberger opened this issue May 11, 2016 · 8 comments
Closed

Failure with Carthage for Mac build #45

skreutzberger opened this issue May 11, 2016 · 8 comments
Labels

Comments

@skreutzberger
Copy link

While installing GRDB 0.6.1 via Carthage with a Mac as platform I get the following failure:

screenshot 2016-05-11 at 09 51 00

@groue
Copy link
Owner

groue commented May 11, 2016

Hello @skreutzberger,

I can't reproduce your issue:

$ carthage version
0.16.2
$ xcodebuild -version
Xcode 7.3.1
Build version 7D1014
$ cat Cartfile
github "groue/GRDB.swift" ~> 0.61.0
$ carthage update
*** Cloning GRDB.swift
*** Checking out GRDB.swift at "v0.61.0"
*** xcodebuild output can be found in /var/folders/40/k86369xs6ql1tnvs7twcmgq00000gq/T/carthage-xcodebuild.6O0jFT.log
*** Building scheme "GRDBOSX" in GRDB.xcworkspace
*** Building scheme "GRDBCipherOSX" in GRDB.xcworkspace
*** Building scheme "GRDBCipheriOS" in GRDB.xcworkspace
*** Building scheme "GRDBiOS" in GRDB.xcworkspace
(snip: some warning)
$ ls -1 Carthage/Build/Mac/
GRDB.framework
GRDB.framework.dSYM
GRDBCipher.framework
GRDBCipher.framework.dSYM

Can you give more context?

@skreutzberger
Copy link
Author

I tried it now with different carthage update calls (with and without platform) but it still does not work. Here a screenshot
screenshot 2016-05-11 at 10 49 00

In the log file it says:

checking for library containing fdatasync... none required
checking for library containing dlopen... none required
configure: creating ./config.status
config.status: creating Makefile
config.status: creating sqlcipher.pc
config.status: creating config.h
config.status: executing libtool commands
make: *** No rule to make target `/Users/sebastian/...PATHTOPROJECT...', needed by `Makefile'.  Stop.
Command /bin/sh failed with exit code 2

@skreutzberger
Copy link
Author

Interestingly it works without any issues if I download the project and build the OSX target by myself.

@groue
Copy link
Owner

groue commented May 11, 2016

The building of the GRDBCipher frameworks have a long history of trouble with Carthage (previous issue: #41).

GRDBCipher needs to build sqlite from scratch, with a Makefile. The issue used to be that environment variables were not properly set, causing make to fail. I'm not even sure of the actual responsible of those issues: is it Carthage, Xcode, the build tools? Finding a workaround has been everything but trivial.

But in your case, I'm not sure this is the same issue, even though make is involved again.

My advice: try to activate the most verbose flags, and open the sharpest eye. I'll try to help you investigate. But until your trouble can be reproduced, my efficiency will be fairly limited.

@skreutzberger
Copy link
Author

Understood. To save time I will embed the framework directly and try to find the issue later.

@groue
Copy link
Owner

groue commented May 11, 2016

All right @skreutzberger. I'll be there when you come back!

@groue groue added the bug label May 12, 2016
@simme
Copy link

simme commented Aug 21, 2016

I'm also having issues using GRDB with Carthage. This seems to be the failing step:

A shell task (/usr/bin/xcrun xcodebuild -workspace /Users/simme/Projects/MyProject/Carthage/Checkouts/GRDB.swift/GRDB.xcworkspace -scheme GRDBCipheriOS -configuration Release -sdk iphoneos ONLY_ACTIVE_ARCH=NO BITCODE_GENERATION_MODE=bitcode CODE_SIGNING_REQUIRED=NO CODE_SIGN_IDENTITY= CARTHAGE=YES clean build) failed with exit code 65:
--- xcodebuild: WARNING: Unable to open project file '/Users/simme/Projects/MyProject/Carthage/Checkouts/GRDB.swift/Playgrounds/TransactionObserver.playground' in workspace '/Users/simme/Projects/MyProject/Carthage/Checkouts/GRDB.swift/GRDB.xcworkspace'.
--- xcodebuild: WARNING: Unable to open project file '/Users/simme/Projects/MyProject/Carthage/Checkouts/GRDB.swift/Playgrounds/JSONSynchronization.playground' in workspace '/Users/simme/Projects/MyProject/Carthage/Checkouts/GRDB.swift/GRDB.xcworkspace'.
--- xcodebuild: WARNING: Unable to open project file '/Users/simme/Projects/MyProject/Carthage/Checkouts/GRDB.swift/Playgrounds/DatabaseTimestamp.playground' in workspace '/Users/simme/Projects/MyProject/Carthage/Checkouts/GRDB.swift/GRDB.xcworkspace'.
--- xcodebuild: WARNING: Unable to open project file '/Users/simme/Projects/MyProject/Carthage/Checkouts/GRDB.swift/Playgrounds/Tour.playground' in workspace '/Users/simme/Projects/MyProject/Carthage/Checkouts/GRDB.swift/GRDB.xcworkspace'.
--- xcodebuild: WARNING: Unable to open project file '/Users/simme/Projects/MyProject/Carthage/Checkouts/GRDB.swift/Playgrounds/UserDefaults.playground' in workspace '/Users/simme/Projects/MyProject/Carthage/Checkouts/GRDB.swift/GRDB.xcworkspace'.
--- xcodebuild: WARNING: Unable to open project file '/Users/simme/Projects/MyProject/Carthage/Checkouts/GRDB.swift/Playgrounds/Record.playground' in workspace '/Users/simme/Projects/MyProject/Checkouts/GRDB.swift/GRDB.xcworkspace'.

Builds just fine if I embed the project file in my Xcode project. I'm on the Swift3 branch. Xcode 8 beta 6.

Let me know if there's anything else I can provide to help with debugging. :) Embedding works for now, so no hurry.

@groue
Copy link
Owner

groue commented Sep 1, 2016

Hello @simme Thanks for the report. Something has to be done with Carthage, I agree. The setup is too fragile.

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

3 participants