-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plugin validation with xcode build #173
Comments
Hey, sorry can't respond until mid august due to vacation time for everyone that could have input - hope someone else may chime in before. |
Couldn't find anyone who recognised it, how does it work out of CI if you build from terminal? |
Please reopen if you have further information. |
I think I have run into a similar (or same) issue that the original author of this issue had. Over in liveview-native/liveview-native-core#104, I've added benchmarks via this swift plugin. I must complement on this project. It's easy to write some benchmarks and simple to use. Anyway, in my case, I've got some swift tests that normally work via When I add the following to my .executableTarget(
name: "LiveViewNativeCoreBenchmarks",
dependencies: [
.product(name: "Benchmark", package: "package-benchmark"),
"LiveViewNativeCore",
],
path: "./crates/core/liveview-native-core-swift/Benchmarks/LiveViewNativeCore",
plugins: [
.plugin(name: "BenchmarkPlugin", package: "package-benchmark")
]
), The xcodebuild command errors:
Weirdly, |
Well, I (mostly) figured it out. I'm not sure why but adding the Definitely out of the scope of this issue but I then get various linktime/build errors:
|
Hey @simlay
Yeah, a bit out of scope for this issue - we've only been running on macOS and Linux really, so I'm not surprised if there's some friction for other Apple platforms - for tvOS you might try disabling the jemalloc support as mentioned here: for iOS, there is an ifdef in
that makes getRusage to be unavailable - happy to take a PR on that ifdef (and any others if there's more) needed to get it to work on iOS (we currently don't build any benchmarks there internally). Please open separate issues for any follow up that is concretely actionable if you don't mind? |
@simlay I added the ifdefs here: Hopefully that makes it work on iOS at least, do give it a try. |
I'm running into issues on CI where I'm building my code for iOS and have to use the xcodebuild command which fails with the following error.
Any others that have dealt with this? I unfortunately can't add a OS condition to a plugin declaration in the Package.swift file.
The text was updated successfully, but these errors were encountered: