Code Monkey home page Code Monkey logo

Comments (4)

nicoara avatar nicoara commented on August 25, 2024 2

Any update on this? I have the following problem trying to use the library in Swift:
http://stackoverflow.com/questions/42394692/swift-use-of-undeclared-type-for-objective-c-library?noredirect=1#comment71937205_42394692

--
update: solved the issue. Cocoapods does not install this library correctly in Xcode 8.2.
At Target level, in Build Settings -> Search Paths -> Header Search Paths: there is a path generated by Cocoapods that does not correspond to any actual folder structure: "${PODS_ROOT}/Headers/Public/CocoaImageHashing" when the /Headers/Public structure does not exist. I removed that and remained with ${PODS_ROOT}/CocoaImageHashing , corresponding to the folder Projectname/Pods/Pods-Projectname.debug.xcconfig and now the library was seen.
as an aside, the #import <CocoaImageHashing/CocoaImageHashing.h> is imported inside the Bridging Header file.

from cocoaimagehashing.

ameingast avatar ameingast commented on August 25, 2024

The combination of Cocoapods and Objective-C works, but I'm not sure about Swift and Cocoapods.

I'm currently using CocoaImageHashing in a large macOS project (100% Swift) through Carthage and it works just fine.

from cocoaimagehashing.

ejsarge avatar ejsarge commented on August 25, 2024

@ameingast Thanks. I tried Carthage and I, too, found it worked just fine too.
Perhaps I might suggest the installation instructions in the Readme be updated to include Carthage instructions?
This is especially for people new to Swift who don't know the build tool options and just blindly follow what the library says...

The hashing worked great, btw.

from cocoaimagehashing.

ameingast avatar ameingast commented on August 25, 2024

The documentation was updated by @sarah-j-smith.

I'm closing this for now. If there's any more trouble with Swift + Cocoapods, please open another issue.

from cocoaimagehashing.

Related Issues (12)

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.