Include non-ARC library in an ARC app?

后端 未结 1 1763
陌清茗
陌清茗 2020-12-16 22:30

So, is it possible?

I get this error multiple times:

ARC forbids Objective-C objects in structs or unions

For example here:

相关标签:
1条回答
  • 2020-12-16 22:53

    You need to add -fno-objc-arc to the compiler options for each file that doesn't / can't use ARC. Within Xcode you do this from the 'Compile Sources' build phase of your target. Double click the file and add -fno-objc-arc to the box that pops up.

    0 讨论(0)
提交回复
热议问题