-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Packages that contain tools (e.g. swift-markdown) don't seem to build on iOS #1299
Comments
No idea either. If I'm working w/ such a project within Xcode, the "default" just seems to work. So I'm not sure what is different. |
|
This seems to be affecting both iOS and tvOS targets. For instance also for swift-parsing: These both fail with errors like |
|
I've searched the web a bit but didn't find anything useful. This issue here was the fourth result, giving me high hopes when I scanned the title! :D I've asked on the SwiftPM slack if anyone has any pointers: https://swiftpm.slack.com/archives/C0XFJBKUL/p1635405297012400 |
|
Boris seems to think this is a bug and advised me to file a FB: FB9775323 |
|
I'm keep seeing packages fail with this, for instance swift-json is right now: |
|
I've just run the test case I reported via Feedback with Xcode 13.3.0b3 and that actually starts the build but then fails with which is cryptic. Re-running the command just hangs indefinitely 🤷 Test is: |
|
is there anything |
|
I think this is related to plugins. I'm not sure if it's an option for swift-json to drop the plugin from the manifest or make it conditional somehow but I'd image that might help. Other than that duplicating the Feedback or prodding someone who might be able to address it in |
|
i don’t think this is related to plugins, because the if it’s related to plugins, it would have to be in combination with another factor... |
|
It seems to be some weirdness with Xcode. If you build the Package for (any iOS) in Xcode, it will still build all executables, and cause all kinds of weird issues. One way to solve this is to add |
|
Ah, that's good to know as a work-around - thank you @liuliu ! One thing to note: you'll want to set |
|
It doesn't look like this is happening anymore. Both swift-parsing and swift-json build on iOS and swift-markdown fails for another reason. I'll go ahead and close this for now, please reopen if this continues to be an issue! |


To follow up our discussion in SwiftPackageIndex/PackageList#1356 (comment)
E.g.: https://swiftpackageindex.com/builds/40779886-68B0-4CA9-9B6E-EE3F6797CF42
The text was updated successfully, but these errors were encountered: