Fix macOS Sonoma compatibility - Swift 5 migration and Location Services#13
Open
Fix macOS Sonoma compatibility - Swift 5 migration and Location Services#13
Conversation
This PR addresses issues lg#11 and lg#12 by: 1. **Swift 5 Migration**: Updated all Swift files from Swift 2 to Swift 5 syntax - Updated closure syntax and completion handlers - Replaced deprecated APIs (NSTimer → Timer, dispatch_async → DispatchQueue) - Updated string handling and collection iteration patterns - Fixed delegate method signatures 2. **macOS Sonoma (14.x) Compatibility**: Added Location Services support - Since macOS 10.15, accessing WiFi SSID requires Location permission - Added CoreLocation framework integration in AppDelegate - Added NSLocationWhenInUseUsageDescription to Info.plist - Added location entitlement to HowOnline.entitlements - Updated error message to mention Location permission when SSID unavailable 3. **Removed CocoaAsyncSocket dependency**: Replaced with native CFStream-based port testing to reduce external dependencies 4. **Updated deployment target** to macOS 10.15 (Catalina) minimum Fixes lg#11 Fixes lg#12 Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR fixes HowOnline for modern macOS versions (10.15+, including Sonoma 14.x) by:
Problem
Since macOS 10.15 Catalina, Apple requires Location Services permission to access WiFi SSID information via CoreWLAN. Without this permission,
CWInterface.ssid()returnsnil, causing the app to show "no ssid" even when connected to WiFi.Changes
AppDelegate.swiftProber.swiftPinger.swiftPortTester.swiftUtilities.swiftInfo.plistHowOnline.entitlementsPodfileTest Plan
Fixes #11
Fixes #12
🤖 Generated with Claude Code