CCDropDownMenu
CCDropDownMenu copied to clipboard
After install this library there is a small bug.
It is a nice library and it easy to use ,but after install it have a bug.

How to solve it ? Thank you!
Can you provide more details:
- Cocoapods version
- Deployment target
- ARC or MRC
hello,
- cocoapds version 0.1.2
- target v0.1.2
- use ARC
Thanks !
What's your project deployment target? iOS8?
yes, my project deployment target iOS 8.0 thank you !
Have to tried to update your Cocoapods?
I was getting the same error, changing the following made the error go away and builds fine.
CCDropDownMenu.h line 37 change property from weak to unsafe_unretained
@property (nonatomic, unsafe_unretained) id <CCDropDownMenuDelegate> delegate;
Just did a pull request to fix that issue. I used the solution that @exavi proposed. You may also use strong which fixes the error, but that might cause a retain cycle.
Try to add the snippet below to your Podfile and run pod install
.
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
if target.name == 'CCDropDownMenus'
config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '8.0'
end
end
end
end
Let me know if it works.
Hey,
Just got around to adding it and it looks like that fixes the issue.
On Nov 23, 2017, 10:26 PM -0500, Cokile Ceoi [email protected], wrote:
Try to add the snippet below to your Podfile and run pod install. post_install do |installer| installer.pods_project.targets.each do |target| target.build_configurations.each do |config| if target.name == 'CCDropDownMenus' config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '8.0' end end end end Let me know if it works. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
So it's the problem of the Podspec file, not the code. I will release a new version to fix this issue later. For now, just use the Podfile workaround above instead of changing weak
to unsafe_unretained
.
@Cokile Awesome!
Thanks for that link too. I didn't want to use strong
because of the fear of retain cycles. But luckily the Podfile fix seemed to make the error go away.
Thanks again.