ios - Duplicate definition of category 'my_framework' on interface 'NSObject' -


i in process of updating app , common library (dynamic framework). once static library xcode subproject, dynamic framework contains swift code.

when writing app's code, i'm seeing compiler warnings. @ time, they're warnings.

in app's mainviewcontroller include file that's written in swift. , has import of app-swift.h. inside of autogenerated app-swift.h, there section:

#if defined(__has_feature) && __has_feature(modules) @import uikit; @import my_framework; #endif 

inside of 'my_framework' have category method on various files, e.g. nsobject+my_framework.h

now, i'm getting compiler warning mainviewcontroller.m saying "duplicate definition of category 'my_framework' on interface 'nsobject'". drop down supplies locations of both definitions. 1 location actual category header file inside of framework. compiler 'sees' location via being included through pch file. other location links directly app-swift.h file @ line "@import my_framework".

is there way avoid warning?

use @import or #import <fmk/fmk.h> instead #import "fmk.h"


Comments

Popular posts from this blog

Delphi XE2 Indy10 udp client-server interchange using SendBuffer-ReceiveBuffer -

Qt ActiveX WMI QAxBase::dynamicCallHelper: ItemIndex(int): No such property in -

Enable autocomplete or intellisense in Atom editor for PHP -