Error while building SwinjectStoryBoard with XCode 12.5
shalinipk opened this issue · 3 comments
shalinipk commented
Anyone ran into this build error ?
SwinjectStoryboard/Sources/iOS-tvOS/UIStoryboard+Swizzling.m:55:13: error: cast to smaller integer type 'BOOL' (aka 'signed char') from 'id' [-Werror,-Wpointer-to-int-cast]
if ((BOOL)[[SwinjectStoryboard class] performSelector:@selector(isCreatingStoryboardReference)]) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
I ended up manually removing the BOOL type casting so that carthage builds.
My cartfile entry looks like this - github "Swinject/SwinjectStoryboard" "0ca45c83a8aa398c153d8a036c95abb4343cfa0c"
Looking forward to version 2.2.1 for SwinjectStoryboard. Thanks!!
j0d5 commented
Also looking forward! :)
Bawenang commented
Is there any news about this fix? I see that there are two pull reqs that are trying to fix this bug.