Categories in Objective-C aren't working

前端 未结 5 939
时光说笑
时光说笑 2020-12-16 18:51

I\'m developing an iOS application that needs to deploy to iOS 3.1.3. I need to extend some of the functionality of the NSData class and am using the following code inside N

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-16 19:10

    I had the same issue with ARC project which was linking with non-ARC module having category extension.

    Fixed the issue by adding "Other Linker Flags: -all_load" in parent ARC project.

提交回复
热议问题