ainame / Swift-WebP

A thin Swift wrapper of libwebp to make your own encoder/decoder app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support installation via Xcode's built-in SPM

ainame opened this issue · comments

That would be very cool :) At the moment we get
Could not build Objective-C module 'CWebP' and webp/encode.h' file not found error messages.

Thank you for giving it a try. I'll find a time to do that but any contributions for that is always welcomed.

Having the same error here.

Just gave this a try for an iOS app and get the following error:

building for iOS Simulator, but linking in dylib built for macOS, file '/usr/local/Cellar/webp/1.1.0/lib/libwebp.dylib' for architecture x86_64

which I think is because you are providing the dependency as a systemLibrary provided by .brew().

Personally, I still get 'webp/encode.h' file not found & Could not build Objective-C module CWebP.
SPM support would be really cool. In our iOS production app, we migrated all the previous Carthage-supported libraries (~20) to SPM and WebP is sadly the last one requiring us to keep Carthage. Let me know if I can help :)

@ainame any news on this front ?

I intended to take a stab at fixing this but annoyingly the issue goes away for me when using a locally checked out version vs a git reference so I'm suspecting this is a bug in Xcode's SPM we just have to wait for Apple to resolve