Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simple tunnel build fails - NEAppProxyErrorDomain

Tags:

ios

swift

swift3

I downloaded the last version of SimpleTunnel.

https://developer.apple.com/library/content/samplecode/SimpleTunnel/Introduction/Intro.html#//apple_ref/doc/uid/TP40016140-Intro-DontLinkElementID_2

I have Xcode 8.1.

When I try to build that project I receive 2 times the error "Use of undeclared type 'NEAppProxyErrorDomain'" in ClientAppProxyConnection file, in these lines:

func handleErrorCondition(_ flowError: NEAppProxyErrorDomain? = nil, notifyServer: Bool = true) {

func closeConnection(_ direction: TunnelConnectionCloseDirection, flowError: NEAppProxyErrorDomain?) {

I tried to clean the project and rebuild them several times, and I deleted the entire project and downloaded again, etc...

What can I do?

Regards,

like image 246
Oriol Mari Avatar asked Nov 10 '16 14:11

Oriol Mari


1 Answers

Replace "NEAppProxyErrorDomain" with "NEAppProxyFlowError.Code" will work.

like image 173
Shaofei Cheng Avatar answered Nov 07 '22 18:11

Shaofei Cheng