Semantic Issue in SafeDeviceJailbreakDetection.m not allowing the app to launch in iOS from Xcode(16+). #98
-
|
After the latest release 1.3.9+ facing the semantic issue in SafeDeviceJailbreakDetection.m file for Xcode(16+) which is not allowing the app to launch on iOS devices/simulator because variable |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
|
Hi @bibekpandainnopay 👋 You're absolutely right — this is a genuine Xcode 16+ compatibility issue. The @[...] Objective-C array literals are runtime objects, not compile-time constants, so Xcode 16+'s stricter Clang enforcement correctly rejects them as static const file-scope initializers. Both jailbreakVarPaths and jailbreakNonVarPaths have been converted from file-scope static const variables to class methods using dispatch_once for lazy initialization — consistent with the existing jailbreakPaths and jailbreakSchemes methods in the same file. Before (❌ Xcode 16+ error): static NSArray<NSString *> * const jailbreakVarPaths = @[ ... ];
If you still think there is a problem, please let us know. |
Beta Was this translation helpful? Give feedback.
Hi @bibekpandainnopay 👋
You're absolutely right — this is a genuine Xcode 16+ compatibility issue. The @[...] Objective-C array literals are runtime objects, not compile-time constants, so Xcode 16+'s stricter Clang enforcement correctly rejects them as static const file-scope initializers.
#99
Both jailbreakVarPaths and jailbreakNonVarPaths have been converted from file-scope static const variables to class methods using dispatch_once for lazy initialization — consistent with the existing jailbreakPaths and jailbreakSchemes methods in the same file.
Before (❌ Xcode 16+ error):
static NSArray<NSString *> * const jailbreakVarPaths = @[ ... ];
After (✅ Fixed):