Include a non-ARC library in an ARC application?

So is this possible?

I get this error several times:

ARC forbids Objective-C objects in structs or unions 

For example:

 typedef struct { BOOL _field1; union { struct { id _field1; id _field2; } _field1; GSEventRef _field2; } _field2; } XXStruct_CKAdxD; 
+8
ios automatic-ref-counting
source share
1 answer

You need to add -fno-objc-arc to the compiler options for each file that does not / cannot use ARC. Inside Xcode, you do this from the source compilation phase of your target. Double-click the file and add -fno-objc-arc to the window that appears.

+29
source share

All Articles