kradalby / SwiftExif

Swift wrapper around libexif
28 stars 7 forks source link

Problem with Xcode 12 #2

Open mike-engel opened 2 years ago

mike-engel commented 2 years ago

Thanks for making this! After installing libexif and libiptcdata, and adding this to my project, I'm running into an issue that's preventing a successful build. I'm not sure if I missed anything or there are extra steps that need to be taken?

Error

/Users/mike/Library/Developer/Xcode/DerivedData/Photos-clhkcmrplqtaiyarpvljhuwyoxgs/SourcePackages/checkouts/SwiftExif/Sources/ExifFormat/exif_format.c:9:10: 'libexif/exif-entry.h' file not found

I've tried adding the paths from pkg-format to the "Search Paths" build settings, but it still isn't working. I'm not getting any other useful build logs, either.

kradalby commented 2 years ago

Hi @mike-engel

Sorry for the late reply.

I don't actually use Xcode (I use nvim) so I can't recreate this.

I think my "best" suggestion would be to have a look at my "munin" repo which is where I use this project and see if there is anything different from my setup there?

In .drone.yaml there will be the build setup I use to create the binary.

mike-engel commented 2 years ago

No worries @kradalby. I forked this to experiment with it, and it seemed like adding exif and iptc to the dependencies of ExifFormat solved the issue for me https://github.com/kradalby/SwiftExif/blob/87dd6e3b47d0005551d9e373536a734366325ca5/Package.swift#L42

kradalby commented 2 years ago

Ah good, would you be up for making a pr?

mike-engel commented 2 years ago

Thanks for your patience—opened with #3