Post

Replies

Boosts

Views

Activity

Reply to helper app dyld crash when using Xcode debugger
Is this helper app nested within your main app? No. That means you selected your main app’s scheme and chose Product > Run, right? So you’re debugging the main app and hit this problem when the main app tries to run the helper app. Correct. Is any of this stuff sandboxed? No. If not, do you have the hardened runtime enabled? Hardened runtime is enabled for the main app, not the helper. Is the main app running the helper as a child process (fork then exec*, or posix_spawn, or NSTask, or Process, or similar). Or as an independent app (NSWorkspace, or Launch Services, or similar)? Running as an independent app using -[NSWorkspace openApplicationAtURL:configuration:completionHandler:]. The configuration includes an additional argument.
Nov ’23
Reply to codesign not signing helper executable in AppleScript bundle
As far as I know, the advice from Apple (or at least Quinn) has always been to sign from inside out. That is, any helpers, tools, frameworks, and dylibs should be signed before the app bundle as a whole. Of course you’re free to write feedback, but don’t be surprised if it comes back “behaves as designed”. And they’re probably mostly focused on development with Xcode, in which the process of uploading an archive for notarization or the App Store takes care of the details of code signing.
Topic: Privacy & Security SubTopic: General Tags:
Oct ’23
Reply to NSImageView with icns file issue on Sonoma
Yes, there does seem to be something weird about icns handling in Sonoma. When I open that stop icon in Preview in Sonoma, the two smallest versions look blue in the thumbnail sidebar, but are red in the main view when selected. Opening the same file in Preview on Ventura does not show this effect. You should file a bug report with Feedback Assistant.
Topic: UI Frameworks SubTopic: AppKit Tags:
Oct ’23
Reply to helper app dyld crash when using Xcode debugger
I tried re-signing the helper with the hardened runtime, and then it won't launch at all. Trying to launch it in Terminal shows Runtime error 217 at 000000011003B572 Googling "runtime error 217" just shows Windows errors.
Replies
Boosts
Views
Activity
Nov ’23
Reply to helper app dyld crash when using Xcode debugger
Is this helper app nested within your main app? No. That means you selected your main app’s scheme and chose Product > Run, right? So you’re debugging the main app and hit this problem when the main app tries to run the helper app. Correct. Is any of this stuff sandboxed? No. If not, do you have the hardened runtime enabled? Hardened runtime is enabled for the main app, not the helper. Is the main app running the helper as a child process (fork then exec*, or posix_spawn, or NSTask, or Process, or similar). Or as an independent app (NSWorkspace, or Launch Services, or similar)? Running as an independent app using -[NSWorkspace openApplicationAtURL:configuration:completionHandler:]. The configuration includes an additional argument.
Replies
Boosts
Views
Activity
Nov ’23
Reply to search for specific words inside a pdf document in Xcode
Have you read the documentation on the PDFDocument class, for instance the findString(_:withOptions:) method?
Replies
Boosts
Views
Activity
Nov ’23
Reply to Signing Certificates: An attribute in the provided entity has invalid value
I got that error message when trying to create an Apple Distribution certificate in Xcode 14. But in Xcode 15, it worked.
Replies
Boosts
Views
Activity
Nov ’23
Reply to NSURLSession data download never completes
D'Oh! Yes, and the documentation does say to call resume. Thanks!
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Nov ’23
Reply to Adding contacts in favorites..... hang issue
Are you doing this programmatically? If so, show some code; if not, you should be posting in the user forum or filing a bug with Feedback Assistant.
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to CGWindowListCreateImage -> ScreenCaptureKit
CGDisplayCreateImageForRect does not appear to be deprecated, could you use that?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Using notarytool on an older version of macOS
I think you need to extract notarytool from Xcode 13. I ran otool -L on the copy of notarytool in Xcode 15 and saw that it depends on /usr/lib/swift/libswift_Concurrency.dylib. But doing otool -L on the notarytool in Xcode 13.4.1 does not show that dependency.
Replies
Boosts
Views
Activity
Oct ’23
Reply to codesign not signing helper executable in AppleScript bundle
As far as I know, the advice from Apple (or at least Quinn) has always been to sign from inside out. That is, any helpers, tools, frameworks, and dylibs should be signed before the app bundle as a whole. Of course you’re free to write feedback, but don’t be surprised if it comes back “behaves as designed”. And they’re probably mostly focused on development with Xcode, in which the process of uploading an archive for notarization or the App Store takes care of the details of code signing.
Topic: Privacy & Security SubTopic: General Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to NSImageView with icns file issue on Sonoma
My guess is that the problem lies in the Image I/O Framework. I filed a bug report, FB13283189.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to NSImageView with icns file issue on Sonoma
Yes, there does seem to be something weird about icns handling in Sonoma. When I open that stop icon in Preview in Sonoma, the two smallest versions look blue in the thumbnail sidebar, but are red in the main view when selected. Opening the same file in Preview on Ventura does not show this effect. You should file a bug report with Feedback Assistant.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to NSRunningApplication activateWithOptions does not work on Sonoma
I'm surprised that you say it worked in Ventura, because in my testing, NSApplicationActivateAllWindows has not worked since at least 10.15. I filed FB11974786 about it. I worked around it by using the old Carbon function SetFrontProcessWithOptions, which is deprecated but works.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to Simulate sending key to an NSView on a macOS application
You could create an NSEvent and use the sendEvent method of NSApplication.
Topic: UI Frameworks SubTopic: AppKit Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to NSTextView find and replace custom dialog
Override performFindPanelAction: in some class in the responder chain. In your override, if [sender tag] is NSTextFinderActionShowFindInterface, present your custom find panel. See the NSTextFinderAction enumeration for other possible actions.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Oct ’23
Reply to How to install an Xcode version compatible with macOS 14.6?
You mean 13.6, there is no 14.6. Either Xcode 14.x or Xcode 15 will work on Ventura. Don't worry about .xip, if you double-click it, the Archive Utility will decompress it.
Replies
Boosts
Views
Activity
Oct ’23