Xcode Sanitizers and Runtime Issues

RSS for tag

Xcode Runtime Issues are reports of programming errors found at run time. Issues can be found by variety of tools, including Address Sanitizer (ASan), Main Thread Checker (MTC), Thread Sanitizer (TSan), and Undefined Behavior Sanitizer (UBSan).

Posts under Xcode Sanitizers and Runtime Issues tag

195 Posts

Post

Replies

Boosts

Views

Activity

Application circumvented Objective-C runtime dealloc initiation for _UITextLayoutFragmentView
App works on Xcode's previous versions perfectly, but in Xcode 14 it is always crashed while launching, the log shows "Application circumvented Objective-C runtime dealloc initiation for _UITextLayoutFragmentView", we can't find where _UITextLayoutFragmentView is, we have no ideas, Help please!
3
0
1.3k
Sep ’22
MallocStackLogging behaves differently between iOS 14 and 15 or 16
When running Cucumberish BDD tests on iOS 15.3 or later, I get this error in the Xcode console: MallocStackLogging: could not tag MSL-related memory as no_footprint, so those pages will be included in process footprint - (null) After producing this error all of my automated Gherkin/Cucumberish tests are silently skipped, but no further errors are registered. I can't find any MallocStackLogging options that seem to pertain to no_footprint, and the string "footprint" doesn't show up in my code base. I don't find any references to MallocStackLogging in recent iOS release notes. My various xctestplan files contain: "defaultOptions" : { "mallocStackLoggingOptions" : { "loggingType" : "liveAllocations" } }, and this is the only reference to mallocStackLogging I can find in the code base. Any explanation for what this might mean?
0
1
1.7k
Sep ’22
iOS 16.0 beta Crash --pplication circumvented Objective-C runtime dealloc initiation for <UITabBarButton> object.
When I launched my app and found it crashed with NSInternalInconsistencyException', reason: 'Application circumvented Objective-C runtime dealloc initiation for object.' in iOS 16.0 beta. And the call stack like this: Thread 0: -[UIView dealloc] -[UITabBarButton dealloc] AutoreleasePoolPage::releaseUntil(objc_object**) ...... How can I fix this crash before iOS 16.0 release published
4
0
2k
Sep ’22
What does this TSAN exception indicate?
When I run my code with TSAN enabled I am getting an EXC_BAD_ACCESS exception thrown. I am seeing the following error in debug navigator: #0 0x0000000104becb44 in __tsan::ThreadClock::release(__tsan::DenseSlabAllocCache*, __tsan::SyncClock*) () The stack trace is not in my code. Without TSAN I am seeing the following in the console: (Fig) signalled err=-16993 Anybody seen this before? This is under the new Beta 6 Xcode running under Ventura 13.0 Beta (22A5331f), on an M1 Mac.
1
1
1.1k
Aug ’22
Keep recieaving a "Class is not key value coding-compliant"
I am recieaving a "Class is not key value coding-compliant" error concerning multiple UI objects within my Xcode project despite being correctly linked up with their corresponding variable within their view controllers. I suspected it had something to do with the project file itself experiencing a bug but when I transfer all my code and view controllers to a new project the error continued to appear. For example, within one view controller I am attempting to create a password login page, however when I enter the page within the simulator it crashes and presents the following error in the AppDelegate next to @main class EviPasswordVC: UIViewController {   @IBOutlet weak var txtPassword: UITextField!   @IBOutlet weak var LabError: UILabel!       override func viewDidLoad() {     super.viewDidLoad()     // Do any additional setup after loading the view.   }       @IBAction func btnEnter(_ sender: UIButton) {     if txtPassword.text == "1234" {       LabError.text = "Success"     performSegue(withIdentifier: "gotoEvidence(Menu)", sender: self)} //If the text entered into 'txtPassword' = 1234, 'LabError' will display "Success' and the next page will be shown.       else {         LabError.text = "Failed"} //If the text entered into 'txtPassword' does not equal '1234', 'LabError will display "Failed"     } } Thread 1: "[<UIViewController 0x7fa417a1f180> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key LabError." This error continued to persist even when I ensured the label had the variable name 'LabError' within my view controller. This code use to work, however when I started organising these sections of code under different classes corresponding to different view controllers errors like this started to occur, even when I reverted back to their orginal position under the same class and view controller. If anyone knows the possible cause for this error and any way to resolve it can they please respond, it would be extremely appreicated. Thanks.
6
0
3.6k
Aug ’22
NSURL ERROR domain Error code = 999
Please advise. We use this method, and unable to pass the form , and stuck at the error code Domain=NSURLErrorDomain Code=-999 "(null)" NSURL* URL = [[NSBundle mainBundle] URLForResource:@"cameraProxy.html" withExtension:nil subdirectory:@"www" ]; [theWebView loadRequest:[NSURLRequest requestWithURL:URL]]; 2022-08-05 17:51:46.290824+0900 SMSC[35139:1191314] ERROR : Error Domain=NSURLErrorDomain Code=-999 "(null)" 2022-08-05 17:51:46.295358+0900 SMSC[35139:1191314] MainViewController url = (null) 2022-08-05 17:51:46.295900+0900 SMSC[35139:1191314] 35139: CFNetwork internal error (0xc01a:/Library/Caches/com.apple.xbs/Sources/CFNetwork_Sim/CFNetwork-1327.0.4/Protocol/HTTPProtocol.cpp:274)
4
0
4.9k
Aug ’22
(Xcode 14.0 beta 5) ThreadSanitizer: CHECK failed: tsan_platform_posix.cpp:83 "((beg)) <= ((end))"
Similarly to this old post [https://developer.apple.com/forums/thread/130969] I am getting a "ThreadSanitizer: CHECK failed" before my code seems to have launched. Is this something I should spend time trying to reproduce in a small project or is it an Xcode bug others are getting too? Turning off the sanitizer is my dirty workaround for now.
2
0
3k
Aug ’22
Unable to load custom class 'GameScene' from module '(null)'
For some reason Xcode has started showing this message over the last couple days. Even loading a new SpriteKit project and running it unmodified gets the error. The scene loads, but is unresponsive. I've also tried modifying the program by removing the default scene and creating a new one; new SKS file has the same issue. Existing projects still compile and load properly, however. Considering the default template isn't working out of the box anymore, is this an Xcode update gone wrong, or is there something that can be done to force it to realize the class does, in fact, exist? Thanks!
7
0
2.7k
Aug ’22
App launch fails with Thread Sanitiser enabled
When I enable Thread Sanitiser, the app crashes at launch with: dyld: Symbol not found: _vfork   Referenced from: /Users/cyupa/Library/Developer/CoreSimulator/Devices/CC4C4E42-ED50-44EC-975F-EE359D6ADED7/data/Containers/Bundle/Application/6B59B224-9958-4405-8920-A96A932934E2/ClickDocDE.app/Frameworks/libclang_rt.tsan_iossim_dynamic.dylib   Expected in: /usr/lib/libSystem.B.dylib dyld: launch, loading dependent libraries DYLD_SHARED_CACHE_DIR=/Users/cyupa/Library/Developer/CoreSimulator/Caches/dyld/21A5294g/com.apple.CoreSimulator.SimRuntime.iOS-14-5.18E182 DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/cyupa/Library/Developer/Xcode/DerivedData/ClickDoc-czbdfskrwvaneubcallbzipphltx/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=@executable_path/Frameworks/libclang_rt.tsan_iossim_dynamic.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Content (lldb)  dyld`__abort_with_payload:     0x11162e750 <+0>:  movl   $0x2000209, %eax          ; imm = 0x2000209      0x11162e755 <+5>:  movq   %rcx, %r10     0x11162e758 <+8>:  syscall  ->  0x11162e75a <+10>: jae    0x11162e764               ; <+20>     0x11162e75c <+12>: movq   %rax, %rdi     0x11162e75f <+15>: jmp    0x1115ec120               ; cerror_nocancel     0x11162e764 <+20>: retq        0x11162e765 <+21>: nop         0x11162e766 <+22>: nop         0x11162e767 <+23>: nop     This fails on multiple machines with different OS and Xcode versions.
2
1
1.6k
Jul ’22
How can i solve this problem with iOS game upload?
I´m getting an error all the time when uploading an update for my latest iOS game, yesterday I uploaded the 1st version and everything went good, but today I´m trying to update it and I´m getting all the time this: ITMS-90338: Non-public API usage - The app contains one or more corrupted binaries. Rebuild the app and resubmit.. If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed. For further information, visit the Technical Support Information at http://developer.apple.com/support/technical/ I tried multiple things and nothing worked... I saw lots of blogs and videos and nothing... Can anyone help me?
1
0
1.7k
Jul ’22
Xcode: Could not launch “WebDriverAgentRunner_tvOS”
Hi I was facing this issue since a week, I tried all the options but no use, can someone help me please..!! I'm totally blocked. Could not launch “WebDriverAgentRunner_tvOS” Domain: IDEDebugSessionErrorDomain Code: 3 Failure Reason: The operation couldn’t be completed. Cound not find any application for open app system request &lt;FBSystemServiceOpenApplicationRequest: 0x282909e60; trusted: YES; bundleID: com.facebook.mm13.xcui.WebDriverAgentRunner.xctrunner; client: anon:664&gt; User Info: {     DVTErrorCreationDateKey = "2022-07-18 23:42:12 +0000";     DVTRadarComponentKey = 855031;     IDERunOperationFailingWorker = DBGLLDBLauncher;     RawUnderlyingErrorMessage = "The operation couldn\U2019t be completed. Cound not find any application for open app system request &lt;FBSystemServiceOpenApplicationRequest: 0x282909e60; trusted: YES; bundleID: com.facebook.mm13.xcui.WebDriverAgentRunner.xctrunner; client: anon:664&gt;"; } -- Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {     "device_model" = "AppleTV5,3";     "device_osBuild" = "15.4.1 (19L452)";     "device_platform" = "com.apple.platform.appletvos";     "launchSession_schemeCommand" = Test;     "launchSession_state" = 1;     "launchSession_targetArch" = arm64;     "operation_duration_ms" = 9344;     "operation_errorCode" = 3;     "operation_errorDomain" = IDEDebugSessionErrorDomain;     "operation_errorWorker" = DBGLLDBLauncher;     "operation_name" = IDEiPhoneRunOperationWorkerGroup;     "param_consoleMode" = 0;     "param_debugger_attachToExtensions" = 0;     "param_debugger_attachToXPC" = 1;     "param_debugger_type" = 4;     "param_destination_isProxy" = 0;     "param_destination_platform" = "com.apple.platform.appletvos";     "param_diag_MainThreadChecker_stopOnIssue" = 0;     "param_diag_MallocStackLogging_enableDuringAttach" = 0;     "param_diag_MallocStackLogging_enableForXPC" = 0;     "param_diag_allowLocationSimulation" = 1;     "param_diag_gpu_frameCapture_enable" = 3;     "param_diag_gpu_shaderValidation_enable" = 0;     "param_diag_gpu_validation_enable" = 1;     "param_diag_memoryGraphOnResourceException" = 0;     "param_diag_queueDebugging_enable" = 1;     "param_diag_runtimeProfile_generate" = 0;     "param_diag_sanitizer_asan_enable" = 0;     "param_diag_sanitizer_tsan_enable" = 0;     "param_diag_sanitizer_tsan_stopOnIssue" = 0;     "param_diag_sanitizer_ubsan_stopOnIssue" = 0;     "param_diag_showNonLocalizedStrings" = 0;     "param_diag_viewDebugging_enabled" = 1;     "param_diag_viewDebugging_insertDylibOnLaunch" = 0;     "param_install_style" = 2;     "param_launcher_UID" = 2;     "param_launcher_allowDeviceSensorReplayData" = 0;     "param_launcher_kind" = 0;     "param_launcher_style" = 0;     "param_launcher_substyle" = 0;     "param_runnable_appExtensionHostRunMode" = 0;     "param_runnable_productType" = "com.apple.product-type.application";     "param_runnable_type" = 1;     "param_testing_launchedForTesting" = 1;     "param_testing_suppressSimulatorApp" = 0;     "param_testing_usingCLI" = 0;     "sdk_canonicalName" = "appletvos15.4";     "sdk_osVersion" = "15.4";     "sdk_variant" = appletvos; } -- System Information macOS Version 12.4 (Build 21F79) Xcode 13.4.1 (20504) (Build 13F100) Timestamp: 2022-07-18T23:42:12Z
0
0
1.1k
Jul ’22
Referencing static method 'buildBlock' on 'Optional' requires that 'UIImage' conform to 'View'
I'm trying to make a mockup app to test my developing skills, i'm a mere beginner so I'm just using trial and error + tutorials to find my way through the solution and I can't get through this one, I'm thinking of using multiple Fan Francisco Icons so I may need a solution on how to insert an SF Icon ((I only know how to insert a Text or Image at the time)) Thanks in advice c: Happy coding everybody! //  ContentView.swift //  ------------- // //  Created by-------------- on 05/07/22. // import SwiftUI struct ContentView: View {     var body: some View {         ZStack { //ERROR HERE: Referencing static method 'buildBlock' on 'Optional' requires that 'UIImage' conform to 'View'             ScrollView {                              }                          VStack {         HStack {                          Text("Razer Nari")                 .font(.system(size: 90, weight: .semibold, design: .default))                 .fontWeight(.bold)                 .foregroundColor(Color(hue: 0.322, saturation: 0.885, brightness: 0.799))                 .padding(.trailing)                 .frame(width: 320.0, height: 215.0)                                           Image("razer")                 .resizable(resizingMode: .stretch)                 .aspectRatio(contentMode: .fit)                 .padding(.bottom)                 .frame(width: /*@START_MENU_TOKEN@*/120.0/*@END_MENU_TOKEN@*/, height: /*@START_MENU_TOKEN@*/120.0/*@END_MENU_TOKEN@*/)                                                            }                                                                 Image("cuffie")                 .resizable()                 .aspectRatio(contentMode: .fit)                 .padding([.bottom, .trailing])                 .frame(width: 320.0, height: 300.0)                                               Spacer()                      //ERROR OCCURRED WHEN TRYING TO USE A SF ICON, IDK IF IT'S THE CORRECT WAY TO USE THEM THO         UIImage(systemName: "antenna.radiowaves.left.and.right")                                                                                  }             .frame(maxWidth:.infinity, maxHeight: .infinity)             .background(Color(hue:0.0, saturation: 0.0 , brightness: 0.08 ))             .foregroundColor(Color.white)                      }                               }                                                                                                           }         struct ContentView_Previews: PreviewProvider {     static var previews: some View {         ContentView()     } }
1
0
2.3k
Jul ’22
multiple load and restore cycles of worldmap is causing crash
This crash occurs after 10-15 times saving an ARWorldMap to disk + restoring it with an ARWorldtrackingconfiguration and planeDetection enabled. It is somehow connected to a corrupted worldmap as it also occurs when restarting the app and running a configuration with the worldMap. Another reason could be a limit for anchors/planeAnchors in one session? Has anyone been able to fix a similar error? How can I locate the root cause? I am very grateful of any help
0
0
582
Jun ’22
Recommendation on How to Learn More on Using Various Xcode Debugging Panes
I don’t have a fundamental background in Computer Science or Computing Engineering. I want to learn more about how to do code debugging, but within the bounds of how Xcode provides various debugging panes. I’ve seen a number of WWDC session videos about Xcode and debugging. However I really need to learn more about the fundamentals of using Xcode panes like the stack trace pane, the variables pane, and the debugging console. I would greatly appreciate any advice on tutorials, videos, WWDC sessions, etc. that go to the basic levels of what these panes show, how to interpret the content, and how to interact with the information in various Xcode debugging-related panes. Thank you.
0
0
1.1k
Jun ’22
App crashes on Big Sur but works on Monterey
Hello, I have an app, which runs fine on Monterey, but crashes on Big Sur. However, I am able to run it on Big Sur from XCode only. System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000004079c498ca0 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [3858] VM Regions Near 0x4079c498ca0: mapped file 11e4ff000-11e607000 [ 1056K] r--/rw- SM=COW Object_id=6ea347b --&gt; MALLOC_NANO 600000000000-600008000000 [128.0M] rw-/rwx SM=PRV Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x00007fff2040f4af objc_release + 31 1 com.apple.UIFoundation 0x00007fff23c1aba8 -[UINibDecoder dealloc] + 119 2 com.apple.AppKit 0x00007fff22fef7ec -[NSNib dealloc] + 28 3 libobjc.A.dylib 0x00007fff2042d20f AutoreleasePoolPage::releaseUntil(objc_object**) + 167 4 libobjc.A.dylib 0x00007fff2040fe30 objc_autoreleasePoolPop + 161 5 com.apple.CoreFoundation 0x00007fff206284b6 _CFAutoreleasePoolPop + 22 6 com.apple.Foundation 0x00007fff213ca0bb -[NSAutoreleasePool drain] + 131 7 com.apple.Foundation 0x00007fff213cb198 _NSAppleEventManagerGenericHandler + 98 8 com.apple.AE 0x00007fff264487f3 0x7fff2643c000 + 51187 9 com.apple.AE 0x00007fff26447f0e 0x7fff2643c000 + 48910 10 com.apple.AE 0x00007fff26440c23 aeProcessAppleEvent + 448 11 com.apple.HIToolbox 0x00007fff288bf8a2 AEProcessAppleEvent + 54 12 com.apple.AppKit 0x00007fff22e6e210 _DPSNextEvent + 2046 13 com.apple.AppKit 0x00007fff22e6c545 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364 14 com.apple.AppKit 0x00007fff22e5e869 -[NSApplication run] + 586 15 com.apple.AppKit 0x00007fff22e32a6c NSApplicationMain + 816 16 com.MyCompany.MyApp. 0x000000010d699799 main + 9 (AppDelegate.swift:15) 17 libdyld.dylib 0x00007fff2058af3d start + 1 There are some pictures(please open them in new tab) from Zombie instrument: Regarding Zombie, it looks like some error happens in this code in @NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate, Loggable  is the method fileprivate func handleFSE(event: NSAppleEventDescriptor?, replyEvent: NSAppleEventDescriptor?) {     Defaults[.deepLinkData] = event?.paramDescriptor(forKeyword: keyDirectObject)?.stringValue     Defaults[.isFromCUSLaunch] = true     if let window = WindowControllerFrom(storyboard: .cus, withIdentifier: .cusWindow) {       logIfCan(string: "Deeplink data: \(event?.paramDescriptor(forKeyword: keyDirectObject)?.stringValue ?? .empty)")       let cusVC = CUSViewController(event?.paramDescriptor(forKeyword: keyDirectObject)?.stringValue ?? .empty)       window.contentViewController = cusVC       if let screen = NSScreen.main {         window.window?.setFrame(screen.visibleFrame, display: true, animate: true)       }       window.window?.makeKeyAndOrderFront(nil)     }   } WindowControllerFrom returns NSWindowController? and CUSViewController is a class which inherits from AbstractViewController. I would appreciate any idea what can be wrong here, and why there is no problem on Monterey (both M1 and Intel), but crashes on Big Sur?
0
1
1.1k
May ’22
Application circumvented Objective-C runtime dealloc initiation for _UITextLayoutFragmentView
App works on Xcode's previous versions perfectly, but in Xcode 14 it is always crashed while launching, the log shows "Application circumvented Objective-C runtime dealloc initiation for _UITextLayoutFragmentView", we can't find where _UITextLayoutFragmentView is, we have no ideas, Help please!
Replies
3
Boosts
0
Views
1.3k
Activity
Sep ’22
MallocStackLogging behaves differently between iOS 14 and 15 or 16
When running Cucumberish BDD tests on iOS 15.3 or later, I get this error in the Xcode console: MallocStackLogging: could not tag MSL-related memory as no_footprint, so those pages will be included in process footprint - (null) After producing this error all of my automated Gherkin/Cucumberish tests are silently skipped, but no further errors are registered. I can't find any MallocStackLogging options that seem to pertain to no_footprint, and the string "footprint" doesn't show up in my code base. I don't find any references to MallocStackLogging in recent iOS release notes. My various xctestplan files contain: "defaultOptions" : { "mallocStackLoggingOptions" : { "loggingType" : "liveAllocations" } }, and this is the only reference to mallocStackLogging I can find in the code base. Any explanation for what this might mean?
Replies
0
Boosts
1
Views
1.7k
Activity
Sep ’22
iOS 16.0 beta Crash --pplication circumvented Objective-C runtime dealloc initiation for <UITabBarButton> object.
When I launched my app and found it crashed with NSInternalInconsistencyException', reason: 'Application circumvented Objective-C runtime dealloc initiation for object.' in iOS 16.0 beta. And the call stack like this: Thread 0: -[UIView dealloc] -[UITabBarButton dealloc] AutoreleasePoolPage::releaseUntil(objc_object**) ...... How can I fix this crash before iOS 16.0 release published
Replies
4
Boosts
0
Views
2k
Activity
Sep ’22
How many gigabytes of RAM do you need for development?
How many gigabytes of RAM do you need for development? please provide me with an honest answer.
Replies
4
Boosts
0
Views
1.5k
Activity
Aug ’22
What does this TSAN exception indicate?
When I run my code with TSAN enabled I am getting an EXC_BAD_ACCESS exception thrown. I am seeing the following error in debug navigator: #0 0x0000000104becb44 in __tsan::ThreadClock::release(__tsan::DenseSlabAllocCache*, __tsan::SyncClock*) () The stack trace is not in my code. Without TSAN I am seeing the following in the console: (Fig) signalled err=-16993 Anybody seen this before? This is under the new Beta 6 Xcode running under Ventura 13.0 Beta (22A5331f), on an M1 Mac.
Replies
1
Boosts
1
Views
1.1k
Activity
Aug ’22
Keep recieaving a "Class is not key value coding-compliant"
I am recieaving a "Class is not key value coding-compliant" error concerning multiple UI objects within my Xcode project despite being correctly linked up with their corresponding variable within their view controllers. I suspected it had something to do with the project file itself experiencing a bug but when I transfer all my code and view controllers to a new project the error continued to appear. For example, within one view controller I am attempting to create a password login page, however when I enter the page within the simulator it crashes and presents the following error in the AppDelegate next to @main class EviPasswordVC: UIViewController {   @IBOutlet weak var txtPassword: UITextField!   @IBOutlet weak var LabError: UILabel!       override func viewDidLoad() {     super.viewDidLoad()     // Do any additional setup after loading the view.   }       @IBAction func btnEnter(_ sender: UIButton) {     if txtPassword.text == "1234" {       LabError.text = "Success"     performSegue(withIdentifier: "gotoEvidence(Menu)", sender: self)} //If the text entered into 'txtPassword' = 1234, 'LabError' will display "Success' and the next page will be shown.       else {         LabError.text = "Failed"} //If the text entered into 'txtPassword' does not equal '1234', 'LabError will display "Failed"     } } Thread 1: "[<UIViewController 0x7fa417a1f180> setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key LabError." This error continued to persist even when I ensured the label had the variable name 'LabError' within my view controller. This code use to work, however when I started organising these sections of code under different classes corresponding to different view controllers errors like this started to occur, even when I reverted back to their orginal position under the same class and view controller. If anyone knows the possible cause for this error and any way to resolve it can they please respond, it would be extremely appreicated. Thanks.
Replies
6
Boosts
0
Views
3.6k
Activity
Aug ’22
NSURL ERROR domain Error code = 999
Please advise. We use this method, and unable to pass the form , and stuck at the error code Domain=NSURLErrorDomain Code=-999 "(null)" NSURL* URL = [[NSBundle mainBundle] URLForResource:@"cameraProxy.html" withExtension:nil subdirectory:@"www" ]; [theWebView loadRequest:[NSURLRequest requestWithURL:URL]]; 2022-08-05 17:51:46.290824+0900 SMSC[35139:1191314] ERROR : Error Domain=NSURLErrorDomain Code=-999 "(null)" 2022-08-05 17:51:46.295358+0900 SMSC[35139:1191314] MainViewController url = (null) 2022-08-05 17:51:46.295900+0900 SMSC[35139:1191314] 35139: CFNetwork internal error (0xc01a:/Library/Caches/com.apple.xbs/Sources/CFNetwork_Sim/CFNetwork-1327.0.4/Protocol/HTTPProtocol.cpp:274)
Replies
4
Boosts
0
Views
4.9k
Activity
Aug ’22
(Xcode 14.0 beta 5) ThreadSanitizer: CHECK failed: tsan_platform_posix.cpp:83 "((beg)) <= ((end))"
Similarly to this old post [https://developer.apple.com/forums/thread/130969] I am getting a "ThreadSanitizer: CHECK failed" before my code seems to have launched. Is this something I should spend time trying to reproduce in a small project or is it an Xcode bug others are getting too? Turning off the sanitizer is my dirty workaround for now.
Replies
2
Boosts
0
Views
3k
Activity
Aug ’22
Unable to load custom class 'GameScene' from module '(null)'
For some reason Xcode has started showing this message over the last couple days. Even loading a new SpriteKit project and running it unmodified gets the error. The scene loads, but is unresponsive. I've also tried modifying the program by removing the default scene and creating a new one; new SKS file has the same issue. Existing projects still compile and load properly, however. Considering the default template isn't working out of the box anymore, is this an Xcode update gone wrong, or is there something that can be done to force it to realize the class does, in fact, exist? Thanks!
Replies
7
Boosts
0
Views
2.7k
Activity
Aug ’22
OSStatus error -34
The Operation couldn’t be completed (OSStatus error -34) any idea how to resolve this?
Replies
1
Boosts
0
Views
1k
Activity
Aug ’22
App launch fails with Thread Sanitiser enabled
When I enable Thread Sanitiser, the app crashes at launch with: dyld: Symbol not found: _vfork   Referenced from: /Users/cyupa/Library/Developer/CoreSimulator/Devices/CC4C4E42-ED50-44EC-975F-EE359D6ADED7/data/Containers/Bundle/Application/6B59B224-9958-4405-8920-A96A932934E2/ClickDocDE.app/Frameworks/libclang_rt.tsan_iossim_dynamic.dylib   Expected in: /usr/lib/libSystem.B.dylib dyld: launch, loading dependent libraries DYLD_SHARED_CACHE_DIR=/Users/cyupa/Library/Developer/CoreSimulator/Caches/dyld/21A5294g/com.apple.CoreSimulator.SimRuntime.iOS-14-5.18E182 DYLD_ROOT_PATH=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot DYLD_LIBRARY_PATH=/Users/cyupa/Library/Developer/Xcode/DerivedData/ClickDoc-czbdfskrwvaneubcallbzipphltx/Build/Products/Debug-iphonesimulator:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=@executable_path/Frameworks/libclang_rt.tsan_iossim_dynamic.dylib:/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libBacktraceRecording.dylib:/Applications/Xcode.app/Content (lldb)  dyld`__abort_with_payload:     0x11162e750 <+0>:  movl   $0x2000209, %eax          ; imm = 0x2000209      0x11162e755 <+5>:  movq   %rcx, %r10     0x11162e758 <+8>:  syscall  ->  0x11162e75a <+10>: jae    0x11162e764               ; <+20>     0x11162e75c <+12>: movq   %rax, %rdi     0x11162e75f <+15>: jmp    0x1115ec120               ; cerror_nocancel     0x11162e764 <+20>: retq        0x11162e765 <+21>: nop         0x11162e766 <+22>: nop         0x11162e767 <+23>: nop     This fails on multiple machines with different OS and Xcode versions.
Replies
2
Boosts
1
Views
1.6k
Activity
Jul ’22
How can i solve this problem with iOS game upload?
I´m getting an error all the time when uploading an update for my latest iOS game, yesterday I uploaded the 1st version and everything went good, but today I´m trying to update it and I´m getting all the time this: ITMS-90338: Non-public API usage - The app contains one or more corrupted binaries. Rebuild the app and resubmit.. If method names in your source code match the private Apple APIs listed above, altering your method names will help prevent this app from being flagged in future submissions. In addition, note that one or more of the above APIs may be located in a static library that was included with your app. If so, they must be removed. For further information, visit the Technical Support Information at http://developer.apple.com/support/technical/ I tried multiple things and nothing worked... I saw lots of blogs and videos and nothing... Can anyone help me?
Replies
1
Boosts
0
Views
1.7k
Activity
Jul ’22
Xcode: Could not launch “WebDriverAgentRunner_tvOS”
Hi I was facing this issue since a week, I tried all the options but no use, can someone help me please..!! I'm totally blocked. Could not launch “WebDriverAgentRunner_tvOS” Domain: IDEDebugSessionErrorDomain Code: 3 Failure Reason: The operation couldn’t be completed. Cound not find any application for open app system request &lt;FBSystemServiceOpenApplicationRequest: 0x282909e60; trusted: YES; bundleID: com.facebook.mm13.xcui.WebDriverAgentRunner.xctrunner; client: anon:664&gt; User Info: {     DVTErrorCreationDateKey = "2022-07-18 23:42:12 +0000";     DVTRadarComponentKey = 855031;     IDERunOperationFailingWorker = DBGLLDBLauncher;     RawUnderlyingErrorMessage = "The operation couldn\U2019t be completed. Cound not find any application for open app system request &lt;FBSystemServiceOpenApplicationRequest: 0x282909e60; trusted: YES; bundleID: com.facebook.mm13.xcui.WebDriverAgentRunner.xctrunner; client: anon:664&gt;"; } -- Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : {     "device_model" = "AppleTV5,3";     "device_osBuild" = "15.4.1 (19L452)";     "device_platform" = "com.apple.platform.appletvos";     "launchSession_schemeCommand" = Test;     "launchSession_state" = 1;     "launchSession_targetArch" = arm64;     "operation_duration_ms" = 9344;     "operation_errorCode" = 3;     "operation_errorDomain" = IDEDebugSessionErrorDomain;     "operation_errorWorker" = DBGLLDBLauncher;     "operation_name" = IDEiPhoneRunOperationWorkerGroup;     "param_consoleMode" = 0;     "param_debugger_attachToExtensions" = 0;     "param_debugger_attachToXPC" = 1;     "param_debugger_type" = 4;     "param_destination_isProxy" = 0;     "param_destination_platform" = "com.apple.platform.appletvos";     "param_diag_MainThreadChecker_stopOnIssue" = 0;     "param_diag_MallocStackLogging_enableDuringAttach" = 0;     "param_diag_MallocStackLogging_enableForXPC" = 0;     "param_diag_allowLocationSimulation" = 1;     "param_diag_gpu_frameCapture_enable" = 3;     "param_diag_gpu_shaderValidation_enable" = 0;     "param_diag_gpu_validation_enable" = 1;     "param_diag_memoryGraphOnResourceException" = 0;     "param_diag_queueDebugging_enable" = 1;     "param_diag_runtimeProfile_generate" = 0;     "param_diag_sanitizer_asan_enable" = 0;     "param_diag_sanitizer_tsan_enable" = 0;     "param_diag_sanitizer_tsan_stopOnIssue" = 0;     "param_diag_sanitizer_ubsan_stopOnIssue" = 0;     "param_diag_showNonLocalizedStrings" = 0;     "param_diag_viewDebugging_enabled" = 1;     "param_diag_viewDebugging_insertDylibOnLaunch" = 0;     "param_install_style" = 2;     "param_launcher_UID" = 2;     "param_launcher_allowDeviceSensorReplayData" = 0;     "param_launcher_kind" = 0;     "param_launcher_style" = 0;     "param_launcher_substyle" = 0;     "param_runnable_appExtensionHostRunMode" = 0;     "param_runnable_productType" = "com.apple.product-type.application";     "param_runnable_type" = 1;     "param_testing_launchedForTesting" = 1;     "param_testing_suppressSimulatorApp" = 0;     "param_testing_usingCLI" = 0;     "sdk_canonicalName" = "appletvos15.4";     "sdk_osVersion" = "15.4";     "sdk_variant" = appletvos; } -- System Information macOS Version 12.4 (Build 21F79) Xcode 13.4.1 (20504) (Build 13F100) Timestamp: 2022-07-18T23:42:12Z
Replies
0
Boosts
0
Views
1.1k
Activity
Jul ’22
Older macs on BigSur won't be able to develop iOS 15.4+ apps anymore?
I have MacOS BigSur 11.6.7 but when i install xcode 13.4.1 its says Xcode Can't be installed on "Chaudhry" because macOS version 12 or later required. Kindly Give me solution to install latest xcode on my macOS. Thanks
Replies
1
Boosts
0
Views
749
Activity
Jul ’22
Referencing static method 'buildBlock' on 'Optional' requires that 'UIImage' conform to 'View'
I'm trying to make a mockup app to test my developing skills, i'm a mere beginner so I'm just using trial and error + tutorials to find my way through the solution and I can't get through this one, I'm thinking of using multiple Fan Francisco Icons so I may need a solution on how to insert an SF Icon ((I only know how to insert a Text or Image at the time)) Thanks in advice c: Happy coding everybody! //  ContentView.swift //  ------------- // //  Created by-------------- on 05/07/22. // import SwiftUI struct ContentView: View {     var body: some View {         ZStack { //ERROR HERE: Referencing static method 'buildBlock' on 'Optional' requires that 'UIImage' conform to 'View'             ScrollView {                              }                          VStack {         HStack {                          Text("Razer Nari")                 .font(.system(size: 90, weight: .semibold, design: .default))                 .fontWeight(.bold)                 .foregroundColor(Color(hue: 0.322, saturation: 0.885, brightness: 0.799))                 .padding(.trailing)                 .frame(width: 320.0, height: 215.0)                                           Image("razer")                 .resizable(resizingMode: .stretch)                 .aspectRatio(contentMode: .fit)                 .padding(.bottom)                 .frame(width: /*@START_MENU_TOKEN@*/120.0/*@END_MENU_TOKEN@*/, height: /*@START_MENU_TOKEN@*/120.0/*@END_MENU_TOKEN@*/)                                                            }                                                                 Image("cuffie")                 .resizable()                 .aspectRatio(contentMode: .fit)                 .padding([.bottom, .trailing])                 .frame(width: 320.0, height: 300.0)                                               Spacer()                      //ERROR OCCURRED WHEN TRYING TO USE A SF ICON, IDK IF IT'S THE CORRECT WAY TO USE THEM THO         UIImage(systemName: "antenna.radiowaves.left.and.right")                                                                                  }             .frame(maxWidth:.infinity, maxHeight: .infinity)             .background(Color(hue:0.0, saturation: 0.0 , brightness: 0.08 ))             .foregroundColor(Color.white)                      }                               }                                                                                                           }         struct ContentView_Previews: PreviewProvider {     static var previews: some View {         ContentView()     } }
Replies
1
Boosts
0
Views
2.3k
Activity
Jul ’22
App Crash in default Photo app in simulator Xcode 13
I noticed that in iOS15 on Xcode 13 with release version for all simulator while using the default photo app when I am scrolling up for the details information it crashes.
Replies
3
Boosts
1
Views
1.2k
Activity
Jun ’22
multiple load and restore cycles of worldmap is causing crash
This crash occurs after 10-15 times saving an ARWorldMap to disk + restoring it with an ARWorldtrackingconfiguration and planeDetection enabled. It is somehow connected to a corrupted worldmap as it also occurs when restarting the app and running a configuration with the worldMap. Another reason could be a limit for anchors/planeAnchors in one session? Has anyone been able to fix a similar error? How can I locate the root cause? I am very grateful of any help
Replies
0
Boosts
0
Views
582
Activity
Jun ’22
Recommendation on How to Learn More on Using Various Xcode Debugging Panes
I don’t have a fundamental background in Computer Science or Computing Engineering. I want to learn more about how to do code debugging, but within the bounds of how Xcode provides various debugging panes. I’ve seen a number of WWDC session videos about Xcode and debugging. However I really need to learn more about the fundamentals of using Xcode panes like the stack trace pane, the variables pane, and the debugging console. I would greatly appreciate any advice on tutorials, videos, WWDC sessions, etc. that go to the basic levels of what these panes show, how to interpret the content, and how to interact with the information in various Xcode debugging-related panes. Thank you.
Replies
0
Boosts
0
Views
1.1k
Activity
Jun ’22
XCode13.3 po freezes in lldb ,using Chinese input
Device 2021 MacBook Pro 16' MacOS 12.2 RAM 32G M1 Max
Replies
4
Boosts
0
Views
1.7k
Activity
Jun ’22
App crashes on Big Sur but works on Monterey
Hello, I have an app, which runs fine on Monterey, but crashes on Big Sur. However, I am able to run it on Big Sur from XCode only. System Integrity Protection: enabled Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x000004079c498ca0 Exception Note: EXC_CORPSE_NOTIFY Termination Signal: Segmentation fault: 11 Termination Reason: Namespace SIGNAL, Code 0xb Terminating Process: exc handler [3858] VM Regions Near 0x4079c498ca0: mapped file 11e4ff000-11e607000 [ 1056K] r--/rw- SM=COW Object_id=6ea347b --&gt; MALLOC_NANO 600000000000-600008000000 [128.0M] rw-/rwx SM=PRV Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libobjc.A.dylib 0x00007fff2040f4af objc_release + 31 1 com.apple.UIFoundation 0x00007fff23c1aba8 -[UINibDecoder dealloc] + 119 2 com.apple.AppKit 0x00007fff22fef7ec -[NSNib dealloc] + 28 3 libobjc.A.dylib 0x00007fff2042d20f AutoreleasePoolPage::releaseUntil(objc_object**) + 167 4 libobjc.A.dylib 0x00007fff2040fe30 objc_autoreleasePoolPop + 161 5 com.apple.CoreFoundation 0x00007fff206284b6 _CFAutoreleasePoolPop + 22 6 com.apple.Foundation 0x00007fff213ca0bb -[NSAutoreleasePool drain] + 131 7 com.apple.Foundation 0x00007fff213cb198 _NSAppleEventManagerGenericHandler + 98 8 com.apple.AE 0x00007fff264487f3 0x7fff2643c000 + 51187 9 com.apple.AE 0x00007fff26447f0e 0x7fff2643c000 + 48910 10 com.apple.AE 0x00007fff26440c23 aeProcessAppleEvent + 448 11 com.apple.HIToolbox 0x00007fff288bf8a2 AEProcessAppleEvent + 54 12 com.apple.AppKit 0x00007fff22e6e210 _DPSNextEvent + 2046 13 com.apple.AppKit 0x00007fff22e6c545 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364 14 com.apple.AppKit 0x00007fff22e5e869 -[NSApplication run] + 586 15 com.apple.AppKit 0x00007fff22e32a6c NSApplicationMain + 816 16 com.MyCompany.MyApp. 0x000000010d699799 main + 9 (AppDelegate.swift:15) 17 libdyld.dylib 0x00007fff2058af3d start + 1 There are some pictures(please open them in new tab) from Zombie instrument: Regarding Zombie, it looks like some error happens in this code in @NSApplicationMain class AppDelegate: NSObject, NSApplicationDelegate, Loggable  is the method fileprivate func handleFSE(event: NSAppleEventDescriptor?, replyEvent: NSAppleEventDescriptor?) {     Defaults[.deepLinkData] = event?.paramDescriptor(forKeyword: keyDirectObject)?.stringValue     Defaults[.isFromCUSLaunch] = true     if let window = WindowControllerFrom(storyboard: .cus, withIdentifier: .cusWindow) {       logIfCan(string: "Deeplink data: \(event?.paramDescriptor(forKeyword: keyDirectObject)?.stringValue ?? .empty)")       let cusVC = CUSViewController(event?.paramDescriptor(forKeyword: keyDirectObject)?.stringValue ?? .empty)       window.contentViewController = cusVC       if let screen = NSScreen.main {         window.window?.setFrame(screen.visibleFrame, display: true, animate: true)       }       window.window?.makeKeyAndOrderFront(nil)     }   } WindowControllerFrom returns NSWindowController? and CUSViewController is a class which inherits from AbstractViewController. I would appreciate any idea what can be wrong here, and why there is no problem on Monterey (both M1 and Intel), but crashes on Big Sur?
Replies
0
Boosts
1
Views
1.1k
Activity
May ’22