Skip to content
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

[SR-15652] Async Code fails when running an executable in Xcode #4366

Open
swift-ci opened this issue Dec 22, 2021 · 1 comment
Open

[SR-15652] Async Code fails when running an executable in Xcode #4366

swift-ci opened this issue Dec 22, 2021 · 1 comment
Labels

Comments

@swift-ci
Copy link
Contributor

Previous ID SR-15652
Radar rdar://problem/86829216
Original Reporter kneekey23 (JIRA User)
Type Bug

Attachment: Download

Environment

I am running Xcode 13.2.1 on MacOS 11.6.2.

Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Bug
Assignee None
Priority Medium

md5: 56be1894e98e7d46070710e93d458260

Issue Description:

While running an executable using Xcode with an async main function, it fails immediately and won't even run. However, if the same executable is run via the terminal with "swift build && swift run", it works perfectly fine. I am running Xcode 13.2.1 on MacOS 11.6.2.

To try this with my code, follow the below steps:

  1. clone this repo (specifically branch named feat/async): https://github.com/awslabs/aws-crt-swift/tree/feat/async

  2. Run `git submodule update --init --recursive`

  3. Open in Xcode using `xed .`

  4. Try to run the Elasticurl executable which is just a cli tool.

  5. You should see the same attached error.

  6. Again, if you run this same executable from the command line it works just fine.

    1. Example of running it via the terminal also attached as well.
@ktoso
Copy link
Member

ktoso commented Dec 22, 2021

Thanks for the repro Nicole – now it's the xmas break so might be a bit before someone looks at it, just as a heads up

@swift-ci create

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants