Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to compile on Catalina with clean checkout. #4

Closed
jasperblues opened this issue May 6, 2020 · 3 comments
Closed

Unable to compile on Catalina with clean checkout. #4

jasperblues opened this issue May 6, 2020 · 3 comments

Comments

@jasperblues
Copy link

What is needed to compile on Catalina? I get Network.h - file not found.

@Timac
Copy link
Owner

Timac commented May 10, 2020

I can indeed reproduce this issue with Xcode 11.4.1 (11E503a) on macOS Catalina 10.15.4 (19E287):

  • Delete the Xcode DerivedData
  • Open the project in Xcode 11.4.1
  • Compile the VPNApp scheme

Result: You get an error

While building module 'NetworkExtension' imported from VPNStatus-master/Common/ACDefines.h:16:
In file included from :1:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/NetworkExtension.framework/Headers/NetworkExtension.h:12:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyFlow.h:10:9: fatal error: 'Network/Network.h' file not found
#import <Network/Network.h>
^~~~~~~~~~~~~~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/System/Library/Frameworks/NetworkExtension.framework/Headers/NEAppProxyFlow.h:10:9: note: did not find header 'Network.h' in framework 'Network' (loaded from '/System/Library/PrivateFrameworks')
1 error generated.
In file included from VPNStatus-master/Common/ACNEServicesManager.m:11:
VPNStatus-master/Common/ACDefines.h:16:9: fatal error: could not build module 'NetworkExtension'
#import <NetworkExtension/NetworkExtension.h>

I am not sure what it causing this problem. It could be an Xcode issue. I found a simple workaround yet:

  1. Change the scheme to 'VPNStatus'
  2. Compile 'VPNStatus'
  3. Change the scheme back to 'VPNApp'

Result: You can now compile and run the 'VPNApp' scheme.
As said, I currently don't understand why the NetworkExtension.framework module can't be created.

@jasperblues
Copy link
Author

Thanks @Timac !!

@Timac
Copy link
Owner

Timac commented Jun 25, 2021

@jasperblues This issue should now be fixed if you compile with Xcode 12.5.1.

@Timac Timac closed this as completed Jun 25, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants