Merge pull request #344 from IIsathishII/SKIP_PRE_MAIN_EXECUTION

Skip static runtime initialization method based on the compiler flag DISABLE_INIT_WITH_INFO_PLIST
This commit is contained in:
Yegor D.
2025-05-27 12:34:34 -07:00
committed by GitHub
+2 -1
View File
@@ -274,7 +274,7 @@ void TSKLog(NSString *format, ...)
#pragma mark TrustKit Implicit Initialization via Library Constructor
#if !DISABLE_INIT_WITH_INFO_PLIST
__attribute__((constructor)) static void initializeWithInfoPlist(int argc, const char **argv)
{
// TrustKit just got started in the App
@@ -288,3 +288,4 @@ __attribute__((constructor)) static void initializeWithInfoPlist(int argc, const
[TrustKit initSharedInstanceWithConfiguration:trustKitConfigFromInfoPlist];
}
}
#endif