Riccardo Caroli
Riccardo Caroli

Reputation: 341

why can't I get SDWebImage working with swift?

At build time, it returns an error on this line

typedef void(^SDWebImageNoParamsBlock)(voidvoid);

The error that Xcode gives me is:

A parameter list without types is only allowed in a function definition

project file with error

thanks all :)

Upvotes: 1

Views: 103

Answers (2)

Mitesh Mewada
Mitesh Mewada

Reputation: 60

Check line number 98 you are entered two time void

typedef void(^SDWebImageNoParamsBlock)(void);

replace this line

Upvotes: 1

Shehata Gamal
Shehata Gamal

Reputation: 100503

It should be

typedef void(^SDWebImageNoParamsBlock)(void);

This a screenshot from the file you have may be you have edited it mistakenly when typing somehow

enter image description here

Upvotes: 4

Related Questions