Errors from converting old version to latest version.

we developed a programme in swift 3 but now, i am running in latest version xcode 10.2 swift in that we are getting so many erros, after that for every building time changing the errors, i mean with out changing any modifications in programme. i tried by reinstalling pods also but iam getting error 1.Could not build Objective-C module 'IMGLYColorPicker', 2. Header 'IMGLYColorPicker-Swift.h' not found

Replies

Did you do a clean build folder ?

yeah, i done that but errors are not cleared again i'm getting errors like...

1.Command CompileSwift failed with a nonzero exit code

2.Header 'IMGLYColorPicker-Swift.h' not found

3.Could not build Objective-C module 'IMGLYColorPicker'

Could you search for IMGLYColorPicker-Swift.h, in the previous version ?


And search for it in tne new.

I searched in derived data, i did't found IMGLYColorPicker-Swift.h file. aftter that bugs changing randomly at everybuilding time, without any modifications in programme.


I got an error Binary operator '!=' cannot be applied to two 'ExtendedSRGBValue' operands, how can i rectify? , to solve this bug i tried bulid cleaner and restarted the xcode.

How is ExtendedSRGBValue defined ?


Probably the == and != operators have not been defined for it.

You could either:

- define an extension

- or compare each component (I don't know the names of properties):

func isEqual(color1: ExtendedSRGBValue, color2: ExtendedSRGBValue) -> Bool {

return color1.redValue == color2.redValue && color1.blueValue == color2.blueValue ………

}

then test if !equal(color1, color2)