Coder Social home page Coder Social logo

Cocoapod? about swiftcheck HOT 16 CLOSED

typelift avatar typelift commented on June 18, 2024
Cocoapod?

from swiftcheck.

Comments (16)

CodaFi avatar CodaFi commented on June 18, 2024

Would you be willing to contribute one? I don't use pods myself and have done it very wrong in the past.

from swiftcheck.

buildreactive avatar buildreactive commented on June 18, 2024

I might be able to do that... Let me look into it. We have a need of integrating a good check library into our project, and a strong preference for Cocoapods where possible...

from swiftcheck.

CodaFi avatar CodaFi commented on June 18, 2024

I'd appreciate anything you could do.

from swiftcheck.

buildreactive avatar buildreactive commented on June 18, 2024

Started looking into this – but I'm having trouble with a few things. Would be nice to have the docs improved to include information on how to build and install into other projects, etc.

Right now – seem to be a bit stuck on how to generate a framework for inclusion in an iOS Project.

Also running into some build problems during podding... will come back to those. If you can give a little advice on your build setup / install instructions that could prove helpful.

from swiftcheck.

CodaFi avatar CodaFi commented on June 18, 2024

You're right in that the README should definitely have installation instructions. As for the failing pod builds, can you be more specific?

from swiftcheck.

buildreactive avatar buildreactive commented on June 18, 2024

Yep... here's the error I'm trying to figure out. The build works fine in Xcode, but during podding I get this...

/Users/zbeckman/Projects/SwiftCheck/SwiftCheck/TestOperators.swift:120:13: error: cannot load underlying module for 'XCTest'
import func XCTest.XCTFail
^

** BUILD FAILED **

The following build commands failed:
CompileSwift normal x86_64 /Users/zbeckman/Projects/SwiftCheck/SwiftCheck/Arbitrary.swift
CompileSwift normal x86_64 /Users/zbeckman/Projects/SwiftCheck/SwiftCheck/Check.swift
CompileSwift normal x86_64 /Users/zbeckman/Projects/SwiftCheck/SwiftCheck/Equatable.swift
CompileSwift normal x86_64 /Users/zbeckman/Projects/SwiftCheck/SwiftCheck/Gen.swift
CompileSwift normal x86_64 /Users/zbeckman/Projects/SwiftCheck/SwiftCheck/Lattice.swift
CompileSwift normal x86_64 /Users/zbeckman/Projects/SwiftCheck/SwiftCheck/Modifiers.swift
CompileSwift normal x86_64 /Users/zbeckman/Projects/SwiftCheck/SwiftCheck/Property.swift
CompileSwift normal x86_64 /Users/zbeckman/Projects/SwiftCheck/SwiftCheck/Random.swift
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
(9 failures)
-> SwiftCheck (1.0.0b)
- ERROR | [iOS] Returned an unsuccessful exit code.
- ERROR | /Users/zbeckman/Projects/SwiftCheck/SwiftCheck/TestOperators.swift:120:13: error: cannot load underlying module for 'XCTest'

from swiftcheck.

CodaFi avatar CodaFi commented on June 18, 2024

Ah! Take a look at how other frameworks that need to link XCTest get around that. We use header search paths to trick Xcode; I'm not sure how to do that with Pods tho.

from swiftcheck.

CodaFi avatar CodaFi commented on June 18, 2024

Here's Quick

from swiftcheck.

buildreactive avatar buildreactive commented on June 18, 2024

Aha! Thanks that helps...

from swiftcheck.

buildreactive avatar buildreactive commented on June 18, 2024

Alright, this is a bit frustrating – not sure if you are more familiar with the command line compiler than I am. I don't use it...

Running into a problem where overloaded operators (such as <^>) are throwing errors during compile:

/Users/zbeckman/Projects/SwiftCheck/SwiftCheck/Gen.swift:205:13: error: operator implementation without matching operator declaration
public func <^> <A, B>(f : A -> B, g : Gen) -> Gen {
/Users/zbeckman/Projects/SwiftCheck/SwiftCheck/Rose.swift:30:12: error: operator is not a known binary operator
return f <^> self

Now, obviously these are declared in Operators.swift. My first thought was to try and import the SwiftCheck package – but that doesn't work ("can't import package being compiled"). If you have any ideas please do holler... will research more, but I have to get back to a few other things for this afternoon...

from swiftcheck.

CodaFi avatar CodaFi commented on June 18, 2024

They come from another TypeLift package called Operadics.

from swiftcheck.

CodaFi avatar CodaFi commented on June 18, 2024

You're gonna want to enable submodules and let the pod see External/Operadics

from swiftcheck.

CodaFi avatar CodaFi commented on June 18, 2024

With the merging of #83 SwiftCheck is now registered with Cocoapods and includes a podspec on the 1.2 side.

I believe that is the end of this issue, then. Closing.

from swiftcheck.

buildreactive avatar buildreactive commented on June 18, 2024

Awesome! Looking forward to seeing it pop into the swift 2 branch.

from swiftcheck.

buildreactive avatar buildreactive commented on June 18, 2024

Hm... Just tried (on my own fork) adding the podspec to swift-develop – The pod downloads and integrates just fine, but during compile I get a lot of compiler errors re: "not a legal operator." Looks like Operadics is not getting pulled into the project. So, it would seem that if you are using a purely Cocoapod setup a piece is still missing...?
gen_swift

from swiftcheck.

CodaFi avatar CodaFi commented on June 18, 2024

Operadics was added post-1.2 as we split Swiftz into a bunch of other frameworks. You must let the podspec see the Operadics checkout.

from swiftcheck.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.