Skip to content

fix: resolve Xcode 16+ semantic error in SafeDeviceJailbreakDetection.m - #99

Merged
ufukhawk merged 1 commit into
mainfrom
claude/fix-jailbreak-detection-xcode16-T3pnk
Jun 12, 2026
Merged

ufukhawk merged 1 commit into
mainfrom
claude/fix-jailbreak-detection-xcode16-T3pnk

Conversation

@ufukhawk

@ufukhawk ufukhawk commented May 4, 2026

Copy link
Copy Markdown
Owner

File-scope static const variables (jailbreakVarPaths, jailbreakNonVarPaths) were initialized with Objective-C array literals @[...], which are runtime objects, not compile-time constants. Xcode 16+ enforces this constraint and refused to build. Replaced both with class methods using dispatch_once for lazy initialization, consistent with the existing jailbreakPaths pattern.

Fixes: #98

File-scope static const variables (jailbreakVarPaths, jailbreakNonVarPaths)
were initialized with Objective-C array literals @[...], which are runtime
objects, not compile-time constants. Xcode 16+ enforces this constraint and
refused to build. Replaced both with class methods using dispatch_once for
lazy initialization, consistent with the existing jailbreakPaths pattern.

Fixes: #98

https://claude.ai/code/session_012C1JejMnfvAzh9em8FC4q3
@ufukhawk
ufukhawk merged commit 488ad6d into main Jun 12, 2026
2 checks passed
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.

4 participants