Could someone help me with a good direction on where or how could I fix for this crash from console log:
Not able to open storyboard or XIB.
Once opening them, Xcode is crashing.
tried uninstalling the Xcode, couldn't fix even after deleting derived data and caches.
-------------------------------------
Translated Report (Full Report Below)
-------------------------------------
Incident Identifier: 7E6D64FF-D4E9-4E3A-A37A-BC5016316DCD
CrashReporter Key: 4776E37C-4D3D-F705-40D5-8A96EE95C89A
Hardware Model: Mac15,6
Process: IBAgent-iOS [31688]
Path: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Overlays/IBAgent-iOS
Identifier: IBAgent-iOS
Version: 16.0 (23506)
Code Type: ARM-64 (Native)
Role: Unspecified
Parent Process: launchd_sim [31680]
Coalition: com.apple.CoreSimulator.SimDevice.178E8D7E-176F-4B7F-8956-D26C5EF7323A [5165]
Responsible Process: SimulatorTrampoline [1185]
Date/Time: 2024-11-06 14:59:29.3079 +0530
Launch Time: 2024-11-06 14:59:28.9368 +0530
OS Version: macOS 15.1 (24B83)
Release Type: User
Report Version: 104
Exception Type: EXC_BREAKPOINT (SIGTRAP)
Exception Codes: 0x0000000000000001, 0x0000000102e1e19c
Termination Reason: SIGNAL 5 Trace/BPT trap: 5
Terminating Process: exc handler [31688]
Triggered by Thread: 0
Application Specific Information:
Abort Cause 259
Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0 libsystem_platform.dylib 0x102e1e19c _os_unfair_lock_recursive_abort + 36
1 libsystem_platform.dylib 0x102e19504 _os_unfair_lock_lock_slow + 304
2 libGSFont.dylib 0x19045ebb4 GSFontFileDescriptorForPath + 28
3 libFontParser.dylib 0x19047d714 TFileDescriptorContext::TFileDescriptorContext(char const*) + 216
4 libFontParser.dylib 0x19057c7e4 TFileDataReference::Map(char const*) + 36
5 libFontParser.dylib 0x19047d514 TFileDataReference::TFileDataReference(char const*) + 88
6 libFontParser.dylib 0x19057c934 TFileDataSurrogate::TFileDataSurrogate(char const*, timespec) + 152
7 libFontParser.dylib 0x1905cbaac TFont::CreateFontEntitiesForFile(char const*, timespec, bool, short, char const*) + 580
8 libFontParser.dylib 0x19047d1e0 FPFontCreateFontsWithPath + 200
9 CoreGraphics 0x18b612c54 create_private_data_array_with_path + 16
10 CoreGraphics 0x18b2cddd4 CGFontCreateFontsWithPath + 36
11 CoreGraphics 0x18b3389b0 CGFontCreateFontsWithURL + 680
12 libGSFont.dylib 0x190465518 AddFontsFromURLOrPath + 288
13 libGSFont.dylib 0x19045ffb4 RegisterURLAndCopyFaces + 168
14 libGSFont.dylib 0x19045fefc GSFontRegisterURL + 76
15 CoreText 0x181c5e0b8 _CTFontManagerRegisterActionFontsForURLs(__CFArray const*, CTFontManagerScope, bool, Action, __CFArray const**) + 396
16 IBCocoaTouchToolFoundation 0x10307e748 +[UIFont(IBCocoaTouchToolIntegration) ib_registerFontsAtURLs:] + 336
17 AssetCatalogFoundation 0x1033e1a88 __80-[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:]_block_invoke + 196
18 AssetCatalogFoundation 0x1033e191c -[IBMessageReceiveChannel deliverMessage:toTarget:withArguments:context:result:] + 328
19 AssetCatalogFoundation 0x1033e14bc __88-[IBMessageReceiveChannel runBlockingReceiveLoopNotifyingQueue:notifyingTarget:context:]_block_invoke + 100
20 libdispatch.dylib 0x180178de0 _dispatch_client_callout + 16
21 libdispatch.dylib 0x180188bc8 _dispatch_async_and_wait_invoke + 112
22 libdispatch.dylib 0x180178de0 _dispatch_client_callout + 16
23 libdispatch.dylib 0x180187c60 _dispatch_main_queue_drain + 1272
24 libdispatch.dylib 0x180187758 _dispatch_main_queue_callback_4CF + 40
25 CoreFoundation 0x18041b2dc __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 12
26 CoreFoundation 0x180415838 __CFRunLoopRun + 1944
27 CoreFoundation 0x180414c24 CFRunLoopRunSpecific + 552
28 Foundation 0x180f319c8 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 208
29 AssetCatalogFoundation 0x1033bdc00 -[IBAbstractPlatformTool startServingReceiveChannel:] + 292
30 AssetCatalogFoundation 0x1033bddf4 -[IBAbstractPlatformTool startServingWriteDescriptor:readDescriptor:] + 96
31 AssetCatalogFoundation 0x1033be718 +[IBAbstractPlatformTool main] + 800
32 IBAgent-iOS 0x102b77930 main + 32
33 dyld_sim 0x102b89410 start_sim + 20
34 dyld 0x102c96274 start + 2840
Interface Builder
RSS for tagBuild interfaces for applications without writing code using Interface Builder, an editor within Xcode.
Posts under Interface Builder tag
49 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
I have macbook pro (Apple M3 Pro), Serial no (xxxxxxxxxxx) with MacOS: sequoia 15.1 Beta (24B5070a). I have installed Xcode 16 also tried on beta. When ever I'm trying to open any of my project and going on storyboard always showing black screen with error (An internal error occured, Editing functionality may be limited). It happens with me last previous week When I updated macOS however same project with same macOs Xcode in another macbook's working fine. before it was was working also fine same project in Xcode 15.4. I hope you get my point I'm waiting for your reply Thanks
HI,
I have an older app that used a button with an image in a storyboard that is also localized. The image was just a red button with rounded corners, white stroke outline, and two lines of white text. (actually two words on top of each other)
Now I see that I should be able to create this button with the new xcode button features. I want to try that, by removing the old image and just setting the configuration boxes. I see under the Attributes view, there is the setting with my image fileaname,but no dropdown box to set like "none" or an abiltity to remove it right there at the setting of it.
I didn't want to delete the button since it would wipe out the connected code etc. I want to be able to translate the two words to other languages as well.
I can't find instructions for this particular task. I guess it's too trivial but I just not figuring it out. I keep deleting the whole button.
And now the constraints are all gone so I need to use the new xcode to set it backup.
thanks for any guidance with the xcode interface!
Chrissie
I have implemented the Large Title for UITableView correctly. The Navigation bar collapses when scrolling down the table view. However, when pulling to refresh, the Large Title moves down the screen instead of staying stationary. I suspect that this is the default behavior. Is there a way to keep the large title stationary when pulling downward to refresh the UITableView?
I don't know when/why my assistant editor opened on bottom. I don't have any idea how to get it back to its original position (on right side). It's annoying.
As has been posted a number of times, the large title navigation bar only collapses on scrolling for the UIView listed first in an .xib or storyboard file.
In my case, I have an enclosing view containing 2 Views, a TableView and a CollectionView in an .XIB file. This is connected to a UIKit class. Tapping a button switches between the two views. If the TableView is the first view listed, the navigationbar collapses with scrolling but with the CollectionView listed second, the large title navigation bar doesn't collapse with scrolling. Alternatively, if the CollectionView is the first view listed, the navigation bar collapses with scrolling but with the TableView listed second, the large title navigation bar doesn't collapse with scrolling.
I have not been able to figure out a way to enable the collapsable large title navigation bar to work in such a scenario as mine for both views within a container view. Is there a way to do this? I have tested this capability through iOS 17.
While binding to the Shared User Defaults in .xib files is very easy I had hard times to achieve application wide preferences in projects based on storyboards. The behavior is a bit strange/unexpected and even in Xcode 15.4 it seams not to be completely solved. Issue is that IB only creates a single instance of a Shared User Default controller for the first scene, where it was requested and linking to this instance from other scenes offers no functionality. Even worse IB suggests this as first binding proposal. Here an example to deal with this issue.
add slider and label to view of ViewController in IB storyboard
add MenuItem to windows menu in the Application Scene
When running the app this menu item remains disabled as no action is connected
bind value of the created menu item to the Shared User Defaults with Model Key Path: “showTerminal“
This creates a Shared User Defaults Controller instance that we use later.
Now running the app the menu item is enabled and the checkmark toggles each time
add a checkbox to the view
add a User Default Controller to the View Controller Scene
This must be repeated for any further Window- or View- Controller scene where a binding to the user defaults is required.
bind the checkbox to the newly added User Defaults Controller (but not the Shared User Defaults Controller) keeping the suggested Controller key values and set the Model Key Path to “showTerminal“ as above
now bind the slider and the label to the same User Defaults controller using an identical Model key
If accidentally bound to the Shared User Defaults Controller (this is what IB suggests) no functional binding will take place!
Register the defaults early (before the nib is being loaded) to set default values like for example:
class AppDelegate: NSObject, NSApplicationDelegate {
override init() {
super.init()
UserDefaults.standard.register(defaults:
[ "first": 0.0
, "showTerminal": false
]
)
}
…
}
[https://github.com/MissingManual/UserDefaultsBindingsInStoryboard]
ATTENTION: Suggestion is, to create the first Defaults Controller as a Shared User Defaults Controller inside the Application scene. Somehow Xcode remembers settings of the Shared User Default Controller and otherwise bindings might fail.
MESSAGE: Never bind to the “Shared User Default Controller“ but to individually created “User Default Controller“ for every scene, unless it is the very first time.
Alternatively you can set a let variable as
@objc let defaults = UserDefaults.standard
for example in each ViewController and then bind to this by
Bind to: ViewController
Controller Key:
Model Key Path: defaults.
When Xcode IDE inserts IBOutlet or autocompletes method signatures, it places the * char next to the var name:
@property (weak) IBOutlet NSButton *aButton;
- (NSString *)someMethod:(NSString *)param1 {
}
But my convention is put the * char right after the type name:
@property (weak) IBOutlet NSButton* aButton;
- (NSString*)someMethod:(NSString*)param1 {
}
Is there anyway to tell Xcode to follow my convention?
Added fonts to MAC and added to Xcode project but fonts are not available in project. Fonts are listed in the Copy Bundle Resources. Fonts are added to Fonts provided by application (Listing dissapears whenever I leave the 'Info' page. Font spelling is correct and double checked. Fonts are listed in project navigator. Fonts do not show up when the lists runs in the console. This same scenario to place when trying to add a different fonst as well. Your help would be appreciated.
I am unfortunately faced with a large legacy code base in which Storyboards are heavily used. Now, for some reason, the entire app window is resized if a certain View Controller becomes visible.
The issue: Apparently, there aren't any conflicting layout constraints (no LAYOUT_CONSTRAINTS_NOT_SATISFIABLE errors are raised on display of the view controller).
There are also no calls to setFrame on the corresponding window.
So, how do I debug this? Capturing the view hierarchy didn't provide any helpful insights, and ideally I could just force the window to not resize (due to possible constraint errors).
Is there any way to achieve something like this? If not, how can I go about debugging this?
Any help on this would be greatly appreciated.
I have a ViewController A that need to present in Viewcontroller B. But before the VC A is presented, user pushed to Viewcontroller C and the VC A still show on C. How can it possible? In my point of view, I think the VC B will not show because the VC A is hided. Anyone can help me with this?. Many thanks
Hi there,
Since Apple keeps force updating macOS and Xcode versions, and iOS versions, whats the point in keeping support for Storyboards?
SwiftUI is the new standard.
Storyboards can be used in older versions of mac and Xcode.
I would like to see Apple focusing on performance more than features.
Thanks
Starting from Xcode 15.3, previously set custom fonts can no longer be found in XIB files. Sometimes they reappear after deleting and setting the font again, but after a while, they disappear again. Can Xcode please be more stable and considerate of the user experience we developers are trying to create? I'm really frustrated.
The devs really hate this things, but as a project manager I need to know the time estimates. So in development favour I really want to know the time estimate to setup and XCode project, considering project as an average case (includes complexity).
So I can really know hpow much time do they actually take or they are just giving over estimates.
Hello everyone!!
I am writing to inquire about the procedures for testing an application I am developing for iOS devices. The application has been developed using Flutter, and I would like to make it available for testing on my colleague's iPhone, who serves as our QA tester.
Currently, my account on the App Store is free, and I would like to ensure proper testing before proceeding with deployment to the Apple Store. As the application is quite large, I am unable to provide it in debug mode on the QA tester's device. Therefore, I would like to enable them to use the application on their personal device for a few days to provide comprehensive feedback on performance and features.
Could you please provide guidance on how to proceed with this beta testing process? I am committed to adhering to all of Apple's guidelines and policies to ensure a high-quality user experience.
I would be very grateful if anyone could help me out on this, Thank you.
Xcode is crashing when I am giving image to back button of navigation bar from Xcode. I tried multiple times but I did not find any solution.
Hi!
I've got a custom UICollectionViewLayout which has its cells and two supplementary kind of views scattered all over randomly within its bounds. It should be a calendar month view with day of week labels on top, week numbers on the left (supplementary views) and day cells in the middle (items).
So far I tracked down that the layoutAttributesForItem(at indexPath:) and layoutAttributesForSupplementaryView(ofKind elementKind:, at indexPath:) are not getting called. Which gives them a reason not to be placed where they should be.
layoutAttributesForElements(in rect: ) gets called indeed and the returned value is also OK:
override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]?
{
super.layoutAttributesForElements(in: rect)
var arr = [UICollectionViewLayoutAttributes]()
arr.append(contentsOf: AllAttributes.filter({ (Item:UICollectionViewLayoutAttributes) -> Bool in
(collectionView!.numberOfSections) > Item.indexPath.section &&
rect.intersects(Item.frame)
}))
return arr //47 long array of UICollectionViewLayoutAttributes
}
In IB the Collection View is specified to be Custom Layout and the respective subclass is specified there.
I inspected the official example code here: https://developer.apple.com/documentation/uikit/views_and_controls/collection_views/layouts/customizing_collection_view_layouts
The only diffrerence I see is that the example uses UICollectionViewController, which is specified to be Flow Layout in IB, and then the UICollectionView is re-instantiated in code as custom during viewDidLoad.
Could that really make a difference? This solution would not be too convenient for me, as I have also other controls on my Controller View.
Any help would be appreciated.
I accidentally removed the Fixed Width preset item in the font panel (by dragging it out).
Is there any way to get it back?
Hello everyone, I'm facing a problem that I can't connect the button to the unwind segue.
I have made a simple application with three controllers.
The unwind segue code is located in Table View Controller.
@IBAction func unwindToTableViewController(_ unwindSegue: UIStoryboardSegue) {
let sourceViewController = unwindSegue.source
}
A first segue has been implemented from the Add button on Table View Controller to the View controller. It is a Push type.
There is a Save button as Bar Button Item in the View Controller.
When I try to drag a connection from Save button to the Exit icon of the View Controller, the context menu does not open indicating the unwind segue. Instead, a context menu appears with different types of segues.
At the same time, if I just click the Exit icon, a context menu appears where the unwind method is visible.
Just in case, I re-read the documentation again and looked at examples of using the unwind method. There is no mention of this problem anywhere.
The only hypothesis left is that this problem is related to the new version of Xcode.
The example of application given here was created in XCode 15.3. I have tested the same application on another computer, where the version of Xcode is 13.4.1. There, when I try to drag a connection from the Save button to the Exit icon, a context menu appears with the name of the unwind method.
But the problem didn't end there because after the connection is established, the button does not work and the View Controller does not dismiss.
I can't understand why this is happens. It worked before. Is that one a bug or the feature?
How to fix it?
Any ideas would be greatly appreciated!
I am new to using iOS Objective-C size classes like Regular, compact, Any. I found that Compact size classes are anything less than ~640 pts and
Regular size classes are anything larger than ~640 pts . Is that correct for both iphone and ipad?
How can I use size class to make an image full screen on all the iphone and ipad devices and on any orientation? How many images will I need? Any help and insight is greatly appreciated!