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

Carthage issue #96

Closed
MarvinNazari opened this issue Nov 7, 2015 · 8 comments
Closed

Carthage issue #96

MarvinNazari opened this issue Nov 7, 2015 · 8 comments

Comments

@MarvinNazari
Copy link

Hi, When i use APIKit with Carthage i get some errors,
this is my Cartfile
github "ishkawa/APIKit" ~> 1.0

first issue is that it checks out as Checking out APIKit at "1.0.0-beta5"
and i think the problem is that you changed beta5 to point style (beta.6) so it always checks out at beta5
and the second issue is that i get this error:
A shell task failed with exit code 128: fatal: reference is not a tree: 2e38ee3e7a3e1dd01be31edb94368c2f4a840915

@ishkawa
Copy link
Owner

ishkawa commented Nov 7, 2015

Hi, I think the cause of this issue is that 1.0.0-beta5 doesn't follow semver convention. Carthage may assume that the version follows semver convention when you specify ~> operator. To workaround this issue, could you try to install APIKit specifying github "ishkawa/APIKit" "1.0.0-beta.11"?

PS: Non-beta 1.0.0 will be out within a few weeks.

@MarvinNazari
Copy link
Author

yeah it works when i do carthage update --platform iOS but not when i do carthage update --platform iOS --no-use-binaries

@ishkawa
Copy link
Owner

ishkawa commented Nov 9, 2015

Thank you the information to reproduce this issue. I have fixed invalid dependency reference, which caused the build error. Could you confirm APIKit can be installed correctly with carthage update --platform iOS --no-use-binaries? 🙇

@MarvinNazari
Copy link
Author

yeah, it's fixed now 👍

@ishkawa
Copy link
Owner

ishkawa commented Nov 9, 2015

😄

@MarvinNazari
Copy link
Author

Im afraid there is another issue, mainly because of Result,
try with this Cartfile

github "ReactiveCocoa/ReactiveCocoa" ~> 4.0
github "ishkawa/APIKit" "1.0.0-beta.12"

i think it could be solved by changing your Result version in cartfile to 0.6.0-beta.6

@ishkawa
Copy link
Owner

ishkawa commented Nov 15, 2015

@MarvinNazari I've relaxed the version of Result in our 1.0.0-beta.14. Following Cartfile works for me.

github "ReactiveCocoa/ReactiveCocoa" ~> 4.0
github "ishkawa/APIKit" ~> 1.0.0

carthage update output:

*** Fetching APIKit
*** Fetching ReactiveCocoa
*** Fetching Result
*** Checking out Result at "0.6.0-beta.5"
*** Downloading ReactiveCocoa.framework binary at "v4.0-alpha.3"
*** Checking out APIKit at "1.0.0-beta.14"
*** xcodebuild output can be found in /var/folders/wx/b7tlcbs96pvfcsb8kn998r5w0000gn/T/carthage-xcodebuild.RWik2V.log
*** Building scheme "Result-Mac" in Result.xcodeproj
*** Building scheme "Result-tvOS" in Result.xcodeproj
*** Building scheme "Result-iOS" in Result.xcodeproj
*** Building scheme "Result-watchOS" in Result.xcodeproj
*** Building scheme "APIKit-Mac" in APIKit.xcworkspace
*** Building scheme "APIKit-iOS" in APIKit.xcworkspace

@MarvinNazari
Copy link
Author

yeah, it works now. thanks 👍

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