ndfred / iperf-ios

iPerf 3 library and app for iOS
Other
186 stars 26 forks source link

Error while integrating iperf 3.0 files #38

Closed ajsagar92 closed 3 years ago

ajsagar92 commented 3 years ago

Screenshot 2020-10-22 at 2 41 49 PM Hi,

I am integrating iperf in framework I am developing in objective c for iOS and macOS. After copying source files of iperf3.0 (c files), I am getting error on iOS/macOS system files like NSObject, AppKit.h etc. I am not sure what I am missing. But iperf files showing error for arm64 like in screenshot attached.

Universal Framework Minimum Target: iOS: 11.0 macOS: 10.11

Shared code for iOS and macOS framework developed mainly in Objective C

ndfred commented 3 years ago

It looks like you have a PCH or something that if you include in a C file will barf. Just disable it for these files, or use a macro to only include Objective-C headers in your PCH if you're dealing with an m or mm file. Closing as it's not really related to the project.