Description
When attempting to build the element-ios project using recent Xcode versions and newer iOS SDKs (e.g., iOS 18 / Simulator SDKs), the build fails during the dependency scanning phase of AFNetworking.
Clang throws a strict error regarding the usage of a private system header (netinet6/in6.h) inside AFNetworkReachabilityManager.m and AFHTTPSessionManager.m. Since AFNetworking is deprecated and no longer maintained upstream, this completely blocks the build pipeline on newer environment setups unless patched locally.
Steps to Reproduce
- Clone the
element-ios repository on a machine running a recent Xcode version with newer iOS/Simulator SDKs.
- Run
pod install.
- Build the
Riot target for an iOS Simulator.
Expected Behavior
The project should compile successfully without throwing module violation errors from third-party legacy dependencies.
Actual Behavior & Logs
The compiler blocks the build with the following error logs:
/Users/ais/iOSProjects/element-ios/Pods/AFNetworking/AFNetworking/AFNetworkReachabilityManager.m:26:9: error: Use of private header from outside its module: 'netinet6/in6.h' (in target 'AFNetworking' from project 'Pods')
/Users/ais/iOSProjects/element-ios/Pods/AFNetworking/AFNetworking/AFHTTPSessionManager.m:32:9: error: Use of private header from outside its module: 'netinet6/in6.h' (in target 'AFNetworking' from project 'Pods')
Description
When attempting to build the
element-iosproject using recent Xcode versions and newer iOS SDKs (e.g., iOS 18 / Simulator SDKs), the build fails during the dependency scanning phase ofAFNetworking.Clang throws a strict error regarding the usage of a private system header (
netinet6/in6.h) insideAFNetworkReachabilityManager.mandAFHTTPSessionManager.m. SinceAFNetworkingis deprecated and no longer maintained upstream, this completely blocks the build pipeline on newer environment setups unless patched locally.Steps to Reproduce
element-iosrepository on a machine running a recent Xcode version with newer iOS/Simulator SDKs.pod install.Riottarget for an iOS Simulator.Expected Behavior
The project should compile successfully without throwing module violation errors from third-party legacy dependencies.
Actual Behavior & Logs
The compiler blocks the build with the following error logs: