mattt/Ono

Carthage support

RoyalIcing opened this issue · 4 comments

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.

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.

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)

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 commented

Try with 1.2.2, which was just released.