issues
search
phamha98
/
hi
note
Other
2
stars
0
forks
source link
RNFBStorage Property with 'retain (or strong)' attribute must be of object type
#33
Open
phamha98
opened
8 months ago
phamha98
commented
8 months ago
phamha98
commented
8 months ago
By default, libSystem objects such as GCD and XPC objects are declared as
Objective-C types when building with an Objective-C compiler. This allows
them to participate in ARC, in RR management by the Blocks runtime and in
leaks checking by the static analyzer, and enables them to be added to Cocoa
collections.
NOTE: this requires explicit cancellation of dispatch sources and xpc
connections whose handler blocks capture the source/connection object,
resp. ensuring that such captures do not form retain cycles (e.g. by
declaring the source as __weak).
To opt-out of this default behavior, add -DOS_OBJECT_USE_OBJC=0 to your
compiler flags.
This mode requires a platform with the modern Objective-C runtime, the
Objective-C GC compiler option to be disabled, and at least a Mac OS X 10.8
or iOS 6.0 deployment target.