-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
19k Nov 4, 2016 8:01 PM (in response to 19k)Userd Edit->Convert->To current Swift Syntax
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
eskimo Nov 7, 2016 2:01 AM (in response to 19k)You don’t need to convert this to Swift 3; you can continue building it with Swift 2.3 for the moment. And given the low-level nature of this code, I recommend you do that rather than trying to do the conversion yourself.
Also, please file a bug against the sample requesting that it be updated to Swift 3, then post your bug number here, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardwarelet myEmail = "eskimo" + "1" + "@apple.com"
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
OriolOMM Nov 10, 2016 5:45 AM (in response to eskimo)How I can build it with Swift 2.3 in Xcode 8.1? whats the procedure?
Regards
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
zxl777 Dec 3, 2016 3:45 AM (in response to eskimo)I try XCODE 7 ,XCODE 7.2 ,XCODE 8 , All could not build the tunnel_server.
Because Tunnel.swift is write by swift 3.
But ServerTunnel.swift write by swift 2.3
So no way to build tunnel_server.
Can you please update the SimpleTunnel project to work on XCODE 8.1 ?
Thank you
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
eskimo Dec 4, 2016 9:10 AM (in response to zxl777)Can you please update the SimpleTunnel project to work on XCODE 8.1 ?
You should request this officially by filing a bug against the SimpleTunnel sample code. Please post your bug number, just for the record.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardwarelet myEmail = "eskimo" + "1" + "@apple.com"
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
kingstone Dec 13, 2016 9:24 PM (in response to eskimo)Update the SimpleTunnel project(tunnel server) to work on Xcode8.1... plz~~~~
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
eskimo Dec 14, 2016 1:37 AM (in response to kingstone)Update the SimpleTunnel project(tunnel server) to work on Xcode8.1
Posting requests like this here does not help; please follow the advice from my previous (Dec 4) post.
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardwarelet myEmail = "eskimo" + "1" + "@apple.com"
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
pany Dec 15, 2016 5:28 AM (in response to eskimo)I have filed a bug for this. Ticket number is 29682328
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
m.digimat Dec 16, 2016 9:09 AM (in response to pany)I have a version that builds in XCode 8.1 (manul conversion with the help of Eskimo).
Unfortunately it deos not seem to work as expected, as when you toggle the Tunnel Server's VPN on it opens a tunnel but then gets stuck in "Connecting" state. If anyone fancies to take a look at it I'll be happy to share the code .
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
eskimo Dec 18, 2016 2:26 PM (in response to m.digimat)Just FYI, you’ll want to use Xcode 8.2. There’s a bug in the SDKs that shipped with 8.1 that causes the provider to crash (r. 28756704). Specifically, the
data
parameter of the completion handler passed to-[NWTCPConnection readLength:completionHandler:]
is flagged as not nullable in the Xcode 8.1 SDKs, which is a problem because that parameter can be nil. Likewise with NWUDPSession.Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardwarelet myEmail = "eskimo" + "1" + "@apple.com"
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
m.digimat Dec 19, 2016 4:16 AM (in response to eskimo)Thanks Eskimo, updated but still no luck with it. Are you aware of any timeframe for the SimpleTunnel app to be updated to xCode8.2?
It seems like there is something obviously not quite right in my updated version, and it'd be great to have a fresh start with a project that the Apple devs
have updated and proved working with the latest toolchain.
P.s: I know the real world is not as simple as Apple insider and rest-of-the-world, but you're our only point of contact and and best resource out here .
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
eskimo Dec 19, 2016 2:11 PM (in response to m.digimat)Are you aware of any timeframe for the SimpleTunnel app to be updated to Xcode 8.2?
No. If I had time I’d do this myself but, alas, I’m buried in DTS incidents at the moment )-:
Share and Enjoy
—
Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardwarelet myEmail = "eskimo" + "1" + "@apple.com"
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
m.digimat Dec 20, 2016 12:24 AM (in response to eskimo)Fair enough. If at some point you reckon you have time to take a look / start from from a version that builds on 8.2, feel free to ping me and I'll be more than happy to send it over. You may just end up finding that it works fine after all and I am just facing some unrelated issue.
-
-
-
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
pany Dec 18, 2016 9:13 PM (in response to m.digimat)I too was able to run client part of the project. But the server target fails to build even after converting to Swift 2.3 or Swift 3.
In the end, I had to pull the old source code from a Github repo and build with Xcode 7.1
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
m.digimat Dec 21, 2016 8:22 AM (in response to pany)Thanks Pany, that's a viable solution assuming you are not restricted to deploying and testing on iOS10+ devices, which XCode7 doen't not support.
And did not upgrade to Sierra which in turn requires xCode 8. Unfortunately I am constrained by both of the above so that's not going to work for me.
I am now trying to use the Swift 2.3 toolchain in XCode 8.2 and enabling "Use Legacy Swift Code" to see if I have more luck with it, but it complains about the Swift 2.3 value being overridden by the TOOLCHAIN build setting (...).
Interestingly enough, it seems easier to use a variety of Swift toolchains on Linux than on MacOS (although I am sure that some fo you guys have managed a working toolchain with SimpleTunnel).
It could be useful to set up a Slack channel with all interested devs working on the Network Extensions: I've found that a life safer when working on Swift server side (PerfectServer across intermediate Swift3 snapshots) as it allows for instantanous sharing of knowledge / common troublshooting.
EDIT: I managed to make it work by using the "old" (Swift 2.x) code for the Project, built via XCode 8.2 with "Use lgacy Swift" enabled. That only required a few minor tweaks to update to Swift 2.3 and it works as expected. Still have to fix some nat configuration as I the server does not seem to be able to route the DNS response back to the tunnel interface (and therefore Safari on my iPhone cannot browse), but at least I can see the traffic running through.
-
-
-
-
-
-
-
-
-
-
Re: tunnel_server in SimpleTunnel(V1.3) can't convert to Swift 3.0
whiskerzhao Feb 13, 2017 1:30 AM (in response to 19k)you can download from https://github.com/whiskerman/SimpleTunnel
it converted with swift3.0 , xcode8.2