Perfect
Perfect copied to clipboard
Compiling on M1 Mac
PerfectLib doesn't compile on M1 macs. I get an error in Log.swift on line 73. Has anyone been able to get this to work?
Cannot convert value of type 'CVaListPointer' to expected argument type '__darwin_va_list?' (aka 'Optional<UnsafeMutablePointer<Int8>>')
You should migrate to a supported project. I went for vapor, and I’m really glad I did.
I might have to but it won't be an easy task. My project is rather large right now. This code compiles fine when compiling for Rosetta, but arm compile doesn't work and I think it all comes down to this line.
Don’t expect getting any support for this framework, it has been abandoned for long time now.
Spoke with the team and they worked with me through it. Created a pull request.
@kjessup at last, I got a chance to test this issue on my M1 MacBook Air, and it does have some surprises. Firstly, without any patches, clone & build PerfectTemplate will cause the same error above, but if just simply clone and run swift test
on PerfectLib
itself, it says all tests passed! I am trying very hard to figure out why it failed this way??