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

thread_policy_set(1) returned 46
Hi there, Recently we have been seeing thread_policy_set(1) returned 46 flooding our log output. We tracked down that the flood of this is coming from a separate library whom we've contacted. They mentioned that this is a Apple internal message that comes up in the library's deadlock detector. The proposed solution was to use OS_ACTIVITY_MODE env var to hide the logs as suggested from the post on StackOverflow.. I tried all suggestions from that StackOverflow post, which were able to hide other system logs generated from Apple but it specifically did not hide the thread_policy_set(1) returned 46 What I am hoping to understand is: Why does this message come up? I see that the documentation for this on Apple's docs is very limited. Is this message's visibility controllable via a separate variable in project settings outside of modifying settings for all logs? As a last resort, how can I disable only this log message? Thank you!
19
0
4.5k
May ’22
Xcode project Unknown errors
I get these errors and warning I was wondering is someone could help there things I haven't seen elsewhere but am hoping someone out there could help this is one of the errors [Command CodeSign failed with a nonzero exit code] then this one are the ones that give me problems [Multiple commands produce '/Users/mdstudent/Library/Developer/Xcode/DerivedData/BlackJack4.0-cdjkpageluthngelnlhgxyadcbbf/Build/Products/Release-iphonesimulator/BlackJack4.0.app/Info.plist': Target 'BlackJack4.0' (project 'BlackJack4.0') has copy command from '/Users/mdstudent/Desktop/BlackJack4.0/BlackJack/Info.plist' to '/Users/mdstudent/Library/Developer/Xcode/DerivedData/BlackJack4.0-cdjkpageluthngelnlhgxyadcbbf/Build/Products/Release-iphonesimulator/BlackJack4.0.app/Info.plist' Target 'BlackJack4.0' (project 'BlackJack4.0') has process command with output '/Users/mdstudent/Library/Developer/Xcode/DerivedData/BlackJack4.0-cdjkpageluthngelnlhgxyadcbbf/Build/Products/Release-iphonesimulator/BlackJack4.0.app/Info.plist'] thanks to anyone who sees and helps
1
0
1.7k
Apr ’22
Obscure crash observed. Any insights?
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 CoreFoundation 0x000000019d415ec8 0x19d371000 + 675528 1 CoreVideo 0x00000001a5a3d38c 0x1a5a2f000 + 58252 2 CoreVideo 0x00000001a5a3e498 0x1a5a2f000 + 62616 3 MirAIe 0x0000000103d7620c 0x102968000 + 21029388 4 MirAIe 0x0000000103beb76c 0x102968000 + 19412844 5 libdispatch.dylib 0x000000019d085a84 0x19d083000 + 10884 6 libdispatch.dylib 0x000000019d08781c 0x19d083000 + 18460 7 libdispatch.dylib 0x000000019d095c70 0x19d083000 + 76912 8 CoreFoundation 0x000000019d414340 0x19d371000 + 668480 9 CoreFoundation 0x000000019d40e218 0x19d371000 + 643608 10 CoreFoundation 0x000000019d40d308 0x19d371000 + 639752 11 GraphicsServices 0x00000001b4a90734 0x1b4a8d000 + 14132 12 UIKitCore 0x000000019fe8b75c 0x19f2c1000 + 12363612 13 UIKitCore 0x000000019fe90fcc 0x19f2c1000 + 12386252 14 MirAIe 0x00000001029818a4 0x102968000 + 104612 15 libdyld.dylib 0x000000019d0c9cf8 0x19d0c8000 + 7416 Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000281da30c0 x1: 0x0000000000000000 x2: 0x0000000281da30c0 x3: 0x00000001acafa188 x4: 0x00000000000062dc x5: 0x00000000fffffffe x6: 0x000000016d495f34 x7: 0x000000016d495f28 x8: 0x0000000000000000 x9: 0x0000000100000053 x10: 0x00006e0105ac30c0 x11: 0x007ffffffffffff8 x12: 0x0000000000000055 x13: 0x0000000106992330 x14: 0x00000000f781f800 x15: 0x0000000104bb5a00 x16: 0x00006e0105ac30c0 x17: 0x0000000105ac30c0 x18: 0x0000000110530abb x19: 0x0000000281da30c0 x20: 0x0000000000000000 x21: 0x0000000283614040 x22: 0x00000002839b9080 x23: 0x0000000000000114 x24: 0x0000000000000000 x25: 0x000000010572f9a0 x26: 0x000000000000000f x27: 0x0000000000000000 x28: 0x0000000002ffffff fp: 0x000000016d496970 lr: 0xbf283781a5a3d38c sp: 0x000000016d496970 pc: 0x000000019d415ec8 cpsr: 0x20000000 esr: 0xf200c472 Address size fault
0
0
908
Apr ’22
Getting Error while Product> Archive upload to app store connect
Hi, I am getting below error when trying to upload archive from xcode : - Missing 64-bit support. iOS apps submitted to the App Store must include 64-bit support and be built with the iOS 8 SDK or later. We recommend using the default "Standard Architectures" build setting for "Architectures" in Xcode, to build a single binary with both 32-bit and 64-bit support. With error code STATE_ERROR.VALIDATION_ERROR.90086 for id 75ffbe1b-dbc7-4213-82a8-a520b19cf690 I have already set arm64 under Build settings for my project and even my ios SDK version is 11.0 My Xcode version is 13. Stuck in this issue since past one week. Any help will be highly appreciated
1
0
858
Apr ’22
XCode 13.3 - iPhone 11 - iOS 15.4 - Image Assets - Background Image not loading
I am having an image assets used for loading the background image in my iOS application. The image assets contains background images that provides support for 2x, 3x, 2x Retina 4, 2x Retina HD 4.7", 3x iPhone X/iPhone Xs, 3x iPhone Xs Max and 2x iPhone XR. When i run my iOS application using XCode 13.3 on iPhone 11, iPhone 11 Pro and iPhone 11 Pro Max then the background image is not loading instead a white colour background is getting displayed. When i try to run the iOS application using XCode 13.3 on iPhone 12 or any other Simulator devices (other than iPhone 11 family) then the background image is getting loaded perfectly. Can you please suggest on how to fix the background image loading issue getting occurred only in iPhone 11 having iOS 15.4 version?
0
0
579
Apr ’22
Xcode TableView Warning causing TestFlight Release to crash
I received the following warning: [TableView] Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window. I am getting the warning during debugging and my table fully loads with data at that point, but when I change the scheme to release to put into TestFlight, my app crashes as soon as the tableView starts to load the data. Does anyone know how to prevent a table from executing before data has been fully loaded? I have tableView.reloadData() occurring in the ViewDidLoad section.
0
0
704
Apr ’22
DYLD_PRINT_STATISTICS not working / Xcode 13.0 beta / iOS 15.0 beta 8
Hello! I'm working on a new app, and DYLD_PRINT_STATISTICS=1 is not working - i.e., not producing any output. Build platform: MacBook Pro (15-inch, 2018) macOS Monterey, 12.0 beta 6 (21A5506j) Xcode 13.0 beta 5 (13A5212g) Test device: iPad 8th generation iPadOS 15.0 beta 8 (19A5340a) I'm setting it as usual in Product -> Scheme -> Edit Scheme, then going to "Run" tab on the left and choosing "Arguments" on the top. In that screen I enter "DYLD_PRINT_STATISTICS" for Name and "YES" for Value. Nothing prints. I also tried: Using "1" for Value instead of "YES" Entering "DYLD_PRINT_STATISTICS=YES" as Name and leaving Value blank Entering "DYLD_PRINT_STATISTICS=1" as Name and leaving Value blank Every combination of the above, but as command-line arguments instead of environment variables. Also, I tried "DYLD_PRINT_APIS" as Name and "YES" as Value, and that works normally. What's going on here? Is it something with the all-SwiftUI lifecycle? An issue with the beta macOS/Xcode/iPadOS? Thanks!
4
1
7k
Mar ’22
Xcode
at time of update of Xcode,in middle some reason it failed but when I see it after that once again update it but this time it install the Xcode(there is two applications of Xcode in my device. after seeing it I will delete Xcode but some still remain in my device that create a problem when I am download Xcode once again at time of certain gb it failed but it doesn't download.please help me.......
1
0
598
Mar ’22
Crash: IndexPath.section.getter + 168
Hello everyone! My app is getting a crash in the tableView(_:trailingSwipeActionsConfigurationForRowAt:) function. Apparently, the app is crashing when trying to get the indexPath.section value. I am attaching the crash log. This is not reproducible for me. I have the hunch that this might be related to some accessibility feature, but I have not been able to corroborate it yet. I am not sure how to solve this issue or how to move forward since I still don't know what is causing the app. Any advice or guidance is really appreciated. Thank you! Crashed: com.apple.main-thread EXC_BREAKPOINT 0x00000001bd99e0c8 Crashed: com.apple.main-thread 0&#9;libswiftUIKit.dylib&#9;&#9;&#9;&#9;&#9;&#9;0x1bd99e0c8 IndexPath.section.getter + 168 1&#9;MyApp&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1033697a4 TableDelegate.tableView(_:trailingSwipeActionsConfigurationForRowAt:) + 337 (TableDelegate.swift:337) 2&#9;MyApp&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x103369e58 @objc TableDelegate.tableView(_:trailingSwipeActionsConfigurationForRowAt:) + 4316896856 (<compiler-generated>:4316896856) 3&#9;UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad80b9cc -[UITableView _trailingSwipeConfigurationAtIndexPath:fromRemoveButton:] + 1892 4&#9;UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f0935c34 -[UITableViewCellAccessibility _privateAccessibilityCustomActions] + 540 5&#9;UIAccessibility&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1bd9d8854 -[NSObject(AXPrivCategory) _retrieveCustomActionsForElement:] + 68 6&#9;UIAccessibility&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1bd9d8b0c -[NSObject(AXPrivCategory) _accessibilityCustomActions] + 220 7&#9;UIAccessibility&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1bd9f990c -[NSObjectAccessibility accessibilityRespondsToUserInteraction] + 424 8&#9;UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f0952f6c -[UIViewAccessibility accessibilityRespondsToUserInteraction] + 124 9&#9;UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f08f3440 -[UILabelAccessibility accessibilityRespondsToUserInteraction] + 120 10 UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f0959678 -[UIViewAccessibility _isEligibleForFocusInteraction] + 124 11 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad07f4e4 _UIFocusEnvironmentIsEligibleForFocusInteraction + 64 12 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0acb44 __UIFocusMapRecurseSearchForFocusSystemInEligibleContainer + 148 13 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c30f8 -[_UIFocusMapSnapshot addRegionsInContainer:] + 64 14 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c32fc -[_UIFocusMapSnapshot addRegionsInContainers:] + 196 15 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1adad78cc -[UIView _searchForFocusRegionsInContext:] + 924 16 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c3178 -[_UIFocusMapSnapshot addRegionsInContainer:] + 192 17 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c32fc -[_UIFocusMapSnapshot addRegionsInContainers:] + 196 50 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ada9595c -[_UIAfterCACommitBlock run] + 64 51 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5ff79c _runAfterCACommitDeferredBlocks + 296 52 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5eeb4c _cleanUpAfterCAFlushAndRunDeferredBlocks + 200 53 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad620260 _afterCACommitHandler + 76 54 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2fecc CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 32 55 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2a5b0 __CFRunLoopDoObservers + 604 56 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2aaf8 __CFRunLoopRun + 960 57 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2a200 CFRunLoopRunSpecific + 572 58 GraphicsServices&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1c0e25598 GSEventRunModal + 160 59 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5f0004 -[UIApplication _run] + 1052 60 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5f55d8 UIApplicationMain + 164 61 MyApp&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x102d7d654 main + 16 (AppDelegate.swift:16) 62 libdyld.dylib&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1aaa09598 start + 4 Full crash log - https://developer.apple.com/forums/content/attachment/4049d9cc-89db-4d2c-a4d9-d71127396799
10
1
4.4k
Mar ’22
Xcode 13.3 wrongly claiming UI changes on background thread
My App had no such warnings before updating to 13.3, but now it claims I'm updating from a background thread. A simple print will make these warnings stop, so something is wrong:  @MainActor private func runOnMain(_ action: @escaping () async -> ()) async {         //print("", terminator: "")         await action()     } simply uncommenting that print() makes all the warnings go away, so I think 13.3 has an issue here... Is anyone else seeing this?
1
0
776
Mar ’22
random framework crash during ARWorldTrackingSession after relocalization
I receive random crashes during an ARWorldTrackingConfiguration Session with this message: Assert: in line 508 dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/usr/lib/libMTLCapture.dylib (lldb)  What shall I do? There is no reliable way to reproduce this error. It is thrown randomly - sometimes a few seconds after the completion of the relocalization process, but sometimes not at all.
0
0
774
Mar ’22
Cannot find executable for CFBundle 0x7fc2158058d0 </Frameworks/Unity> (not loaded) when running on IOS
I build my app using Unity3D with zlib.net, NativeGallery and libEasyWebcam IOS plug-ins then running on Xcode which has error log like: "Cannot find executable for CFBundle 0x7fc2158058d0 </Users/myName/Library/Developer/CoreSimulator/Devices/A8403824-30BE-41EE-AC63-844D3EC55724/data/Containers/Bundle/Application/D495B7E4-BB31-4AC9-BD08-0D90E2C2D8A3/myApp.app/Frameworks/UnityFramework.framework> (not loaded)". Do you know how to fix it? Thank!
0
0
1.3k
Mar ’22
How to recover a crash?
I wrote short code for the App using camera and that crushed when I tried to display preview. There is no error code, so where should I fix?     @State var image: Image?     @State var isPicking = false     var body: some View {         ZStack {             VStack {                 VStack {                         Spacer()                         image?                             .resizable()                             .scaledToFit()                         Spacer()                     }                 HStack {                     Spacer()                     Button(action: {                         self.isPicking = true                     }) {                         Image(systemName: "camera")                         Text("カメラ")                     }.padding()                 }             }             if isPicking {                 ImagePicker()                     .edgesIgnoringSafeArea(.all)                     .transition(.move(edge: .bottom))                     .animation(.easeInOut, value: isPicking)             }         }     } } struct ContentView_Previews: PreviewProvider {     static var previews: some View {         ContentView()     } } ImagePicker↓ struct ImagePicker: UIViewControllerRepresentable{         func makeCoordinator() -&gt; Coordinator {       Coordinator(self)     }          func makeUIViewController(context: Context) -&gt;     UIImagePickerController{         let picker = UIImagePickerController()         picker.sourceType = .camera         picker.delegate = context.coordinator         return picker     }          func updateUIViewController(_ uiViewController: UIImagePickerController, context: Context) {     } } struct ImagePicker_Previews: PreviewProvider {     static var previews: some View {         ImagePicker()     } } Coordinator↓ class Coordinator: NSObject, UINavigationControllerDelegate, UIImagePickerControllerDelegate{     var parent: ImagePicker     init(_ parent: ImagePicker){         self.parent = parent     }  func imagePickerController(_ picker: UIImagePickerController,                            didFinishPickingMediaWithInfo info:                                        [UIImagePickerController.InfoKey: Any]){     let uiImage = info[.originalImage] as! UIImage     UIImageWriteToSavedPhotosAlbum(uiImage, nil, nil, nil) } func imagePickerControllerDidCancel(_ picker: UIImagePickerController){ } }
0
0
1.5k
Feb ’22
My application crashes when building to a physical device but is fine in a simulator.
I have uploaded an app twice now to have it rejected due to it crashing upon loading. I have tested and tried this on simulators it works fine, I also have this already working for the android store. Been trying to work this out for a while now but not sure how to fix this moving forwards. The crash log is as follows: Crash File. Any help would be amazing. Many Thanks,
2
0
997
Feb ’22
Casting error migrating old codebase to xCode 13
Hi everyone, Let me prefix this question by saying that I am not an iOS developer... so be gentle :-) A friend has an older codebase (written in xCode 11) that was abandoned by the developers that were working on it. He needed someone to fix Firebase logging (which I did) and everything was fine until recently. Now upon moving to any xCode > 12 there is a runtime error deep in the library code used throughout the app. The error (slightly generalized) is as follows: Could not cast value of type '() -> MyApp.TabBarFC' (0x111eda8a0) to '() -> LibraryKit.LibraryFC' (0x111eda8c0). the respective classes are declared as follows... in app code: class TabBarFC: LibraryTabBarFC { in library code: open class LibraryTabBarFC: LibraryFC { The line it specifically crashes on is in a flow controller (FC) repository in the library code where you can see an attempt to cast the app parameter to the class LibraryFC: var factories: [LibraryKit.Id.FC : () -> (LibraryFC)] = [:] open func register<FC: LibraryFC>(factory: @escaping () -> (FC), id: LibraryKit.Id.FC) { factories[id] = factory as! () -> (LibraryFC) } This code worked in xCode 11. It does not work now. If anyone could tell me if there is an obvious fix (it could be trivial), it would certainly be faster than giving the entire codebase to someone else or me reading documentation for a few nights. Thanks!
1
0
602
Feb ’22
thread_policy_set(1) returned 46
Hi there, Recently we have been seeing thread_policy_set(1) returned 46 flooding our log output. We tracked down that the flood of this is coming from a separate library whom we've contacted. They mentioned that this is a Apple internal message that comes up in the library's deadlock detector. The proposed solution was to use OS_ACTIVITY_MODE env var to hide the logs as suggested from the post on StackOverflow.. I tried all suggestions from that StackOverflow post, which were able to hide other system logs generated from Apple but it specifically did not hide the thread_policy_set(1) returned 46 What I am hoping to understand is: Why does this message come up? I see that the documentation for this on Apple's docs is very limited. Is this message's visibility controllable via a separate variable in project settings outside of modifying settings for all logs? As a last resort, how can I disable only this log message? Thank you!
Replies
19
Boosts
0
Views
4.5k
Activity
May ’22
Guard malloc and other memory tool managements on physical devices
Hi there, It seems from the documentation That Guard malloc is only working on simulators. Is this still relevant? Same question for other tools like: Zombies Address Sanitizer Many thanks
Replies
0
Boosts
0
Views
718
Activity
May ’22
Xcode project Unknown errors
I get these errors and warning I was wondering is someone could help there things I haven't seen elsewhere but am hoping someone out there could help this is one of the errors [Command CodeSign failed with a nonzero exit code] then this one are the ones that give me problems [Multiple commands produce '/Users/mdstudent/Library/Developer/Xcode/DerivedData/BlackJack4.0-cdjkpageluthngelnlhgxyadcbbf/Build/Products/Release-iphonesimulator/BlackJack4.0.app/Info.plist': Target 'BlackJack4.0' (project 'BlackJack4.0') has copy command from '/Users/mdstudent/Desktop/BlackJack4.0/BlackJack/Info.plist' to '/Users/mdstudent/Library/Developer/Xcode/DerivedData/BlackJack4.0-cdjkpageluthngelnlhgxyadcbbf/Build/Products/Release-iphonesimulator/BlackJack4.0.app/Info.plist' Target 'BlackJack4.0' (project 'BlackJack4.0') has process command with output '/Users/mdstudent/Library/Developer/Xcode/DerivedData/BlackJack4.0-cdjkpageluthngelnlhgxyadcbbf/Build/Products/Release-iphonesimulator/BlackJack4.0.app/Info.plist'] thanks to anyone who sees and helps
Replies
1
Boosts
0
Views
1.7k
Activity
Apr ’22
Sandbox account in iOS 15.4
Why am I not able to find Sandbox login option under App Store for iOS 15.4. The option was present for iOS 14.
Replies
1
Boosts
0
Views
1.7k
Activity
Apr ’22
Obscure crash observed. Any insights?
Thread 0 name: Dispatch queue: com.apple.main-thread Thread 0 Crashed: 0 CoreFoundation 0x000000019d415ec8 0x19d371000 + 675528 1 CoreVideo 0x00000001a5a3d38c 0x1a5a2f000 + 58252 2 CoreVideo 0x00000001a5a3e498 0x1a5a2f000 + 62616 3 MirAIe 0x0000000103d7620c 0x102968000 + 21029388 4 MirAIe 0x0000000103beb76c 0x102968000 + 19412844 5 libdispatch.dylib 0x000000019d085a84 0x19d083000 + 10884 6 libdispatch.dylib 0x000000019d08781c 0x19d083000 + 18460 7 libdispatch.dylib 0x000000019d095c70 0x19d083000 + 76912 8 CoreFoundation 0x000000019d414340 0x19d371000 + 668480 9 CoreFoundation 0x000000019d40e218 0x19d371000 + 643608 10 CoreFoundation 0x000000019d40d308 0x19d371000 + 639752 11 GraphicsServices 0x00000001b4a90734 0x1b4a8d000 + 14132 12 UIKitCore 0x000000019fe8b75c 0x19f2c1000 + 12363612 13 UIKitCore 0x000000019fe90fcc 0x19f2c1000 + 12386252 14 MirAIe 0x00000001029818a4 0x102968000 + 104612 15 libdyld.dylib 0x000000019d0c9cf8 0x19d0c8000 + 7416 Thread 0 crashed with ARM Thread State (64-bit): x0: 0x0000000281da30c0 x1: 0x0000000000000000 x2: 0x0000000281da30c0 x3: 0x00000001acafa188 x4: 0x00000000000062dc x5: 0x00000000fffffffe x6: 0x000000016d495f34 x7: 0x000000016d495f28 x8: 0x0000000000000000 x9: 0x0000000100000053 x10: 0x00006e0105ac30c0 x11: 0x007ffffffffffff8 x12: 0x0000000000000055 x13: 0x0000000106992330 x14: 0x00000000f781f800 x15: 0x0000000104bb5a00 x16: 0x00006e0105ac30c0 x17: 0x0000000105ac30c0 x18: 0x0000000110530abb x19: 0x0000000281da30c0 x20: 0x0000000000000000 x21: 0x0000000283614040 x22: 0x00000002839b9080 x23: 0x0000000000000114 x24: 0x0000000000000000 x25: 0x000000010572f9a0 x26: 0x000000000000000f x27: 0x0000000000000000 x28: 0x0000000002ffffff fp: 0x000000016d496970 lr: 0xbf283781a5a3d38c sp: 0x000000016d496970 pc: 0x000000019d415ec8 cpsr: 0x20000000 esr: 0xf200c472 Address size fault
Replies
0
Boosts
0
Views
908
Activity
Apr ’22
Getting Error while Product> Archive upload to app store connect
Hi, I am getting below error when trying to upload archive from xcode : - Missing 64-bit support. iOS apps submitted to the App Store must include 64-bit support and be built with the iOS 8 SDK or later. We recommend using the default "Standard Architectures" build setting for "Architectures" in Xcode, to build a single binary with both 32-bit and 64-bit support. With error code STATE_ERROR.VALIDATION_ERROR.90086 for id 75ffbe1b-dbc7-4213-82a8-a520b19cf690 I have already set arm64 under Build settings for my project and even my ios SDK version is 11.0 My Xcode version is 13. Stuck in this issue since past one week. Any help will be highly appreciated
Replies
1
Boosts
0
Views
858
Activity
Apr ’22
XCode 13.3 - iPhone 11 - iOS 15.4 - Image Assets - Background Image not loading
I am having an image assets used for loading the background image in my iOS application. The image assets contains background images that provides support for 2x, 3x, 2x Retina 4, 2x Retina HD 4.7", 3x iPhone X/iPhone Xs, 3x iPhone Xs Max and 2x iPhone XR. When i run my iOS application using XCode 13.3 on iPhone 11, iPhone 11 Pro and iPhone 11 Pro Max then the background image is not loading instead a white colour background is getting displayed. When i try to run the iOS application using XCode 13.3 on iPhone 12 or any other Simulator devices (other than iPhone 11 family) then the background image is getting loaded perfectly. Can you please suggest on how to fix the background image loading issue getting occurred only in iPhone 11 having iOS 15.4 version?
Replies
0
Boosts
0
Views
579
Activity
Apr ’22
Xcode TableView Warning causing TestFlight Release to crash
I received the following warning: [TableView] Warning once only: UITableView was told to layout its visible cells and other contents without being in the view hierarchy (the table view or one of its superviews has not been added to a window). This may cause bugs by forcing views inside the table view to load and perform layout without accurate information (e.g. table view bounds, trait collection, layout margins, safe area insets, etc), and will also cause unnecessary performance overhead due to extra layout passes. Make a symbolic breakpoint at UITableViewAlertForLayoutOutsideViewHierarchy to catch this in the debugger and see what caused this to occur, so you can avoid this action altogether if possible, or defer it until the table view has been added to a window. I am getting the warning during debugging and my table fully loads with data at that point, but when I change the scheme to release to put into TestFlight, my app crashes as soon as the tableView starts to load the data. Does anyone know how to prevent a table from executing before data has been fully loaded? I have tableView.reloadData() occurring in the ViewDidLoad section.
Replies
0
Boosts
0
Views
704
Activity
Apr ’22
DYLD_PRINT_STATISTICS not working / Xcode 13.0 beta / iOS 15.0 beta 8
Hello! I'm working on a new app, and DYLD_PRINT_STATISTICS=1 is not working - i.e., not producing any output. Build platform: MacBook Pro (15-inch, 2018) macOS Monterey, 12.0 beta 6 (21A5506j) Xcode 13.0 beta 5 (13A5212g) Test device: iPad 8th generation iPadOS 15.0 beta 8 (19A5340a) I'm setting it as usual in Product -> Scheme -> Edit Scheme, then going to "Run" tab on the left and choosing "Arguments" on the top. In that screen I enter "DYLD_PRINT_STATISTICS" for Name and "YES" for Value. Nothing prints. I also tried: Using "1" for Value instead of "YES" Entering "DYLD_PRINT_STATISTICS=YES" as Name and leaving Value blank Entering "DYLD_PRINT_STATISTICS=1" as Name and leaving Value blank Every combination of the above, but as command-line arguments instead of environment variables. Also, I tried "DYLD_PRINT_APIS" as Name and "YES" as Value, and that works normally. What's going on here? Is it something with the all-SwiftUI lifecycle? An issue with the beta macOS/Xcode/iPadOS? Thanks!
Replies
4
Boosts
1
Views
7k
Activity
Mar ’22
I keep getting this error in XCode and I can't fix it.
error code 3 Unexpected error type XPC error received on message reply handler
Replies
1
Boosts
0
Views
963
Activity
Mar ’22
Xcode
at time of update of Xcode,in middle some reason it failed but when I see it after that once again update it but this time it install the Xcode(there is two applications of Xcode in my device. after seeing it I will delete Xcode but some still remain in my device that create a problem when I am download Xcode once again at time of certain gb it failed but it doesn't download.please help me.......
Replies
1
Boosts
0
Views
598
Activity
Mar ’22
Thread Sanitizer with Audio Unit extension?
Is it possible to get Thread Sanitizer to work when debugging an audio unit extension? For me XCode just waits forever after the host app is launched and before the AU debugging session starts. (Host and AU are part of the same project)
Replies
0
Boosts
0
Views
1.4k
Activity
Mar ’22
Crash: IndexPath.section.getter + 168
Hello everyone! My app is getting a crash in the tableView(_:trailingSwipeActionsConfigurationForRowAt:) function. Apparently, the app is crashing when trying to get the indexPath.section value. I am attaching the crash log. This is not reproducible for me. I have the hunch that this might be related to some accessibility feature, but I have not been able to corroborate it yet. I am not sure how to solve this issue or how to move forward since I still don't know what is causing the app. Any advice or guidance is really appreciated. Thank you! Crashed: com.apple.main-thread EXC_BREAKPOINT 0x00000001bd99e0c8 Crashed: com.apple.main-thread 0&#9;libswiftUIKit.dylib&#9;&#9;&#9;&#9;&#9;&#9;0x1bd99e0c8 IndexPath.section.getter + 168 1&#9;MyApp&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1033697a4 TableDelegate.tableView(_:trailingSwipeActionsConfigurationForRowAt:) + 337 (TableDelegate.swift:337) 2&#9;MyApp&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x103369e58 @objc TableDelegate.tableView(_:trailingSwipeActionsConfigurationForRowAt:) + 4316896856 (<compiler-generated>:4316896856) 3&#9;UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad80b9cc -[UITableView _trailingSwipeConfigurationAtIndexPath:fromRemoveButton:] + 1892 4&#9;UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f0935c34 -[UITableViewCellAccessibility _privateAccessibilityCustomActions] + 540 5&#9;UIAccessibility&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1bd9d8854 -[NSObject(AXPrivCategory) _retrieveCustomActionsForElement:] + 68 6&#9;UIAccessibility&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1bd9d8b0c -[NSObject(AXPrivCategory) _accessibilityCustomActions] + 220 7&#9;UIAccessibility&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1bd9f990c -[NSObjectAccessibility accessibilityRespondsToUserInteraction] + 424 8&#9;UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f0952f6c -[UIViewAccessibility accessibilityRespondsToUserInteraction] + 124 9&#9;UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f08f3440 -[UILabelAccessibility accessibilityRespondsToUserInteraction] + 120 10 UIKit&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1f0959678 -[UIViewAccessibility _isEligibleForFocusInteraction] + 124 11 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad07f4e4 _UIFocusEnvironmentIsEligibleForFocusInteraction + 64 12 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0acb44 __UIFocusMapRecurseSearchForFocusSystemInEligibleContainer + 148 13 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c30f8 -[_UIFocusMapSnapshot addRegionsInContainer:] + 64 14 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c32fc -[_UIFocusMapSnapshot addRegionsInContainers:] + 196 15 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1adad78cc -[UIView _searchForFocusRegionsInContext:] + 924 16 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c3178 -[_UIFocusMapSnapshot addRegionsInContainer:] + 192 17 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad0c32fc -[_UIFocusMapSnapshot addRegionsInContainers:] + 196 50 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ada9595c -[_UIAfterCACommitBlock run] + 64 51 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5ff79c _runAfterCACommitDeferredBlocks + 296 52 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5eeb4c _cleanUpAfterCAFlushAndRunDeferredBlocks + 200 53 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad620260 _afterCACommitHandler + 76 54 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2fecc CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 32 55 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2a5b0 __CFRunLoopDoObservers + 604 56 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2aaf8 __CFRunLoopRun + 960 57 CoreFoundation&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1aad2a200 CFRunLoopRunSpecific + 572 58 GraphicsServices&#9;&#9;&#9;&#9;&#9;&#9;&#9; 0x1c0e25598 GSEventRunModal + 160 59 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5f0004 -[UIApplication _run] + 1052 60 UIKitCore&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1ad5f55d8 UIApplicationMain + 164 61 MyApp&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x102d7d654 main + 16 (AppDelegate.swift:16) 62 libdyld.dylib&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;&#9;0x1aaa09598 start + 4 Full crash log - https://developer.apple.com/forums/content/attachment/4049d9cc-89db-4d2c-a4d9-d71127396799
Replies
10
Boosts
1
Views
4.4k
Activity
Mar ’22
Xcode 13.3 wrongly claiming UI changes on background thread
My App had no such warnings before updating to 13.3, but now it claims I'm updating from a background thread. A simple print will make these warnings stop, so something is wrong:  @MainActor private func runOnMain(_ action: @escaping () async -> ()) async {         //print("", terminator: "")         await action()     } simply uncommenting that print() makes all the warnings go away, so I think 13.3 has an issue here... Is anyone else seeing this?
Replies
1
Boosts
0
Views
776
Activity
Mar ’22
random framework crash during ARWorldTrackingSession after relocalization
I receive random crashes during an ARWorldTrackingConfiguration Session with this message: Assert: in line 508 dyld4 config: DYLD_LIBRARY_PATH=/usr/lib/system/introspection DYLD_INSERT_LIBRARIES=/Developer/usr/lib/libBacktraceRecording.dylib:/Developer/usr/lib/libMainThreadChecker.dylib:/Developer/Library/PrivateFrameworks/DTDDISupport.framework/libViewDebuggerSupport.dylib:/usr/lib/libMTLCapture.dylib (lldb)  What shall I do? There is no reliable way to reproduce this error. It is thrown randomly - sometimes a few seconds after the completion of the relocalization process, but sometimes not at all.
Replies
0
Boosts
0
Views
774
Activity
Mar ’22
Cannot find executable for CFBundle 0x7fc2158058d0 </Frameworks/Unity> (not loaded) when running on IOS
I build my app using Unity3D with zlib.net, NativeGallery and libEasyWebcam IOS plug-ins then running on Xcode which has error log like: "Cannot find executable for CFBundle 0x7fc2158058d0 </Users/myName/Library/Developer/CoreSimulator/Devices/A8403824-30BE-41EE-AC63-844D3EC55724/data/Containers/Bundle/Application/D495B7E4-BB31-4AC9-BD08-0D90E2C2D8A3/myApp.app/Frameworks/UnityFramework.framework> (not loaded)". Do you know how to fix it? Thank!
Replies
0
Boosts
0
Views
1.3k
Activity
Mar ’22
How to recover a crash?
I wrote short code for the App using camera and that crushed when I tried to display preview. There is no error code, so where should I fix?     @State var image: Image?     @State var isPicking = false     var body: some View {         ZStack {             VStack {                 VStack {                         Spacer()                         image?                             .resizable()                             .scaledToFit()                         Spacer()                     }                 HStack {                     Spacer()                     Button(action: {                         self.isPicking = true                     }) {                         Image(systemName: "camera")                         Text("カメラ")                     }.padding()                 }             }             if isPicking {                 ImagePicker()                     .edgesIgnoringSafeArea(.all)                     .transition(.move(edge: .bottom))                     .animation(.easeInOut, value: isPicking)             }         }     } } struct ContentView_Previews: PreviewProvider {     static var previews: some View {         ContentView()     } } ImagePicker↓ struct ImagePicker: UIViewControllerRepresentable{         func makeCoordinator() -&gt; Coordinator {       Coordinator(self)     }          func makeUIViewController(context: Context) -&gt;     UIImagePickerController{         let picker = UIImagePickerController()         picker.sourceType = .camera         picker.delegate = context.coordinator         return picker     }          func updateUIViewController(_ uiViewController: UIImagePickerController, context: Context) {     } } struct ImagePicker_Previews: PreviewProvider {     static var previews: some View {         ImagePicker()     } } Coordinator↓ class Coordinator: NSObject, UINavigationControllerDelegate, UIImagePickerControllerDelegate{     var parent: ImagePicker     init(_ parent: ImagePicker){         self.parent = parent     }  func imagePickerController(_ picker: UIImagePickerController,                            didFinishPickingMediaWithInfo info:                                        [UIImagePickerController.InfoKey: Any]){     let uiImage = info[.originalImage] as! UIImage     UIImageWriteToSavedPhotosAlbum(uiImage, nil, nil, nil) } func imagePickerControllerDidCancel(_ picker: UIImagePickerController){ } }
Replies
0
Boosts
0
Views
1.5k
Activity
Feb ’22
My application crashes when building to a physical device but is fine in a simulator.
I have uploaded an app twice now to have it rejected due to it crashing upon loading. I have tested and tried this on simulators it works fine, I also have this already working for the android store. Been trying to work this out for a while now but not sure how to fix this moving forwards. The crash log is as follows: Crash File. Any help would be amazing. Many Thanks,
Replies
2
Boosts
0
Views
997
Activity
Feb ’22
Casting error migrating old codebase to xCode 13
Hi everyone, Let me prefix this question by saying that I am not an iOS developer... so be gentle :-) A friend has an older codebase (written in xCode 11) that was abandoned by the developers that were working on it. He needed someone to fix Firebase logging (which I did) and everything was fine until recently. Now upon moving to any xCode > 12 there is a runtime error deep in the library code used throughout the app. The error (slightly generalized) is as follows: Could not cast value of type '() -> MyApp.TabBarFC' (0x111eda8a0) to '() -> LibraryKit.LibraryFC' (0x111eda8c0). the respective classes are declared as follows... in app code: class TabBarFC: LibraryTabBarFC { in library code: open class LibraryTabBarFC: LibraryFC { The line it specifically crashes on is in a flow controller (FC) repository in the library code where you can see an attempt to cast the app parameter to the class LibraryFC: var factories: [LibraryKit.Id.FC : () -> (LibraryFC)] = [:] open func register<FC: LibraryFC>(factory: @escaping () -> (FC), id: LibraryKit.Id.FC) { factories[id] = factory as! () -> (LibraryFC) } This code worked in xCode 11. It does not work now. If anyone could tell me if there is an obvious fix (it could be trivial), it would certainly be faster than giving the entire codebase to someone else or me reading documentation for a few nights. Thanks!
Replies
1
Boosts
0
Views
602
Activity
Feb ’22
Failed to install the requested application
After upload and download my project into a new version of Xcode, I got this message "Failed to install the requested application" Does anyone knows how to fix this issue?
Replies
0
Boosts
0
Views
529
Activity
Feb ’22