igorskh / iperf-swift

An easy to use Swift wrapper for iPerf3
6 stars 5 forks source link

No such module 'IperfSwift' #10

Closed LeoGui closed 2 months ago

LeoGui commented 2 months ago

Hi,

I use Swift 5 in project, I don't know if it can be a problem. But, I cannot use this library. The module is correctly imported because when I try :

var iperfRunner: IperfRunner?

Xcode suggests me to import IperfSwift but I can't build after that.

igorskh commented 2 months ago

Hi @LeoGui,

Could you provide the build error you are getting?

LeoGui commented 2 months ago

Capture d’écran 2024-07-17 à 13 46 00 Capture d’écran 2024-07-17 à 13 46 36

As you can see the module is correctly imported ...

igorskh commented 2 months ago

Can you try running this two commands? I also encountered this error, this seemed to resolve it.

image
LeoGui commented 2 months ago

It doesn't work...

igorskh commented 2 months ago

I've just created a clean iOS project in Xcode 15 and imported this package, do you have it both in package dependencies and in the targets under "Frameworks, Libraries and Embedded Content"? What kind of project type did you create?

image

image

LeoGui commented 2 months ago

Oh, it was that, thanks a lot !!

LeoGui commented 2 months ago

I saw in previous comment that someone speaks about bidirectional. Do you think you will integrate it or the library is closed ?

igorskh commented 2 months ago

Glad I could help.

I'll have a look into #9. I didn't have to time to work on it. I see that iPerf3 has --bidir option, maybe it'll be not so complicated to integrate.

I'm closing this issue since it's resolved.