-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
os.execShellCmd won't compile on IOS #24732
Comments
Hello, do you happen to have some tips/workflows to test the program on macOS. I spent hours in vain to try to learn swift and xcode. |
I'm using QT for the nim library wrapper. It will generate the Xcode project for you. No swift or Xcode necessary. I just hope the steps below to work out of the box for you. Installing QT
Creating a new project
Building and running
|
So is this even fixable if iOS doesn't support process creation? |
My understanding is that
|
Ok. typical Apple nonsense as I can implement system via posix_spawn+waitpid... |
Description
It can be reproduced when compiling this code using the IOS SDK.
The issue I have here is that
openDefaultBrowser
will eventually callsystem
imported fromstdlib.h
. This symbol has been deprecated on IOS and will fail withUse posix_spawn APIs or NSTask instead. (On iOS, process spawning is unavailable.)
Nim/lib/pure/os.nim
Lines 210 to 211 in a18dcca
Nim Version
Nim Compiler Version 2.0.12 [MacOSX: arm64]
Compiled at 2025-02-26
Copyright (c) 2006-2023 by Andreas Rumpf
git hash: ce7c6f4
Current Output
Build fails with:
Expected Output
Known Workarounds
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: