Xcode 16.4 and above build error with Network Extension and WireGuard library

I have added a Network Extension to my iOS project to use the WireGuard library. Everything was working fine up to Xcode 16, but after updating, I’m facing a build issue.

The build fails with the following error:

No such file or directory: '@rpath/WireGuardNetworkExtensioniOS.debug.dylib'

I haven’t explicitly added any .dylib to my project. The Network Extension target builds and runs fine on Xcode 16.

Answered by DTS Engineer in 858951022

I recommend that you seek help from the support channel for the third-party library your using. The library’s author is in the best position to understand how to integrate it into your project.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Any update on this?

I recommend that you seek help from the support channel for the third-party library your using. The library’s author is in the best position to understand how to integrate it into your project.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Xcode 16.4 and above build error with Network Extension and WireGuard library
 
 
Q