You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! When I'm trying to run vapor build (or any other vapor ... command), I get following errors:
mb:hello-world alexander$ vapor build
/usr/local/bin/vapor:48:14: error: 'popen' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
let fp = popen(command, "r")
^~~~~
Darwin.popen:2:13: note: 'popen' has been explicitly marked unavailable here
public func popen(: UnsafePointer!, : UnsafePointer!) -> UnsafeMutablePointer!
^
/usr/local/bin/vapor:70:18: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
let result = system(command)
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:80:12: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
return system(command) == 0
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:88:12: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
return system("hash (command) 2>/dev/null") == 0
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:92:12: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
return system("ls (fileName) > /dev/null 2>&1") == 0
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:96:12: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
return system("test -z "$(git status --porcelain)" || exit 1") == 0
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:51:9: error: 'pclose' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
pclose(fp)
^~~~~~
Darwin.pclose:2:13: note: 'pclose' has been explicitly marked unavailable here
public func pclose(: UnsafeMutablePointer!) -> Int32
^
/usr/local/bin/vapor:51:9: warning: result of call to 'pclose' is unused
pclose(fp)
^ ~~~~
/usr/local/bin/vapor:590:17: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
system("git init (escapedName)")
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:590:17: warning: result of call to 'system' is unused
system("git init (escapedName)")
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/bin/vapor:591:17: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
system("cd (escapedName) && git add . && git commit -m "initial vapor project setup"")
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:591:17: warning: result of call to 'system' is unused
system("cd (escapedName) && git add . && git commit -m "initial vapor project setup"")
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/bin/vapor:605:17: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
system("open (escapedName)/.xcodeproj")
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(_: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:605:17: warning: result of call to 'system' is unused
system("open (escapedName)/.xcodeproj")
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/bin/vapor:783:16: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
return system(cmd) != 0
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:940:13: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
system("git add .")
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:940:13: warning: result of call to 'system' is unused
system("git add .")
^ ~~~~~~~~~~~~~
/usr/local/bin/vapor:941:13: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
system("git commit -m "setting up heroku"")
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:941:13: warning: result of call to 'system' is unused
system("git commit -m "setting up heroku"")
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/bin/vapor:942:13: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
system("git push heroku master")
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:942:13: warning: result of call to 'system' is unused
system("git push heroku master")
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
How can I fix it?
The text was updated successfully, but these errors were encountered:
Hello! When I'm trying to run
vapor build
(or any othervapor ...
command), I get following errors:mb:hello-world alexander$ vapor build
/usr/local/bin/vapor:48:14: error: 'popen' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
let fp = popen(command, "r")
^~~~~
Darwin.popen:2:13: note: 'popen' has been explicitly marked unavailable here
public func popen(: UnsafePointer!, : UnsafePointer!) -> UnsafeMutablePointer!
^
/usr/local/bin/vapor:70:18: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
let result = system(command)
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:80:12: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
return system(command) == 0
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:88:12: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
return system("hash (command) 2>/dev/null") == 0
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:92:12: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
return system("ls (fileName) > /dev/null 2>&1") == 0
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:96:12: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
return system("test -z "$(git status --porcelain)" || exit 1") == 0
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:51:9: error: 'pclose' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
pclose(fp)
^~~~~~
Darwin.pclose:2:13: note: 'pclose' has been explicitly marked unavailable here
public func pclose(: UnsafeMutablePointer!) -> Int32
^
/usr/local/bin/vapor:51:9: warning: result of call to 'pclose' is unused
pclose(fp)
^ ~~~~
/usr/local/bin/vapor:590:17: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
system("git init (escapedName)")
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:590:17: warning: result of call to 'system' is unused
system("git init (escapedName)")
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/bin/vapor:591:17: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
system("cd (escapedName) && git add . && git commit -m "initial vapor project setup"")
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:591:17: warning: result of call to 'system' is unused
system("cd (escapedName) && git add . && git commit -m "initial vapor project setup"")
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/bin/vapor:605:17: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
system("open (escapedName)/.xcodeproj")
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(_: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:605:17: warning: result of call to 'system' is unused
system("open (escapedName)/.xcodeproj")
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/bin/vapor:783:16: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
return system(cmd) != 0
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:940:13: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
system("git add .")
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:940:13: warning: result of call to 'system' is unused
system("git add .")
^ ~~~~~~~~~~~~~
/usr/local/bin/vapor:941:13: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
system("git commit -m "setting up heroku"")
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:941:13: warning: result of call to 'system' is unused
system("git commit -m "setting up heroku"")
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/bin/vapor:942:13: error: 'system' is unavailable in Swift: Use posix_spawn APIs or NSTask instead.
system("git push heroku master")
^~~~~~
Darwin.system:3:13: note: 'system' has been explicitly marked unavailable here
public func system(: UnsafePointer!) -> Int32
^
/usr/local/bin/vapor:942:13: warning: result of call to 'system' is unused
system("git push heroku master")
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~
How can I fix it?
The text was updated successfully, but these errors were encountered: