Code Diagnostics

RSS for tag

Enable runtime checks to detect and avoid bugs in your code using Code Diagnostics.

Posts under Code Diagnostics tag

44 Posts

Post

Replies

Boosts

Views

Activity

WatchdogEvent: scene-create
Multiple audits failed, and the problem cannot be repeated Hope to get help soon, thanks "termination" : {"flags":6,"code":2343432205,"namespace":"FRONTBOARD","reasons":["<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-create watchdog transgression: application<cn.huimin.HuiPeitong>:5269 exhausted real (wall clock) time allowance of 19.94 seconds","ProcessVisibility: Foreground","ProcessState: Running","WatchdogEvent: scene-create","WatchdogVisibility: Foreground","WatchdogCPUStatistics: (",""Elapsed total CPU time (seconds): 8.140 (user 8.140, system 0.000), 7% CPU",",""Elapsed application CPU time (seconds): 0.588, 0% CPU"",") reportType:CrashLog maxTerminationResistance:Interactive>"]}, bug1.txt
1
0
2.8k
Oct ’21
Cpp programs are not running
I tried running a cpp programme straight from the terminal, then using VSCode, and finally from Eclipse's C++ extension, but I kept receiving the same issue. Undefined symbols for architecture x86_64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) These are all the things I have installed till now is which are needed for running cpp programs, I think ~ % c++ -v Apple clang version 12.0.5 (clang-1205.0.22.9) Target: x86_64-apple-darwin20.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin ~ % g++ -v                     Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 12.0.5 (clang-1205.0.22.9) Target: x86_64-apple-darwin20.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin ~ % make -v                    GNU Make 3.81 Copyright (C) 2006  Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i386-apple-darwin11.3.0 What should I do now? I can't program in cpp now anymore And can someone please suggest a IDE for C++ programs and not Xcode(because it takes up a lot of space)
0
0
967
Jul ’21
"Failed to produce a diagnostic for expression; please file a bug report" error.
Doesn't provide any error code...my code below import SwiftUI struct ContentView: View {   @Binding var text: String   let stories = ["BMC","Mocha", "Expresso","Frap","Mazagan"]       let blue = UIColor(red: 23/255.0,              green: 120/255.0,              blue: 242/255.0,              alpha: 1)   var body: some View {     VStack{       HStack{         Text("CoffeeBreak")           .font(.system(size: 48, weight: .bold, design: .default))           .foregroundColor(Color(blue))         Spacer()                   Image(systemName: "person.circle")           .resizable()           .frame(width: 45, height: 45, alignment: /@START_MENU_TOKEN@/.center/@END_MENU_TOKEN@/)           .foregroundColor(/@START_MENU_TOKEN@/.blue/@END_MENU_TOKEN@/)                 }       .padding()               TextField("Search...", text: $text)         .padding(7)         .background(Color(.systemGray5))         .cornerRadius(13)         .padding(.horizontal, 15)       ZStack{         Color(.secondarySystemBackground)                   ScrollView(.vertical){           VStack{             ScrollView(.horizontal, showsIndicators: false){               HStack(spacing: 3){                 ForEach(stories, id: \self){name in                 Image(name)                   .resizable()                   .aspectRatio(contentMode: /@START_MENU_TOKEN@/.fill/@END_MENU_TOKEN@/)                   .frame(width: 140, height: 200, alignment: /@START_MENU_TOKEN@/.center/@END_MENU_TOKEN@/)                   .background(Color.red)                   .clipped()                 }                                 }             }           }         }       }       Spacer()     }   } } struct ContentView_Previews: PreviewProvider {   static var previews: some View {     ContentView(text: .constant(""))   } }
1
0
548
Jun ’21
WatchdogEvent: scene-create
Multiple audits failed, and the problem cannot be repeated Hope to get help soon, thanks "termination" : {"flags":6,"code":2343432205,"namespace":"FRONTBOARD","reasons":["<RBSTerminateContext| domain:10 code:0x8BADF00D explanation:scene-create watchdog transgression: application<cn.huimin.HuiPeitong>:5269 exhausted real (wall clock) time allowance of 19.94 seconds","ProcessVisibility: Foreground","ProcessState: Running","WatchdogEvent: scene-create","WatchdogVisibility: Foreground","WatchdogCPUStatistics: (",""Elapsed total CPU time (seconds): 8.140 (user 8.140, system 0.000), 7% CPU",",""Elapsed application CPU time (seconds): 0.588, 0% CPU"",") reportType:CrashLog maxTerminationResistance:Interactive>"]}, bug1.txt
Replies
1
Boosts
0
Views
2.8k
Activity
Oct ’21
Hosting app missing some UIKeyboardDidChangeFrameNotifications when keyboard frame changes
My keyboard extension has a function that increases the keyboard height when enabled. However, the host do not always get the  UIKeyboardDidChangeFrameNotification on such changes, causing layout problems in the hosting app.
Replies
0
Boosts
0
Views
605
Activity
Sep ’21
Cpp programs are not running
I tried running a cpp programme straight from the terminal, then using VSCode, and finally from Eclipse's C++ extension, but I kept receiving the same issue. Undefined symbols for architecture x86_64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) These are all the things I have installed till now is which are needed for running cpp programs, I think ~ % c++ -v Apple clang version 12.0.5 (clang-1205.0.22.9) Target: x86_64-apple-darwin20.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin ~ % g++ -v                     Configured with: --prefix=/Library/Developer/CommandLineTools/usr --with-gxx-include-dir=/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/c++/4.2.1 Apple clang version 12.0.5 (clang-1205.0.22.9) Target: x86_64-apple-darwin20.5.0 Thread model: posix InstalledDir: /Library/Developer/CommandLineTools/usr/bin ~ % make -v                    GNU Make 3.81 Copyright (C) 2006  Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program built for i386-apple-darwin11.3.0 What should I do now? I can't program in cpp now anymore And can someone please suggest a IDE for C++ programs and not Xcode(because it takes up a lot of space)
Replies
0
Boosts
0
Views
967
Activity
Jul ’21
"Failed to produce a diagnostic for expression; please file a bug report" error.
Doesn't provide any error code...my code below import SwiftUI struct ContentView: View {   @Binding var text: String   let stories = ["BMC","Mocha", "Expresso","Frap","Mazagan"]       let blue = UIColor(red: 23/255.0,              green: 120/255.0,              blue: 242/255.0,              alpha: 1)   var body: some View {     VStack{       HStack{         Text("CoffeeBreak")           .font(.system(size: 48, weight: .bold, design: .default))           .foregroundColor(Color(blue))         Spacer()                   Image(systemName: "person.circle")           .resizable()           .frame(width: 45, height: 45, alignment: /@START_MENU_TOKEN@/.center/@END_MENU_TOKEN@/)           .foregroundColor(/@START_MENU_TOKEN@/.blue/@END_MENU_TOKEN@/)                 }       .padding()               TextField("Search...", text: $text)         .padding(7)         .background(Color(.systemGray5))         .cornerRadius(13)         .padding(.horizontal, 15)       ZStack{         Color(.secondarySystemBackground)                   ScrollView(.vertical){           VStack{             ScrollView(.horizontal, showsIndicators: false){               HStack(spacing: 3){                 ForEach(stories, id: \self){name in                 Image(name)                   .resizable()                   .aspectRatio(contentMode: /@START_MENU_TOKEN@/.fill/@END_MENU_TOKEN@/)                   .frame(width: 140, height: 200, alignment: /@START_MENU_TOKEN@/.center/@END_MENU_TOKEN@/)                   .background(Color.red)                   .clipped()                 }                                 }             }           }         }       }       Spacer()     }   } } struct ContentView_Previews: PreviewProvider {   static var previews: some View {     ContentView(text: .constant(""))   } }
Replies
1
Boosts
0
Views
548
Activity
Jun ’21