You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ma...@apache.org on 2026/03/26 16:19:09 UTC

(cordova-plugin-network-information) branch master updated: fix(ios): Remove redundant `#import for Xcode 26.4 compatibility (#166)

This is an automated email from the ASF dual-hosted git repository.

manuelbeck pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-plugin-network-information.git


The following commit(s) were added to refs/heads/master by this push:
     new 291328e  fix(ios): Remove redundant `#import <netinet6/in6.h> for Xcode 26.4 compatibility (#166)
291328e is described below

commit 291328ea6e892a792552003ade5a169c9e726cd8
Author: Niko Fellner <n....@logics.de>
AuthorDate: Thu Mar 26 17:19:04 2026 +0100

    fix(ios): Remove redundant `#import <netinet6/in6.h> for Xcode 26.4 compatibility (#166)
    
    - Xcode 26.4 enforces stricter module boundaries and rejects the private header `netinet6/in6.h` when imported directly from `CDVReachability.m`, causing iOS builds to fail: `CDVReachability.m:49:9: error: Use of private header from outside its module: 'netinet6/in6.h'
    - Remove the redundant import which is unnecessary because: netinet/in.h (already imported on the previous line) transitively includes netinet6/in6.h, No IPv6-specific types (sockaddr_in6, in6_addr, IN6_*) from netinet6/in6.h are used directly in CDVReachability.m
    
    Generated-by: Claude
    Co-authored-by: Claude Opus 4.6 (1M context) <no...@anthropic.com>
---
 src/ios/CDVReachability.m | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/ios/CDVReachability.m b/src/ios/CDVReachability.m
index b43a62d..a097115 100644
--- a/src/ios/CDVReachability.m
+++ b/src/ios/CDVReachability.m
@@ -46,7 +46,6 @@
 
 #import <sys/socket.h>
 #import <netinet/in.h>
-#import <netinet6/in6.h>
 #import <arpa/inet.h>
 #import <ifaddrs.h>
 #import <netdb.h>


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org