Console Output

I have a SwiftUI app which produces the output below on the console every time it starts. I'd like to turn it off but I'm at a loss to where this output is coming from. I've tried commenting out everything so that the app just shows a blank screen, yet it still appears. Any suggestions would be appreciated!

Hanno

2024-04-02 09:16:59.482118-0400 ExampleApp[60941:1489963] [ {"framework": "Photos", "swizzle":[ {"class":"PHAsset", "methods": { "prefixes":["fetch","enumerate"] }, "antipattern type":"XPC on main thread" }, {"class":"PHFetchResult", "methods": { "prefixes":["fetch","enumerate"] }, "antipattern type":"XPC on main thread" } ] }, {"framework": "CoreLocation", "swizzle":[ {"class":"CLLocationManager", "instance methods": { "names":["authorizationStatus", "monitoredRegions", "accuracyAuthorization"] }, "class methods": { "names":["locationServicesEnabled"] }, "antipattern type":"XPC on main thread" } ] }, {"framework":"CoreImage", "swizzle":[ {"class":"CIContext", "instance methods": { "names":["createCGImage:fromRect:", "initWithOptions:"] }, "antipattern type":"IO on main thread" } ] }, {"framework":"HealthKit", "swizzle":[ {"class":"HKHealthStore", "instance methods": { "names":["authorizationStatusForType:"] }, "antipattern type":"XPC on main thread" } ] }, {"framework":"CoreData", "swizzle":[ {"class":"NSManagedObjectContext", "instance methods": { "names":["performBlockAndWait:", "executeFetchRequest:error:", "mergeChangesFromContextDidSaveNotification:", "save:", "countForFetchRequest:error:"] }, "antipattern type":"Database access on main thread" } ] }, {"framework":"CoreML", "swizzle":[ {"class":"MLModel", "class methods": { "names":["modelWithContentsOfURL:error:"] }, "antipattern type":"IO on main thread" } ] }, {"framework":"Foundation", "swizzle":[ {"class":"NSOperation", "instance methods": { "names":["waitUntilFinished", "waitUntilFinishedOrTimeout:"] }, "antipattern type":"waiting for operation completion on main thread" }, {"class":"NSThread", "class methods": { "names":["sleepForTimeInterval:"] }, "antipattern type":"Sleep" }, {"class":"NSBundle", "instance methods": { "names":["bundlePath", "bundleIdentifier", "loadAndReturnError:", "localizedStringForKey:value:table:"] }, "class methods": { "names":["bundleWithIdentifier:", "allFrameworks", "allBundles", "pathForResource:ofType:inDirectory:"] }, "antipattern type":"IO on main thread" }, {"class":"NSKeyedArchiver", "class methods": { "names":["archivedDataWithRootObject:", "archivedDataWithRootObject:requiringSecureCoding:error:", "archiveRootObject:toFile:"] }, "antipattern type":"IO on main thread" }, {"class":"NSKeyedUnarchiver", "class methods": { "names":["unarchiveTopLevelObjectWithData:error:", "decodeObjectForKey:", "unarchiveObjectWithData:"] }, "antipattern type":"IO on main thread" }, {"class":"NSFileManager", "methods": { "prefixes":["remove", "create", "move", "copy"] }, "instance methods": { "names":["synchronouslyGetFileProviderServicesForItemAtURL:completionHandler:"] }, "antipattern type":"IO on main thread" }, {"class":"NSData", "methods": { "prefixes":["initWithContents", "dataWithContents"] }, "instance methods": { "names":["enumerateByteRangesUsingBlock:"] }, "antipattern type":"IO on main thread" } ] }, {"framework":"AVFCore", "swizzle":[ {"class":"AVAsset", "class methods": { "names":["assetWithURL:"] }, "antipattern type":"IO on main thread" }, {"class":"AVAsset", "instance methods": { "names":["mediaSelectionGroupForMediaCharacteristic:"] }, "antipattern type":"Conditional waiting on main thread" }, {"class":"AVAsset", "instance methods": { "names":["tracksWithMediaType:"] }, "antipattern type":"XPC on main thread" }, {"class":"AVURLAsset", "instance methods": { "names":["tracks"] }, "antipattern type":"XPC on main thread" } ] }, {"framework":"AVFAudio", "swizzle":[ {"class":"AVAudioSession", "instance methods": { "names":["setActive:withOptions:error:", "category", "setCategory:mode:options:error:", "setCategory:mode:routeSharingPolicy:options:error:", "setCategory:withOptions:error:", "setCategory:error:", "currentRoute", "outputVolume", "setAllowHapticsAndSystemSoundsDuringRecording:error:", "isPiPAvailable"] }, "antipattern type":"XPC on main thread" } ] }, {"framework":"StoreKit", "swizzle":[ {"class":"SKPaymentQueue", "class methods": { "names":["canMakePayments"] }, "antipattern type":"Semaphore on main thread" }, {"class":"SKPaymentQueue", "instance methods": { "names":["storefront"] }, "antipattern type":"XPC on main thread" } ] }, {"framework":"CoreTelephony", "swizzle":[ {"class":"CTCellularPlanProvisioning", "instance methods": { "names":["supportsCellularPlan"] }, "antipattern type":"Semaphore on main thread" } ] }, {"framework":"Vision", "swizzle":[ {"class":"VNImageRequestHandler", "methods": { "prefixes":["performRequest"] }, "antipattern type":"Computer vision tasks on main thread" } ] } ]

Same here, it only happens on my iPhone 11, not in the iPhone 13 Pro. Are you using the MapKit mapview ?

I have the exact same thing, I did a StackTrace on the NSLog to see where it's coming from, but I still don't have a clue:

* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.2
  * frame #0: 0x00000001a2de441c Foundation`NSLog
    frame #1: 0x00000001057f0998 libRPAC.dylib`swizzleAPIsForHangDetection + 104
    frame #2: 0x00000001057f22a0 libRPAC.dylib`initializeTrampolineBasedSwizzling + 84
    frame #3: 0x000000010576e578 libRPAC.dylib`__library_initializer + 1756
    frame #4: 0x00000001c7422a84 dyld`invocation function for block in dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const::$_0::operator()() const + 168
    frame #5: 0x00000001c7412208 dyld`invocation function for block in dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 340
    frame #6: 0x00000001c74103c8 dyld`invocation function for block in dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 496
    frame #7: 0x00000001c741015c dyld`dyld3::MachOFile::forEachLoadCommand(Diagnostics&, void (load_command const*, bool&) block_pointer) const + 300
    frame #8: 0x00000001c741a67c dyld`dyld3::MachOFile::forEachSection(void (dyld3::MachOFile::SectionInfo const&, bool, bool&) block_pointer) const + 192
    frame #9: 0x00000001c7419228 dyld`dyld3::MachOAnalyzer::forEachInitializer(Diagnostics&, dyld3::MachOAnalyzer::VMAddrConverter const&, void (unsigned int) block_pointer, void const*) const + 516
    frame #10: 0x00000001c7418dac dyld`dyld4::Loader::findAndRunAllInitializers(dyld4::RuntimeState&) const + 524
    frame #11: 0x00000001c743bd84 dyld`dyld4::JustInTimeLoader::runInitializers(dyld4::RuntimeState&) const + 36
    frame #12: 0x00000001c74188d8 dyld`dyld4::Loader::runInitializersBottomUp(dyld4::RuntimeState&, dyld3::Array<dyld4::Loader const*>&) const + 220
    frame #13: 0x00000001c741873c dyld`dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const::$_1::operator()() const + 116
    frame #14: 0x00000001c74184cc dyld`dyld4::Loader::runInitializersBottomUpPlusUpwardLinks(dyld4::RuntimeState&) const + 380
    frame #15: 0x00000001c7411120 dyld`dyld4::APIs::runAllInitializersForMain() + 336
    frame #16: 0x00000001c740fb98 dyld`dyld4::prepare(dyld4::APIs&, dyld3::MachOAnalyzer const*) + 3328
    frame #17: 0x00000001c740eb80 dyld`start + 1724
Console Output
 
 
Q