ios - 'pod lib lint' conflict between 'route.h' and <net/route.h> -


i'm trying run pod lib lint on cocoa framework swift project , returns following error:

- error | [ios] xcodebuild:  /myproject/route.h:164:8: error: redefinition of 'rt_msghdr2' - note  | [ios] xcodebuild:  /applications/xcode.app/contents/developer/platforms                              /iphonesimulator.platform/developer/sdks/iphonesimulator10.3.sdk                              /usr/include/net/route.h:164:8:                               note: previous definition here 

i have objective-c class (networkutil.h - networkutil.m) following import structure.

#if target_iphone_simulator #include <net/route.h> #else #include "route.h" #endif 

this, because route.h file exist in ios simulator sdk, not in actual ios sdk (https://stackoverflow.com/a/23411469/5973853). check whether iphone simulator, original < net/route.h > imported, or runs on actual iphone, in case gets manually copied 'route.h'.

xcode manages build , run whole project correctly, xcodebuild used pod lib lint doesn't. reason, imports both < net/route.h > , 'route.h' without considering #if_target_iphone_simulator validation , makes conflict due "redefinition of several functions".

is there solution or workaround conflict?


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -