Skip to content

Conversation

@madibb
Copy link
Owner

@madibb madibb commented Jan 13, 2026

Summary

This PR modernizes FLEX for iOS 16+ by removing private APIs, reducing library size by ~1.25MB, and cleaning up legacy iOS version checks.

Impact: 115 files changed, 760 additions, 17,632 deletions (~16.8K lines removed)

Changes

1. Private API Removal

Removes usage of private APIs that were causing App Store submission rejections.

2. Xcode 26 SwiftPM Build Warnings Fix

Xcode 26 treats warnings in SPM headers as project-level warnings, causing issues for projects with "warnings as errors" enabled.

Fixes:

  • Wrap uses of UIScreen.mainScreen in FLEXMacros.h with clang diagnostic ignored "-Wdeprecated-declarations"
  • Add FLEXFileBrowserController.h to FLEX.h umbrella header and mark as public

3. Library Size Reduction (~1.25MB)

Change Lines Removed Size Reduction
Remove Keychain viewer ~960 ~52K
Remove DatabaseBrowser ~1,900 ~124K
Remove RuntimeBrowser ~3,000 ~164K
Remove SystemLog viewer ~1,200 ~88K
Replace embedded PNGs with SF Symbols ~8,600 ~820K
Total ~16,700 lines ~1.25MB

Removed modules:

  • Keychain viewer (rarely used, can use other tools)
  • Database browser (SQLite/Realm - many apps don't use local databases)
  • Runtime browser (developer-focused, core object exploration still works)
  • System log viewer (Xcode console provides same functionality)

SF Symbols migration:

  • Replaced 69 embedded PNG icons with SF Symbols equivalents
  • FLEXResources.m: 8,861 lines → 266 lines (99% reduction)

4. iOS 16+ Minimum Deployment Target

  • Updated minimum deployment target from iOS 9 to iOS 16
  • Removed all @available(iOS X, *) version checks for iOS < 16
  • Removed all API_AVAILABLE(ios(X)) annotations for iOS < 16
  • Simplified code paths conditional on older iOS versions
  • Removed -Wno-unsupported-availability-guard compiler flag

APIs now used unconditionally:

  • UIWindowScene and scene-based APIs
  • NSURLSessionWebSocketTask for websocket monitoring
  • UIMenu and context menu APIs
  • UISelectionFeedbackGenerator for haptic feedback
  • UNUserNotificationCenter for push notification inspection
  • Modern NSKeyedUnarchiver secure coding APIs
  • NSDirectionalEdgeInsets and layout APIs

Features Still Available

After these changes, FLEX still provides:

  • ✅ View hierarchy exploration and modification
  • ✅ Object property/ivar inspection and editing
  • ✅ Network request monitoring
  • ✅ File browser (sandbox exploration)
  • ✅ Live objects on heap
  • ✅ Address explorer
  • ✅ Cookies viewer
  • ✅ Push notifications viewer
  • ✅ App shortcuts (UserDefaults, Bundle, etc.)
  • ✅ All core object exploration features

References

How to build

Use script:
buildFlex.sh

@madibb madibb changed the title Fix/remove private apis Remove private APIs and silence Xcode 26 SwiftPM build warnings Jan 13, 2026
madibb and others added 2 commits January 13, 2026 18:41
Replace private continuousCorners/setContinuousCorners: with iOS 13+
public cornerCurve API. Remove _setWidth: usage which is a private API.

This fixes ITMS-90338 App Store rejection for non-public API usage.

Changed:
- CALayer+FLEX.m: Use cornerCurve instead of continuousCorners KVC
- FLEXArgumentInputTextView.m: Use cornerCurve directly instead of setValue:forKey:
- UIBarButtonItem+FLEX.h: Remove _setWidth: declaration
- FLEXTableViewController.m: Remove _setWidth: call
- Wrap uses of UIScreen.mainScreen in FLEXMacros.h with clang diagnostic
  to ignore deprecated-declarations warning
- Add FLEXFileBrowserController.h to FLEX.h umbrella header and mark as
  public in Xcode project to fix module umbrella header warning

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@madibb madibb force-pushed the fix/remove-private-apis branch from 13e3acd to 4e17213 Compare January 13, 2026 17:41
madibb and others added 2 commits January 13, 2026 20:02
…ation

Major changes:
- Remove Keychain viewer (~52K)
- Remove DatabaseBrowser (~124K)
- Remove RuntimeBrowser (~164K)
- Remove SystemLog viewer (~88K)
- Replace embedded PNG icons with SF Symbols in FLEXResources.m (~820K)

FLEXResources.m reduced from 8,861 lines (828K) to 266 lines (8K) using
SF Symbols and programmatic drawing.

Updated minimum iOS deployment target to iOS 13 (SF Symbols requirement).

See REFACTORING_LOG.md for detailed change documentation.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
…checks

- Update minimum deployment target from iOS 9 to iOS 16 in podspec, Package.swift, and project settings
- Remove all @available(iOS X, *) version checks for iOS versions < 16
- Remove all API_AVAILABLE(ios(X)) annotations for iOS versions < 16
- Simplify code paths that were conditional on older iOS versions
- Remove -Wno-unsupported-availability-guard compiler flag (no longer needed)
- Update README.md to reflect iOS 16 requirement

APIs now used unconditionally: UIWindowScene, NSURLSessionWebSocketTask, UIMenu,
UISelectionFeedbackGenerator, UNUserNotificationCenter, NSKeyedUnarchiver secure coding,
NSDirectionalEdgeInsets, UIScrollView.adjustedContentInset

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@madibb madibb changed the title Remove private APIs and silence Xcode 26 SwiftPM build warnings Modernize FLEX: iOS 16+, remove private APIs, reduce size by ~1.25MB Jan 13, 2026
These design source assets (Sketch file, PNGs, conversion scripts)
are no longer needed since FLEXResources now uses SF Symbols.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@madibb madibb changed the title Modernize FLEX: iOS 16+, remove private APIs, reduce size by ~1.25MB Modernize FLEX: iOS 16+, remove private APIs, reduce size Jan 13, 2026
madibb and others added 2 commits January 13, 2026 23:59
- globalsIcon: list.bullet → line.3.horizontal (hamburger menu)
- hierarchyIcon: square.stack.3d.up → square.grid.2x2 (grid)
- recentIcon: clock → doc.badge.clock (clipboard with clock)
- Done button: checkmark circle → red xmark

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Icons:
- dragHandle: dots → line.3.horizontal with padding
- globalsIcon (menu): line.3.horizontal → wrench
- hierarchyIcon (views): square.stack.3d.up → square.grid.2x2
- recentIcon: clock → doc.badge.clock

Done button:
- Replace blue checkmark circle with red xmark across all screens
- Update duplicate button detection for new styling

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
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

Successfully merging this pull request may close these issues.

2 participants