Search results for

file uri scheme

78,765 results found

Post

Replies

Boosts

Views

Activity

Reply to Data used for MLX fine-tuning
The github explains the format fairly well. I've added info from my eBook content after saving the Pages version as plain text. I created the train.json file by breaking the text file into lines an added '{text: My text info}' around each line My text info. I fudged the valid.json file by including a small part of the train.json. The biggest problem was finding special characters in my original that weren't json compatible (e.g. tab character). This was just for adding 'text' content to the model using LoRa.
Topic: Machine Learning & AI SubTopic: General Tags:
1w
Data used for MLX fine-tuning
The WWDC25: Explore large language models on Apple silicon with MLX video talks about using your own data to fine-tune a large language model. But the video doesn't explain what kind of data can be used. The video just shows the command to use and how to point to the data folder. Can I use PDFs, Word documents, Markdown files to train the model? Are there any code examples on GitHub that demonstrate how to do this?
2
0
139
1w
Reply to Change popover background color in iOS 26
Thank you for sharing the post and providing all the necessary information. I greatly appreciate your efforts. Let us proceed with filing a bug report for the sample and its description. Once you open the bug report, please post the FB number here for my reference as I am very interested in this issue. If you have any questions about filing a bug report, take a look at Bug Reporting: How and Why? Looking forward to get to the bottom of this. Albert Pascual
  Worldwide Developer Relations.
Topic: UI Frameworks SubTopic: UIKit
1w
Reply to NSFileVersion.currentVersionOfItem not consistent across devices after simultaneous edit
fileVerA not existing on device B explains why currentVersionOfItem returns fileVerB. But as you've pointed out and the documentation mentions , presentedItemDidGain(_:) is supposed to be called after a new version was added, which does seem to conflict with your observation. I’d hence suggest that you file a feedback report – If you do so, please share your report ID here. In presentedItemDidGain I check if the URL passed in is in a conflict state by using 'newVersionURL.isConflict', and it returns true, and then I run the merge. Is this the right way to check for a pending conflict? Yes, the above flow sounds right, assuming presentedItemDidGain is called at the documented timing. Best, —— Ziqiao Chen  Worldwide Developer Relations.
1w
NSFileVersion.currentVersionOfItem not consistent across devices after simultaneous edit
I’m building an app that edits files in iCloud and uses an NSFilePresenter to monitor changes. When a conflict occurs, the system calls presentedItemDidGain(_:). In that method, I merge the versions by reading the current (canonical) version using NSFileVersion.currentVersionOfItem(at:) and the conflicting ones using NSFileVersion.unresolvedConflictVersionsOfItem(at:). This generally works, but sometimes, if two devices edit the same file at the same time, each device sees its own local version as the current one. For example: Device A writes fileVerA (slightly later in real time) Device B writes fileVerB On Device A all works fine, currentVersionOfItem returns fileVerA, as expected, and unresolvedConflictVersionsOfItem returns [fileVerB]. But on Device B, currentVersionOfItem returns fileVerB!? And unresolvedConflictVersionsOfItem returns the same, local file [fileVerB], without any hint of the other conflicting version, fileVerA. Later, the newer version from the Device A arrives
3
0
142
1w
Reply to Profile doesn't include the com.apple.application-identifier entitlement.
I experienced this problem in XCode 26.0.1. My app has a single target configured with iOS and macOS destinations. For macOS, my app requires the sandbox entitlement for calendar data access. I fixed the error by: Removing the com.apple.application-identifier, com.apple.security.app-sandbox, and com.apple.security.personal-information.calendars entries from the app's AppName.entitlements file. Adding the sandbox and calendar entitlements back by adding the corresponding capabilities in the app target Signing & Capabilities settings. Toggling off and back on Automatically manage signing. I believe this worked because sandbox capability entitlements are only injected for macOS, while entitlement file entitlements were injected for all destinations. Hopefully this helps others with similar dual-destination setups.
1w
Reply to TestFlight is Unavailable
Thank you for your assistance and providing me with this information. May I ask you to submit a bug report against TestFlight. 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? Please post the FB numbers here! Thanks again for your help on this one. Albert Pascual
  Worldwide Developer Relations.
1w
Reply to Provisioning Profile Defect: App Attest Entitlement (com.apple.developer.app-attest.environment) Missing Despite Enabled Capability
This is not a bug in the provisioning profile generation service, and the issue is indeed a misconfiguration on your side. The App Attest Environment Key in the provisioning profile is the correct one, and the one you have included does not exist. The provisioning profile and your project entitlements must match, and a provisioning profile will not include an otherwise non-existent entitlement entry. The key com.apple.developer.app-attest.environment is not a valid entitlement - it does not exist. So you can't add it to your provisioning profile. You need to remove that from your entitlements file. I don't know which resource you found this in, but whatever they have recommended is completely wrong. You will want to read the proper documentation to understand how this all works, and what entries you need to setup in your project.
1w
Reply to App sometimes crashes when inserting String into Set with assertion ELEMENT_TYPE_OF_SET_VIOLATES_HASHABLE_REQUIREMENTS
I notice the exception is on: NativeSet.insertNew(_:at:isUnique:) + 376 (/:0) Looking at this thread: https://forums.swift.org/t/substring-violates-hashables-requirements-stdlib-compiler-bug/58046/7 I wonder if the compiler is not confused and considering you try to insert a substring. To make sure, could you try: let sub = self[index...] // a substring let theStr = String(sub) return if index == endIndex || basePath == / { theStr // String(self[index...]) // for sure, a String } else if let index = self[index...].range(of: /, options: .anchored)?.upperBound { theStr // String(self[index...]) } else { nil } If that works, you should file a bug report.
Topic: Programming Languages SubTopic: Swift Tags:
1w
Reply to iOS26 background lock screen Blood glucose monitoring Bluetooth low energy disconnect sleep
There are a number of Bluetooth related fixes in iOS 26.1 on iPhone 17. Please test with the current 26.1 beta 3, and see if the issue continues for your app/device. If it does not seem to be fixed, then we'd need specific information about the issue. We need a specific diagnostic log. Please go to https://developer.apple.com/bug-reporting/profiles-and-logs/ and follow the instructions for Bluetooth for iOS to install a logging profile on your device. Then reproduce the issue, and follow the instructions at the above link to create a sysdiagnose. In that case, please open a bug report, include the sysdiagnose from above step, any other logs you might have, and sample code or models that reproduce the issue, and post the FB number here once you do. Bug Reporting: How and Why? has tips on creating a successful bug report. Important: For feedback related to a specific framework or API, select Developer Technologies & SDKs as your Topic, then select the specific technology and relevant OS. For feedback relate
1w
Reply to iOS26 beta: AppClips are not working properly
Also, I learnt that apple-app-site-association (AASA) file structure has also changed. { applinks: { details: [ { appIDs: [MYTEAMID.com.example.myApp], components: [ { /: /* } ] } ] }, appclips: { apps: [ MYTEAMID.com.example.myApp.Clip ] } } i.e with respect to my previous AASA file, I had to do the following: instead of paths we need to add components as above. in the applinks we should add the main app bundle id (not the clip's bundle id) removed apps: [], from the applinks section. Hope this will help someone.
Topic: App & System Services SubTopic: General Tags:
1w