Hi. I manually added vapor as a swift dependency and managed to successfully import Vapor in my existing swift app. However, when I try to run the code on the framework landing page I get this error
2020-07-04T16:31:47+0300 notice: Server starting on http://127.0.0.1:8080
2020-07-04T16:31:47+0300 error: bind(descriptor:ptr:bytes:): Operation not permitted (errno: 1)
When I compile the project generated with vapor everything runs fine
wtroughton
(Winston Troughton)
2
Is your Swift app for iOS? New projects created for Apple hardware have App Sandbox enabled which limits network capabilities.
Go to your Project > Targets > iOS > Signing & Capabilities > App Sandbox. Remove App Sandbox or configure the settings for Incoming Connections (Server)
1 Like
Hi. Thank you for your reply. It seems that this was the problem (incoming connection permission for macOS)
Remyc0des
(Remyc0des)
4
Hi sorry to bother? But can you provide some instructions on how to manually add vapor as a dependency and import it? I want to use it for a project I’ve already started working on
0xTim
(Tim)
5
You can add it as a dependency to your Package.swift and then add it to the target like template-bare/Package.swift at main · vapor/template-bare · GitHub