LGAlertView
LGAlertView copied to clipboard
Xcode 14.3 出现错误
我的 Xcode 13.1 可以正常使用 升完14.3就出现这个错误了
No visible @interface for 'LGAlertView' declares the selector 'alertViewWithTextFieldsAndTitle:message:numberOfTextFields:textFieldsSetupHandler:buttonTitles:cancelButtonTitle:destructiveButtonTitle:delegate:'

该怎么解决这个问题
遇到一样的问题, 怎么解决的?
将里面的方法更改为: return [[self alloc] initWithTextFieldsAndTitle:title message:message numberOfTextFields:numberOfTextFields textFieldsSetupHandler:textFieldsSetupHandler buttonTitles:buttonTitles cancelButtonTitle:cancelButtonTitle destructiveButtonTitle:destructiveButtonTitle delegate:delegate];
A similar problem after updating xCode :(
Same issue I'm facing does anyone knows any fix?
a quick workaround is to rename the alertViewWithTextFieldsAndTitle
to initWithTextFieldsAndTitle
, but this modifies the pod
a quick workaround is to rename the
alertViewWithTextFieldsAndTitle
toinitWithTextFieldsAndTitle
, but this modifies the pod
There is already a pull request for this but nobody is merging it. Will this fix the crash? I can't reproduce the crash as app is not compiling in xcode 14.3 and 15 beta
Indeed. I posted the comment before noticing the pull request. I am not aware of a crash though. i resolved the issue by pointing the podfile to the fork that fixes the build:
pod 'LGAlertView', :git => "https://github.com/yinyakun/LGAlertView.git", :branch => "master"
You will also have to remove the Pods/LGAlert folder and then run pod install again. Sorry for the formatting, on mobile.
Indeed. I posted the comment before noticing the pull request. I am not aware of a crash though. i resolved the issue by pointing the podfile to the fork that fixes the build:
pod 'LGAlertView', :git => "https://github.com/yinyakun/LGAlertView.git", :branch => "master"
You will also have to remove the Pods/LGAlert folder and then run pod install again. Sorry for the formatting, on mobile.
Thanks for the answer.
pod 'LGAlertView', :git => "https://github.com/yinyakun/LGAlertView.git", :branch => "master"
Btw I was using LGAlertView version 2.3.0 because with newer versions I was having some issues with older iOS versions. So if I use your fork I need to test everything again. I'll let you know If I face any issues.
The fix https://github.com/Friend-LGA/LGAlertView/pull/84