I'm reading a bit outdated book about Cocoa/Objective-C applications development and I'm trying to code some examples. And so I ended up with an almost empty NSDocument-based app with runtime errors like that:
Internal inconsistency in menus - menu <NSMenu: 0xbc726d040>
Title: Window
Supermenu: 0xbc726d080 (Main Menu), autoenable: YES
Previous menu: 0x0 (None)
Next menu: 0x0 (None)
Items: (
"<NSMenuItem: 0xbc6fcd9a0 Minimize, ke='Command-M'>",
"<NSMenuItem: 0xbc6fcda40 Zoom, ke mask=''>",
"<NSMenuItem: 0xbc6fcdae0, separator, ke mask=''>",
"<NSMenuItem: 0xbc6fcd900 Bring All to Front, ke mask=''>"
) believes it has <NSMenu: 0xbc726d080>
Title: Main Menu
Supermenu: 0x0 (None), autoenable: YES
Previous menu: 0x0 (None)
Next menu: 0x0 (None)
Items: (
) as a supermenu, but the supermenu does not seem to have any item with that submenu
It looks like as if the menu tries to include itself as a submenu. Am I right? I have no ideas what led to this. If I'm not mistaken this has started since macOS Tahoe.
The code that is not a boilerplate one I have:
// Document.m
#import "Document.h"
@implementation Document
@synthesize text;
- (NSString *)windowNibName {
return @"SampleDocument";
}
- (void)windowControllerDidLoadNib:(NSWindowController *)aController {
[super windowControllerDidLoadNib:aController];
if (self.text == nil) {
self.text = @"";
}
self.textField.stringValue = self.text;
}
- (NSData *)dataOfType:(NSString *)typeName error:(NSError **)outError {
self.text = self.textField.stringValue;
return [self.text dataUsingEncoding:NSUTF8StringEncoding];
}
- (BOOL)readFromData:(NSData *)data ofType:(NSString *)typeName error:(NSError **)outError {
if ([data length] > 0) {
NSString * string = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
self.text = string;
}
else {
self.text = @"";
}
return YES;
}
+ (BOOL)autosavesInPlace {
return YES;
}
@end
There are two xib's: MainMenu.xib and Document.xib but I won't include them here.
Please advise how to fix this menu issue.
Apple Developers
RSS for tagThis is a dedicated space for developers to connect, share ideas, collaborate, and ask questions. Introduce yourself, network with other developers, and foster a supportive community.
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Hi @DTS Engineer
in tvOS 26.2 Beta is still this annoying Shadow Glitch… 😔
I have submitted an Bug-Report, but dont get an Answer… FB18719371
The Animation is not smooth and the Shadow is abruptly „jumping“…
I don’t get any Response from the Apple Engineers. But this GUI Glitch makes the otherwise very high-quality tvOS GUI appear very unprofessional.
Could you please help me? 🤔
Topic:
Community
SubTopic:
Apple Developers
Hello, I'd like to consult everyone about abnormal frame rate issues encountered during Vision Pro usage, along with questions regarding refresh rates. I hope to gain insights or solutions:
My VP (M5) device experiences sudden frame rate drops during operation, with the following specific symptoms: During initial operation, the frame rate is approximately 90 frames per second, providing a smooth and normal user experience; However, it subsequently drops unexpectedly to 45 FPS, causing noticeable lag that severely impacts usability.
Actual usage logs provide a clear timeline: During the first session (23:47:35–23:57:41), the frame rate remained consistently stable at 90 FPS; After pausing usage for a period and restarting the device (00:22:30–00:30:47), the frame rate initially remained stable at 90 FPS. However, starting at 00:30:48, the frame rate suddenly dropped to 45 FPS and remained at this low rate until 00:36:18.
Additionally, we have two further questions:
What could cause this sudden, unexplained drop from 90 FPS to 45 FPS?
Our team has multiple VP M2 devices of the same model and noticed that some default refresh rates are 90Hz while others are 100Hz. What factors determine the frame rate of these devices? Why do refresh rate differences occur among identical models?
Have others encountered similar sudden frame rate drops? If so, could you share potential causes and troubleshooting approaches for resolving such issues? Thank you very much!
My enrollment is stuck on “Your purchase may take up to 48 hours to process.” How can I get it activated?
Topic:
Community
SubTopic:
Apple Developers
Hi all,
I was hoping someone could help with this. I have an app that requires a subscription To access all content and features. However, some of our users’ subscriptions are not being detected and when they hit “Restore” they are faced with the error:
“Failed to restore with error code E_UNKNOWN and a TLS error caused the secure connection to fail“
We have asked the users to disable VPNs, change networks / data connection, restart devices etc. but this doesn’t seem to work. We are unable to produce this error on our test devices. Nor can we see any obvious issues in the code or on the servers.
Anyone any idea what could be causing this?
Topic:
Community
SubTopic:
Apple Developers
Hi,
How to post to App & System Services -> Wallet ?
I'm getting "This post contains sensitive language. Please revise it in order to continue" blockage every time I try to submit.
Thanks.
Hi,
If I set my Wallpaper to Black then go to any .jpg and select "Services-> Set Desktop Picture" the photo does not set. It may set a minute or so later. This action also prevents other colors from being set as if the system is busy with the photo somehow.
My desktop app that sets Wallpaper is also broken I believe because of the above.
Anyone have any workarounds or guidance?
I have filed a Feedback Assistant bug.
Thanks,
Jimmy
Topic:
Community
SubTopic:
Apple Developers
I tried to enroll some weeks ago, went thru the whole process, it eventually took by IDs, but now I'm stuck on "Enrollement not completed - You enrollment in the Apple Developper pogram could not be completed at this time."
So, after 2 weeks, what's next ?
Recently update my 15 pro max to ios 26.2 and now 90% of the apps are not working. No payment app is working. Even G Map and G Drive isnt working. Amazon is down. I am not able to use UPI or even pay electricity bill.
Topic:
Community
SubTopic:
Apple Developers
As l proceeded through the enrollment/membership.
I found the price is fixed for US$99. At the end. What about Renewal.
Is there any cost reduction for Apple Developers?
When trying to print an email with eM Client, the dialogue box pops up and the preview show the email's subject, To, and From lines in a long vertical column. This seems to only occur within the eM Client app and only on my Macbook Pro. I use the same email client on my Air with no issues. This is a recent development. I'm on Tahoe Beta 26.2.
Topic:
Community
SubTopic:
Apple Developers
I am trying to create a new app using IOS-26.1, macOS Tahoe 26.1 and Xcode 26.1 with Swift6. Is this a bug that is going to be addressed. This is in the Debug Console...Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSAutoresizingMaskLayoutConstraint:0x10bb18870 h=--& v=--& _TtCC5UIKit19NavigationButtonBar15ItemWrapperView:0x115da48c0.width == 0 (active)>",
"<NSLayoutConstraint:0x115ac2ee0 _TtCC5UIKit19NavigationButtonBar15ItemWrapperView:0x115da48c0.leading == _UIButtonBarButton:0x115d40c80.leading (active)>",
"<NSLayoutConstraint:0x115ac30c0 H:[_UIButtonBarButton:0x115d40c80]-(0)-| (active, names: '|':_TtCC5UIKit19NavigationButtonBar15ItemWrapperView:0x115da48c0 )>",
"<NSLayoutConstraint:0x115ac2df0 'TB_Leading_Leading' H:|-(12)-[_UIModernBarButton:0x115d20a80] (active, names: '|':_UIButtonBarButton:0x115d40c80 )>",
"<NSLayoutConstraint:0x115ac2fd0 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x115d20a80]-(12)-| (active, names: '|':_UIButtonBarButton:0x115d40c80 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x115ac2fd0 'TB_Trailing_Trailing' H:[_UIModernBarButton:0x115d20a80]-(12)-| (active, names: '|':_UIButtonBarButton:0x115d40c80 )>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKitCore/UIView.h> may also be helpful.
Topic:
Community
SubTopic:
Apple Developers
Hello,
Since having my iPhone 17 Pro, my CarPlay screen has been pixelated and unusable
Is there any update coming soon to resolve this issue?
Hi there,
I am new to Xcode26 and dragged my AppIcon.icon (created with Icon Composer) into the project. Then build failed with "Could not locate icontool".
Could anyone point me to the cleanest way to solve this? Any help would be appreciated, thanks!
CompileAssetCatalogVariant thinned /Users/jaffron/Library/Developer/Xcode/DerivedData/KuuDraft-dsmpyalldiyuusdldnjihwrtzmab/Build/Intermediates.noindex/ArchiveIntermediates/KuuDraft/InstallationBuildProductsLocation/Applications/KuuDraft.app /Users/jaffron/Documents/augment-projects/WalletPin/KuuDraft/AppIcon.icon /Users/jaffron/Documents/augment-projects/WalletPin/KuuDraft/Assets.xcassets (in target 'KuuDraft' from project 'KuuDraft')
cd /Users/jaffron/Documents/augment-projects/WalletPin
/Applications/Xcode.app/Contents/Developer/usr/bin/actool /Users/jaffron/Documents/augment-projects/WalletPin/KuuDraft/AppIcon.icon /Users/jaffron/Documents/augment-projects/WalletPin/KuuDraft/Assets.xcassets --compile /Users/jaffron/Library/Developer/Xcode/DerivedData/KuuDraft-dsmpyalldiyuusdldnjihwrtzmab/Build/Intermediates.noindex/ArchiveIntermediates/KuuDraft/IntermediateBuildFilesPath/KuuDraft.build/Release-iphoneos/KuuDraft.build/assetcatalog_output/thinned --output-format human-readable-text --notices --warnings --export-dependency-info /Users/jaffron/Library/Developer/Xcode/DerivedData/KuuDraft-dsmpyalldiyuusdldnjihwrtzmab/Build/Intermediates.noindex/ArchiveIntermediates/KuuDraft/IntermediateBuildFilesPath/KuuDraft.build/Release-iphoneos/KuuDraft.build/assetcatalog_dependencies_thinned --output-partial-info-plist /Users/jaffron/Library/Developer/Xcode/DerivedData/KuuDraft-dsmpyalldiyuusdldnjihwrtzmab/Build/Intermediates.noindex/ArchiveIntermediates/KuuDraft/IntermediateBuildFilesPath/KuuDraft.build/Release-iphoneos/KuuDraft.build/assetcatalog_generated_info.plist_thinned --app-icon AppIcon --include-all-app-icons --compress-pngs --enable-on-demand-resources YES --development-region en --target-device iphone --minimum-deployment-target 16.0 --platform iphoneos
error: unable to open dependencies file (/Users/jaffron/Library/Developer/Xcode/DerivedData/KuuDraft-dsmpyalldiyuusdldnjihwrtzmab/Build/Intermediates.noindex/ArchiveIntermediates/KuuDraft/IntermediateBuildFilesPath/KuuDraft.build/Release-iphoneos/KuuDraft.build/assetcatalog_dependencies_thinned) (in target 'KuuDraft' from project 'KuuDraft')
/* com.apple.actool.notices */
warning: Could not locate icontool.
Light shining effects can repeatedly be observed on older iPhone devices (12/13/14). This change is often seen after the device is rebooted or after a SystemMemoryReset.ips (System Analysis Data). It changes very often...
When you tap the list title in this yellow area in the Reminders app, the rows shift in an awkward/undesirable way. This may be a problem specific to older iPhone versions 12-15.
Topic:
Community
SubTopic:
Apple Developers
Since iOS 26.1 I'm running into the following iCloud issues.
Contacts are not being synced to iOS and iPad OS at all, no matter how I re-enable contact syncing I can't get them to sync.
Somehow, my Mac and iPad are able to send out iMessages, but not my iPhone. My iPhone can receive and sync what I've sent using my Mac and iPad
Unable to save an airdropped contact
Topic:
Community
SubTopic:
Apple Developers
Looking for more information on web push provisioning. I have a bank issuing credit card, which needs to be pushed to apple mobile wallet. Need to understand the APIs and other details required to do this.
Since updating to iOS 26, I can no longer link my iPhone WhatsApp app to WhatsApp Desktop on Windows. Every attempt to scan the QR code results in an “Unexpected error” message on the desktop app.
This issue only occurs on iOS. When using an Android device with the same version of WhatsApp Desktop and same network, linking works perfectly.
I contacted WhatsApp Support, and they confirmed that the problem appears to be related to iOS networking or connectivity handling rather than their app.
Topic:
Community
SubTopic:
Apple Developers
Hi All,
I am currently investigating an incident involving the iPhone 15 running iOS versions 18.6.2 and 26.0.1. The issue occurs when a user installs an application via the Company Portal. After installation, the app launches briefly and then crashes.
We have reviewed the Company Portal logs and checked Firebase Crashlytics, but neither provided any conclusive information regarding the root cause.
To further investigate, we asked 15 users to replicate the issue on similar devices, but the app worked correctly for all of them.
We have identified several potential causes that might be contributing to the issue:
Device configuration (model and OS version)
Device type (Corporate or BYOD)
Device policy settings
App installation process
Certificate or profile mismatch
SDK or library version compatibility/deprecation
SDK or framework initialization issues
API failure during app launch (exception handling)
Memory shortage
Could you please suggest any additional areas or approaches we should explore to help identify the root cause?
Thank you
Topic:
Community
SubTopic:
Apple Developers