Post

Replies

Boosts

Views

Activity

Reply to Equal width buttons in VStack
It seems that I'm missing something cause it doesn't work for me. Whenever I use this code: VStack { Button(action: {}) { Text("Short") .frame(maxWidth: .infinity) } Button(action: {}) { Text("Long title") .frame(maxWidth: .infinity) } } I get this: Then I added the "buttonStyle" over the whole button thinking that it'll extend the style to the whole button, but I only get a blue tint over the default length buttons, like this: VStack { Button(action: {}) { Text("Short") .frame(maxWidth: .infinity) } .buttonStyle(.borderedProminent) Button(action: {}) { Text("Long title") .frame(maxWidth: .infinity) } .buttonStyle(.borderedProminent) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’24
Reply to LLDB error: type for self cannot be reconstructed: type for typename
Sorry, this Xcode16 just sucks. I've lost another half a days fiddling around with no luck, I just don't know what to do, and where. The project is big and in order to recreate the functionality, and the lldb bug, I have to build a whole new project, which will end up resembling the original one, minus some functionalities, so I dropped this route. The issue appears in one of the projects's internal static library. Now, I pause the execution at some breakpoint, run the "po" command and promptly get the "Couldn't realize Swift AST type of self". Then I run "swift-healthcheck", check the health log file, find the error below and conclude that the issue is in the static lib "XXX". SwiftASTContextForExpressions(module: "XXX", cu: "AllParts.swift")::LoadOneModule() -- Missing Swift module or Clang module found for "XXX", "imported" via SwiftDWARFImporterDelegate. Hint: Register Swift modules with the linker using -add_ast_path. Then I added "-add_ast_path" on the "Other Linker Flags" of the final executable, and now I get an error in Xcode saying "Unknown argument -add_ast_path". The static lib build settings have no "Other Linker Flags", and I don't know where else I should add this flag?! I mention that the I get a message in the console warning about empty dSYM file, but the executable is built with "DWARF with dSYM File", I triple checked it. warning: (arm64) /Users/SomeUser/Library/Developer/Xcode/DerivedData/SW-ajoovsaqjdvysgbbrebnfmoxycwm/Build/Products/Debug-maccatalyst/SW.app/Contents/MacOS/SW empty dSYM file detected, dSYM was created with an executable with no debug info. I'm not sure what you are asking here "Does that file reference UIKit types but is missing an import declaration?". Yes, it uses UIKit types but there is an "import UIKit" directive at the begining of the file where the breakpoint is.
Jan ’25
Reply to LLDB error: type for self cannot be reconstructed: type for typename
There are 3 projects in a workspace. The main project and two separate projects for two static libraries. Both static libs depend on a framework, a regular framework not a XCFramework. Everything is built from scratch, I own all the source code. The code for the framework is in a swift module. I set "DWARF with dSYM" on all the three projects, it was DWARF only for the libs, but no luck. I can debug the source code from the main project, it works just fine. However, the two static libraries contain the majority of the functionality and I can't debug it. I was adding logs here and there but it takes a lot of time.
Jan ’25
Reply to Set date and time in iOS Simulator
Why does Apple keep removing settings like these? Is there any reason for this? In my case, I need to set the date as well as the time, because I create screenshots on different days, and they end up with different dates, which is not consistent. If I change the date on my Mac and create screenshots on different days, when I later retrieve them from Finder, they get mixed in with other files I created on those days. It's really annoying.
Jun ’25
Reply to Double border in UIBarButtonItem with Custom View on iOS 26, bug or feature?
How can I send you the test project? I cannot attach the zip here. In viewDidLoad I set the button, and it looks ok. Then, when the user initiates some action, I replace it with another button, and now it gets a double border. override func viewDidLoad() { super.viewDidLoad() self.navigationItem.leftBarButtonItem = Button1() } @objc func fullscreenAction() { // upon this assignment the leftBarButtonItem shows double border self.navigationItem.leftBarButtonItem = Button2() }
Topic: UI Frameworks SubTopic: UIKit Tags:
Jul ’25
Reply to Xcode 15, how to uncheck "Connect via network" for physical device?
Same here... I've turned off the Mac and iPhone's wifi/bluetooth, restarted the Mac and Xcode, nothing works. This Xcode 15 is the buggiest of them all.
Replies
Boosts
Views
Activity
Oct ’23
Reply to Xcode 15, how to uncheck "Connect via network" for physical device?
Hi @eskimo, do you have any update on this? It's impossible to debug using two devices and a single cable, when unplugging one and plugging the other one, debugging continues on the former device. Is such a scenario illegal, and does Apple want us to stop doing it?
Replies
Boosts
Views
Activity
Feb ’24
Reply to Equal width subviews in a stack
So fucking complicated to align and stretch two views, which would otherwise be easy to implement using UIStackView or AutoLayout.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to Equal width buttons in VStack
It seems that I'm missing something cause it doesn't work for me. Whenever I use this code: VStack { Button(action: {}) { Text("Short") .frame(maxWidth: .infinity) } Button(action: {}) { Text("Long title") .frame(maxWidth: .infinity) } } I get this: Then I added the "buttonStyle" over the whole button thinking that it'll extend the style to the whole button, but I only get a blue tint over the default length buttons, like this: VStack { Button(action: {}) { Text("Short") .frame(maxWidth: .infinity) } .buttonStyle(.borderedProminent) Button(action: {}) { Text("Long title") .frame(maxWidth: .infinity) } .buttonStyle(.borderedProminent) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’24
Reply to error: type for self cannot be reconstructed: type for typename
The same, even with the latest Xcode, 16.2.
Replies
Boosts
Views
Activity
Jan ’25
Reply to LLDB error: type for self cannot be reconstructed: type for typename
Sorry, this Xcode16 just sucks. I've lost another half a days fiddling around with no luck, I just don't know what to do, and where. The project is big and in order to recreate the functionality, and the lldb bug, I have to build a whole new project, which will end up resembling the original one, minus some functionalities, so I dropped this route. The issue appears in one of the projects's internal static library. Now, I pause the execution at some breakpoint, run the "po" command and promptly get the "Couldn't realize Swift AST type of self". Then I run "swift-healthcheck", check the health log file, find the error below and conclude that the issue is in the static lib "XXX". SwiftASTContextForExpressions(module: "XXX", cu: "AllParts.swift")::LoadOneModule() -- Missing Swift module or Clang module found for "XXX", "imported" via SwiftDWARFImporterDelegate. Hint: Register Swift modules with the linker using -add_ast_path. Then I added "-add_ast_path" on the "Other Linker Flags" of the final executable, and now I get an error in Xcode saying "Unknown argument -add_ast_path". The static lib build settings have no "Other Linker Flags", and I don't know where else I should add this flag?! I mention that the I get a message in the console warning about empty dSYM file, but the executable is built with "DWARF with dSYM File", I triple checked it. warning: (arm64) /Users/SomeUser/Library/Developer/Xcode/DerivedData/SW-ajoovsaqjdvysgbbrebnfmoxycwm/Build/Products/Debug-maccatalyst/SW.app/Contents/MacOS/SW empty dSYM file detected, dSYM was created with an executable with no debug info. I'm not sure what you are asking here "Does that file reference UIKit types but is missing an import declaration?". Yes, it uses UIKit types but there is an "import UIKit" directive at the begining of the file where the breakpoint is.
Replies
Boosts
Views
Activity
Jan ’25
Reply to LLDB error: type for self cannot be reconstructed: type for typename
There are 3 projects in a workspace. The main project and two separate projects for two static libraries. Both static libs depend on a framework, a regular framework not a XCFramework. Everything is built from scratch, I own all the source code. The code for the framework is in a swift module. I set "DWARF with dSYM" on all the three projects, it was DWARF only for the libs, but no luck. I can debug the source code from the main project, it works just fine. However, the two static libraries contain the majority of the functionality and I can't debug it. I was adding logs here and there but it takes a lot of time.
Replies
Boosts
Views
Activity
Jan ’25
Reply to FYI: Xcode and Disk Space
Also look under the "Other Installed Platforms" section in Xcode settings. It is those platforms that are taking up space in /Library/Developer/CoreSimulator. You can remove, from Xcode, the one that you don't need.
Replies
Boosts
Views
Activity
Feb ’25
Reply to LLDB error: type for self cannot be reconstructed: type for typename
Xcode 16.3 beta (16E5104o) exhibits the same issue.
Replies
Boosts
Views
Activity
Mar ’25
Reply to LLDB error: type for self cannot be reconstructed: type for typename
This bug is getting ridiculous, now the debugger complains that ""fromValue" is not a member of "(QuartzCore.CABasicAnimation) picAnim"".
Replies
Boosts
Views
Activity
May ’25
Reply to LLDB error: type for self cannot be reconstructed: type for typename
Still occurring in Xcode 16.4 beta (16F1t).
Replies
Boosts
Views
Activity
May ’25
Reply to Empty dSYM file detected & Error: type for self cannot be reconstructed: type for typename
Still broken in the latest beta 14.4.
Replies
Boosts
Views
Activity
May ’25
Reply to Is Apple reading reports in the new Feedback Assistant?
2025, same situation. I've completely stopped filing FB reports. They never respond, yet they keep asking us to file them in various threads on this forum.
Replies
Boosts
Views
Activity
May ’25
Reply to Set date and time in iOS Simulator
Why does Apple keep removing settings like these? Is there any reason for this? In my case, I need to set the date as well as the time, because I create screenshots on different days, and they end up with different dates, which is not consistent. If I change the date on my Mac and create screenshots on different days, when I later retrieve them from Finder, they get mixed in with other files I created on those days. It's really annoying.
Replies
Boosts
Views
Activity
Jun ’25
Reply to Double border in UIBarButtonItem with Custom View on iOS 26, bug or feature?
How can I send you the test project? I cannot attach the zip here. In viewDidLoad I set the button, and it looks ok. Then, when the user initiates some action, I replace it with another button, and now it gets a double border. override func viewDidLoad() { super.viewDidLoad() self.navigationItem.leftBarButtonItem = Button1() } @objc func fullscreenAction() { // upon this assignment the leftBarButtonItem shows double border self.navigationItem.leftBarButtonItem = Button2() }
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’25