when i'm trying to build my project I have a new error where objc_retainedObject()
is used.
I have the error message objc_retianedObject is unavailable: use CFBridgingRelease() or a (__bridge_transfer id) cast instead
.
I replaced the usages of objc_retainedObject()
by CFBridgingRelease
and there are no longer errors and I can run the app, but when the app is going to display my QRCode-scanning view, it crashed without messages.
It is the same when I put #define objc_retainedObject(o) ((__bridge_transfer id)(objc_objectptr_t)(o))
which was supposed to be a solution.
I believe that it is an XCode configuration or a missing library problem. Any ideas?