Comments (4)
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.
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.
@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.
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)
- Different phash same image HOT 2
- alpha channel HOT 1
- Cocoapods 1.5 and CocoaImageHashing.h not found HOT 3
- Any plans for Swift Package Manager support? HOT 2
- Can you add example in swift too? HOT 4
- Can I use that to make a groups of similar images from source array? HOT 10
- Get similar images
- [Question] Cross-library capable? HOT 4
- I want to use Concurrent, stream based similarity search but don't understand how to do that. HOT 2
- Cocoapods version is outdated
- dHash underflow on OS X HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocoaimagehashing.