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 support #36

Closed
RoyalIcing opened this issue Apr 24, 2015 · 4 comments
Closed

Carthage support #36

RoyalIcing opened this issue Apr 24, 2015 · 4 comments

Comments

@RoyalIcing
Copy link
Contributor

Hi,

I’ve had problems with CocoaPods before, so liking the look of the more straight forward Carthage. I was wondering if I had to do anything special to get Ono working with Carthage.

I get the error:
Project "Ono.xcodeproj" has no shared schemes

I will try building Ono manually and adding that to my Xcode project. Thanks.

@RoyalIcing
Copy link
Contributor Author

Opening Ono.xcodeproj I can't work out how to produce a Ono.framework. I had some success earlier I think using the command line after reading Carthage’s source, but it seems like what that produced only worked in the debug build not release.

I am having issues with Ono building in my Mac Swift-based project. Alamofire (which has Carthage support) works fine I think, but I am not sure of the best way to add Ono to my project.

My model code is in its own target, a framework. That is the piece that is failing to build, it had been working in Debug builds but then failed with Release. It just says ‘can't find framework Ono’.

I’ve even tried adding the Ono.m and .h files to my framework just to see if it can build that all together but I can't seem to make a bridging file for Swift there.

@RoyalIcing
Copy link
Contributor Author

OK, have found that Ono has shared schemes support, so now I am just requesting that this be released in a new version of Ono for Carthage can find it. Instead I have used: github "mattt/Ono" "c94fd5ec2e303be4be5c6c9c81ed5f3e810ab436"

I had a problem:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.10.sdk/usr/include/libxml2/libxml/xmlreader.h:13:10: 'libxml/xmlversion.h' file not found

But fixed it by adding libxml to the search header paths: jansanz/AFRaptureXMLRequestOperation#3

Now still getting this problem in my app target, which has a framework of mine, which uses the Ono framework. I have no idea why my app would be wanting Ono, as all that code referring to it (I searched) is in my model framework.
ld: framework not found Ono for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

@RoyalIcing
Copy link
Contributor Author

My own woes I got working. Ono and Alamofire both have fantastic APIs, thanks. So feel free to close this – if I could just request a new version be released as the commit with Carthage support won’t be found by Carthage yet.

@mattt
Copy link
Owner

mattt commented May 11, 2015

Try with 1.2.2, which was just released.

@mattt mattt closed this as completed May 11, 2015
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