Post

Replies

Boosts

Views

Activity

Most useless Xcode error message ever
Neither a google search, nor a search of the Apple forums give me a clue as to how to locate or fix the following message I get from Xcode. CLIENT: Failure to determine if this machine is in the process of shutting down, err=1/Operation not permitted This error message came from attempting to build and execute an iOS App which ran just fine the last time I built it. Now, that was actually a little over two years ago. This is an iOS app, which I've run successfully for more than a year on macOS, and that, "My Mac (Designed for iPad)", is what my build target for this run was. Any ideas? Anyone? If this is a "known condition", just why doesn't a friendly internet search or a search of the Apple forums NOT tell me what it means, or what causes the message. Of course, I've upgraded the OS a few times, and updated Xcode as well, but have just not had any time to monkey around with my pet code project. Now that I've gotten some time, and I want to see what's new since March of '23, I finally remember where I stashed my code repository and decided to take it for a spin. Sure, I expect(ed) to see Xcode tell me that the version of Swift has been updated, and maybe some code constructs need to be fixed. But, NO, the code compiles fine. The first build attempt told me that I needed to update my provisioning profiles, and sign-in and agree to the updated developer agreements, which I did. Not so unhelpful was the code window in the debugger: libswiftCore.dylib`swift_willThrow: -> 0x1aeb7b2a0 <+0>: pacibsp 0x1aeb7b2a4 <+4>: str x19, [sp, #-0x20]! 0x1aeb7b2a8 <+8>: stp x29, x30, [sp, #0x10] 0x1aeb7b2ac <+12>: add x29, sp, #0x10 0x1aeb7b2b0 <+16>: adrp x8, 365651 0x1aeb7b2b4 <+20>: add x8, x8, #0x88 ; _swift_willThrow 0x1aeb7b2b8 <+24>: ldapr x8, [x8] 0x1aeb7b2bc <+28>: cbnz x8, 0x1aeb7b2cc ; <+44> 0x1aeb7b2c0 <+32>: ldp x29, x30, [sp, #0x10] 0x1aeb7b2c4 <+36>: ldr x19, [sp], #0x20 0x1aeb7b2c8 <+40>: retab 0x1aeb7b2cc <+44>: mov x0, x21 0x1aeb7b2d0 <+48>: mov x19, x21 0x1aeb7b2d4 <+52>: blraaz x8 0x1aeb7b2d8 <+56>: mov x21, x19 0x1aeb7b2dc <+60>: b 0x1aeb7b2c0 ; <+32> Still not much to go on. I decide to see if it was a macOS vs. iOS issue, so did a clean build folder and tried running on an iPad simulator, "iPad (10th generation)". Now, I have a blank white screen on my simulator and not much to go on in the code window. import SwiftUI @main struct JottoApp: App { Thread1: Breakpoint 1.1 var body: some Scene { WindowGroup { ContentView() } } init() { UITableView.appearance().backgroundColor = UIColor.clear } } Any and all help with this error message will be appreciated.
0
0
91
Apr ’25
How to Dynamically resize/relocate frame for UICollectionView?
Background:My UICollectionView is defined in my MainStoryboard, with layout constraints to center it horizontally in the view.In my initial view controller I give the user a choice of items to view in the next view (the UICollectionView).Based on the content, I want to set the frame of the UICollectionView so that it changes width and height to accomodate the content chosen by the user.For example, one view might require an 800x800 frame positioned at 560,160, and another may require a 1600x800 collectionView positioned at 160,160.If I query the collectionview frame, I get the initial values based on the storyboard:CGRect frame = self.myCollectionView.frame; frame:: 560.0, 160.0, 800.0, 800.0If I try setting the frame:CGRect frame = CGRectMake( 160.0, 160.0, 1600.0, 800.0 ); self.myCollectionView.frame = frame;The frame changes, but there is NO VISIBLE CHANGE to the collectionView on the screen.I am able to modify the contentSize, and the itemSize within the flow to accomodate my different content cells, but there is no change on screen for the UIcollectionView itself.I have tried things such as:[self.myCollectionView setNeedsDisplay]; or [self.myCollectionView setNeedsLayout]; or [self.myCollectionView reloadData];If I query the frame after making the changes, the changes show correctly in the frame values, but no change appear on screen.What am I missing?How do I programmatically change the size and position on the screen?Is there something I'm missing about how to manipulate the UICollectionView.This is for a tvOS project I am working on. (Just in case, it works fine on iOS but not on tvOS)If I cannot find a solution, I will likely have to re-code the entire view without using the storyboard.At least there, I can use initWithFrame and create it at runtime. I just prefer to use storyboards if at all possible.I am able to move and resize other views just fine. What's going on with UICollectionView?
2
0
4.3k
Apr ’21