Search results for

dsym file

77,667 results found

Post

Replies

Boosts

Views

Activity

NSItemProvider.registeredTypeIdentifiers(fileOptions: [.openInPlace]) is empty until performDrop
I am building an app for iOS and MacCatalyst that indexes files by storing their local paths. Because the app relies on the file remaining at its original location, I only want to accept items that can be opened in place. I am struggling to determine if an item is Open In Place compatible early in the drag-and-drop lifecycle. Specifically: In dropInteraction(_:canHandle:) and dropInteraction(_:sessionDidUpdate:), calling itemProvider.registeredTypeIdentifiers(fileOptions: [.openInPlace]) returns an empty array. Only once the drop is actually committed in dropInteraction(_:performDrop:) does that same call return the expected type identifiers. This creates a poor user experience. I want to validate the In Place capability at the very start of the session so the drop target only activates for valid files. If an item is ephemeral (like a dragged photo from the Photos app or a temporary export), the drop zone should not react at all. How can I reliably detect if an NSItemProvider suppor
2
0
110
2w
Using a security-scoped bookmark with a symlink
I am developing an application on macOS in SwiftUI which exchanges files with other processes on a network. Some of these processes may be on Linux and write to a network drive. The files are refreshed at 10, 15 or 60 second intervals, and keep the same name. The software is supposed to run 24/7 and have persistent paths, so that on restart it does not need setting up. And it runs in the sandbox. I have got this working with macOS-only external processes by putting the exchange files in a fixed folder on the network storage and using security-scoped bookmarks to the file and or folder. But it doesn't work so well when one of the writing processes is a Linux process writing to its own storage. I can put a symlink in my fixed folder and if i select the folder and the symlink after each app restart, it works. but how can i make such a set-up persistent so it works after app restart without manual selection?
1
0
187
2w
Reply to failed to set category, reason: 未能完成操作。(OSStatus错误4097。)
Thanks for the post and the crash file. Looks like you have received no replies. Looking at the crash file it seems like 135 threads at least. I would recommend to go ahead and create a focused sample project that reproduces this issue as I'm not aware of any open bugs on that API. Why not calling it from the main thread? Do you get the same results with just the relevant code in a small test project? If so, please share a link to your test project. That'll help us better understand what's going on. If you're not familiar with preparing a test project, take a look at Creating a test project. Albert Pascual
  Worldwide Developer Relations.
Topic: Media Technologies SubTopic: Audio Tags:
2w
Is it possible to instantiate MLModel strictly from memory (Data) to support custom encryption?
We are trying to implement a custom encryption scheme for our Core ML models. Our goal is to bundle encrypted models, decrypt them into memory at runtime, and instantiate the MLModel without the unencrypted model file ever touching the disk. We have looked into the native apple encryption described here https://developer.apple.com/documentation/coreml/encrypting-a-model-in-your-app but it has limitations like not working on intel macs, without SIP, and doesn’t work loading from dylib. It seems like most of the Core ML APIs require a file path, there is MLModelAsset APIs but I think they just write a modelc back to disk when compiling but can’t find any information confirming that (also concerned that this seems to be an older API, and means we need to compile at runtime). I am aware that the native encryption will be much more secure but would like not to have the models in readable text on disk. Does anyone know if this is possible or any alternatives to try to obfuscate the Core ML models,
0
0
374
2w
Reply to Alarmkit- custom sounds
Thanks for the post and the question: https://developer.apple.com/documentation/alarmkit/alarmmanager/alarmconfiguration#overview What happens when you change the sound file on the alert configuration? let configuration = AlarmManager.AlarmConfiguration(countdownDuration: Alarm.CountdownDuration(preAlert: 10, postAlert: 10), schedule: nil, attributes: attributes, secondaryIntent: repeatIntent, alertConfiguration: AlertConfiguration(title: Eggs are ready!, body: Time to eat!, sound: .default)) Alert Sound: https://developer.apple.com/documentation/ActivityKit/AlertConfiguration/AlertSound https://developer.apple.com/documentation/activitykit/alertconfiguration/sound AlarmKit Resources: AlarmKit FAQ is always important: https://developer.apple.com/forums/thread/797158 AlarmKit volume: https://developer.apple.com/forums/thread/813519?answerId=873409022#873409022 AlarmKit API https://developer.apple.com/documentation/AlarmKit Albert Pascual
  Worldwide Developer Relations.
2w
Reply to Text with .secondary vanishes when Material background is clipped to UnevenRoundedRectangle in ScrollView
Hello junqhao25, Thanks for the screenshot documenting this issue and the sample code. Can you please file a bug report so we can have a relevant engineering team further investigate this? Feel free to also place your code in a small focused sample app that reproduces the issue. Once you open the bug report, please post the FB number here for my reference. If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why? Thank you for your patience, Richard Yeh  Developer Technical Support
Topic: UI Frameworks SubTopic: SwiftUI Tags:
2w
Reply to Behavior of Bookmark URLs and Files App Recently Deleted – Clarification and Potential Bug
FYI, this is outside my normal area of expertise (and the scope of the original question), so if you have more questions about this, please post them as a new thread. Questions: 1.How Numbers.app achiveing these behaviors? I haven't looked at it in detail, but I suspect it's using a combination of security scoped bookmark (for basic file tracking on device) and the iCloud Document API. In particular, the key NSMetadataQueryUpdateRemovedItemsKey should be included in the NSMetadataQueryDidUpdateNotification you receive for deleted files. 2.Can a 3rd party like our company be able to achieve this kind of behavior? Yes, I think so. __ Kevin Elliott DTS Engineer, CoreOS/Hardware
Topic: App & System Services SubTopic: Core OS Tags:
2w
Reply to [FB21797091] Regression: Universal Links/AASA Fetching Fails for IDN on iOS 16+
@423fts Can you go ahead and file a bug against Universal Links not working well against Unicode only like (求人ボックス.com)? Once you open the bug report, please post the FB number here for my reference. If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why? Thanks and apologies for the delay, Albert Pascual
  Worldwide Developer Relations.
Topic: App & System Services SubTopic: General Tags:
2w
Reply to MacBook Pro m5 can’t recognize two external monitors with same EDID binary serial (only one works at a time)
I have the same issue with my M5. Matching Asus monitors on a CalDigit TS4. Both using DP to USB-C adapters from Cable Matters. Have you filed a bug on this and, if so, what's the bug number? Critically, I'm still looking for a sysdiagnose that's been collected with this configuration: If you can, what I think would be most helpful here is a sysdiag captured with both devices attached via USB AND with a USB device attached to both monitors. This helps validate the general bus configuration outside of the display system. Finally, going back over all the data, there is a difference between the maximum display configuration of the Mac Mini M4 Pro (working): Supports two external displays in any one of these configurations: One display up to a native resolution of 8K (7680 x 4320) at 60Hz or 4K (3840 x 2160) at 240Hz over Thunderbolt or HDMI, and one display up to a native resolution of 5K (5120 x 2880) at 60Hz over Thunderbolt One display up to a native resolution of 8K (7680 x 4320) at 60Hz (or 4K at 2
2w
Reply to My app seems to cause Time Machine errors
Might the document's size be an issue? They tend to be over 100 Mb. It's certainly not ALL the documents that I open: only a few. Possibly. The data object you're handed was created by passing NSDataReadingMappedIfSafe into the NSData initializer, which means you do have a certain connection to the file system. However, the bigger issue is whether or not you have unsaved changes. It's worth saying that I've deliberately switched off the auto-save functionality (autosavesInPlace = false). Can I ask what you mean by checking the documentEdited property“? NSDocument.documentEdited is the property which notes whether or not the document has been modified, which would generally indicate there are unsaved changes. Among other properties, it's actually what triggers this alert: If I close a document with unsaved changes, it flags an alert saying that there are unsaved changes; do you want to save them? If there aren't, then the document closes gracefully. I'll see if I can trigger it again and investigate a
Topic: App & System Services SubTopic: Core OS Tags:
2w
Reply to Quick Look Plugin for Mac and Internet Access
@Engineer Is this really the case? I mean, this is MapKit, a system component which is under full control of the operating system and which is supposed to be safe and trustworthy. I would assume that system components like MapKit are able to access the internet to fulfil their main purpose. Just like the macOS does this for URLs and web location files where Quicklook has no problems in loading the web pages and displays a preview of these just fine. If you really think that any internet access for QuickLook would be a danger for the user, then you definitely need to stop supporting Quicklook for URLs and web location files. I guess we can agree, that system components like MapKit and WebKit are not a threat to the user and it won't be a risk for these to access the internet.
Topic: UI Frameworks SubTopic: AppKit Tags:
2w
Questions on OS Activity Tracing
This is stemmed from another forum post on Apple Unified Logging. A few additional questions were raised towards a relevant but different topic - activity tracing, starting a new post following The Eskimo's suggestion. The first question is on log capture from an activity chain. The related documentation stated something but very vaguely. https://developer.apple.com/documentation/os/generating-log-messages-from-your-code?language=objc#Choose-the-Appropriate-Log-Level-for-Each-Message If an activity object exists, the system captures information for the related process chain We had hoped that this would somewhat play into the speculative logging approach we had touched upon in the original post, in the sense that if we try to log an error or fault within an activity, then it helps to capture and persist other logs on the activity chain even though they are originally not meant to be. But unfortunately from our test it didn't seem to be behaving towards that understanding. Then our question is, if we may ask -
1
0
80
2w
Reply to filecopy fails with errno 34 "Result too large" when copying from NAS
I ran the following commands in Terminal: Use the Finder to do the copy, not cp. More to the point, jumping back to what I posted in earlier, this pattern (logical size > physical size) is the easy way to check if you're looking at a compressed file: Get Info: Size: 56,090 bytes (45 KB on disk) Similarly: I tried copying the same System/Library/CoreServices/Finder.app/Contents/Resources/Invitation.aiff file to a FAT volume connected via SMB, and the results are the same. The system is ACTIVELY trying to prevent compressed files from leaking out of its control. Basically, it will only preserve compression when you're doing local copies to file systems that specifically support it. That means APFS-> APFS and MAYBE HFS+. Note that this does NOT include smb. If you start with a compressed file and copy it across smb, the system ends up decompressing it as part of the copy. That's almost certainly what happened here: but the output of each of these commands was em
Topic: App & System Services SubTopic: Core OS Tags:
2w