-
Notifications
You must be signed in to change notification settings - Fork 451
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XCode 8 error - 'objc_unretainedObject' is unavailable: use a (__bridge id) cast instead #218
Comments
faced same issue. This might help |
@hyd00 AQGridViewAnimatorItem * animatingItem = (AQGridViewAnimatorItem *)objc_unretainedObject(CFDictionaryGetValue( animatingCellTable, (void *)oldIndex )); replaced with "(__bridge void *)" will show the error "Incompatible types casting 'NSUInteger'to 'void *'with a __bridge cast". |
@macApps try changing |
@hyd00 it still doesn't work, Incompatible types casting 'NSUInteger'to 'NSUInteger *'with a __bridge cast. |
I'm having issues with this as well. |
You should replace it with a cast of the same type, in this case: AQGridViewAnimatorItem * animatingItem = (AQGridViewAnimatorItem *)objc_unretainedObject(CFDictionaryGetValue( animatingCellTable, (void *)oldIndex )); becomes: AQGridViewAnimatorItem * animatingItem = (__bridge AQGridViewAnimatorItem *)(CFDictionaryGetValue( animatingCellTable, (void *)oldIndex )); |
I recently upgraded to XCode 8,after installing pods correctly i get the following error on trying to build my project-
AQGridView/Classes/AQGridViewCell.m:199:57: 'objc_unretainedObject' is unavailable: use a (__bridge id) cast instead
Similar errors are given at about 10 different lines in the pod.
Please update the Repo for XCode 8.
The text was updated successfully, but these errors were encountered: