alexiscreuzot / SwiftyGif

High performance GIF engine
MIT License
2.02k stars 212 forks source link

Cannot build pod with new Swift compiler (new build system) #57

Closed JohanDufau closed 6 years ago

JohanDufau commented 6 years ago

Hello,

When we use this pod (swift4 branch) in a project that is built with the new Swift compiler (in Xcode, in the File menu -> Project/Workspace settings -> select New build system), there is a issue when building:

unable to build node: '.../SwiftyGif/SwiftyGif.framework/Info.plist' (node is produced by multiple commands; e.g., '.../SwiftyGif/SwiftyGif.framework/Info.plist .../SwiftyGif/SwiftyGif/Info.plist' and '.../SwiftyGif/SwiftyGif.framework/Info.plist .../SwiftyGif/Info.plist')

This is due to an extra plist file present in the project.

This should be simply fixed being more specific in the podspec for source files declarations. For instance:

s.source_files = 'SwiftyGif/*{.h, .swift}'

Thanks!

jigs611989 commented 6 years ago

Same issue... Try change swift language version to 3.2 in Xcode 9.1, select pod project then select SwiftGif and change swift version only for this lib

screen shot 2017-11-03 at 11 23 01 pm
alexiscreuzot commented 6 years ago

Should be ok with last commits