Post not yet marked as solved
The docs for NSSpellChecker suggest that it can only be used to implement spell check in a developer's app. Is it possible for my app to actually modify the contents of the spell checker across the operating system? I guess this is more a question of how much of the OS is exposed to a third party app.
Post not yet marked as solved
I'm working with NSFileProviderReplicatedExtension for macOS app.
I want to apply custom badge on files instead of default badges (For example, com.apple.icon-decoration.heart, com.apple.icon-decoration.pinned, .. and so on).
I tried to define new UTI in my Info.plist refering this post (-> https://developer.apple.com/library/archive/documentation/FileManagement/Conceptual/understanding_utis/understand_utis_declare/understand_utis_declare.html)
But it doesn't work.
Can i define custom badge? If yes, how can i work with this?
Please reply.
Post not yet marked as solved
I think Apple Devs must be do some develops on this situation. Because this is unbelievable.
Hi,
I'm trying to lock a file from objective-c (or plain C) so that other processes cannot read or write to it. So far, unsuccessfully.
I've tried to use all APIs I can think of, but none locked the file:
open then flock
open then lockf
open with O_EXLOCK
open then fcntl (F_SETLK)
open then NSDistributedLock
I'm running macOS 11.6.1 on an APFS drive.
For every API used, I was able to open and edit the file from command line using vi or just using cat on the file.
Isn't there any way of preventing another process from accessing a file, until I'm done with it (ie. I closed the file, or the file handle is relinquished)?
Thanks,
Chris
Post not yet marked as solved
I deleted the Fitness app from my iPhone 13, and now I wanted to re-install the same, but whenever I'm trying the to do so, it's keeps on stating the same error
This app requires specific features not available on this device
Can anyone pls help me out on this one.
Post not yet marked as solved
so i woke up to find i had no notification since I last opened my phone which I thought was weird so I didn't overthink it but, when I unlocked my phone none of my apps were responsive, at first tik tok did work but after I immediately closed it out it wouldn't let me open the app again. i started to panic so I tried to power it off and it wouldn't let me do that. so I tried to go into my settings to see if that worked and it didn't !
i would like to note that I was experiencing this problem before I went to sleep. i went to open up a game but, it was just for one app and I thought it was because it needed to update or there was a new bug
the only time it actually worked is when it sent my apple id a code for me to make a account on here, I'm currently writing this on a chrome book 😭
sorry if that's a lot to read but I'm distraught and scared lol I hope somebody can help me
Post not yet marked as solved
Mac OS 12.4
I could not recover purgeable space no matter what I did. I lost access to 660GB of HD space. Could not write to my HD. Spent 4 hours trying everything I could think of. Hint was it was a time machine problem. I had been trying to recover an Iphone backup, when all this started. So the problem was due to TimeMachine Local Snapshots being created and being reported as purgeable space. System would not delete them even when I turned of TimeMachine. Here is the trick. From the terminal.
tmutil listlocalsnapshotdates
You will get a list of dated snapshots. For example.
tmutil listlocalsnapshotdates
2022-06-22-162101
2022-06-22-172133
2022-06-22-182533
2022-06-22-192000
For each snapshot run tmutil deletelocalsnapshots
Example
tmutil deletelocalsnapshots 2022-06-22-162101
Problem solved!
Four fffing hours!
Post not yet marked as solved
Hi All,
I have created .app on my MacBook Pro 11 big sur.
that .app has shell script wrapped.it is working on my local machine but when I zipped and uploaded to the Microsoft drive and downloaded back and unzip the file then I can see the extend attribute permissions added to that folder @ sign added . How to solve this whiteout terminal
Post not yet marked as solved
Not sure if this is the right place. But I bought a used Mac air 2017. I did a erase and reinstall. When I did the erase it looked like nothing erased. I did it twice and thought it worked. It did to a point. It looks like a new reinstall but when I try to upgrade to Monterey after it downloaded said it don’t have enough space. I have 128 and only 9 gb left . It has nothing on it but a new install. Should it not be like 56gb used and he rest free? It’s like nothing erased. I’m lost. Need help thanks.
Post not yet marked as solved
This is a question I have concerning features on IOS that don’t exist as far as I am aware but I think should. What were the software developers thinking when they said yes let's not have separate volume controls. When I am on the phone for example and I want to watch a video or listen to a voice message I can't hear it because the call overrides the media, I know this is not just me everyone has to deal with the missing feature of separate volumes it would be so nice to access the control centre click volume and have 4 options 1 for media another for notifications a third for calls and a 4th for alarms every other phone manufacture has this feature including android. Another annoying feature that apple lacks is the fact the torch cannot be used if the camera is in action on FaceTime or camera - again this can be included by a simple software update I’m sure it is a case of a few l more lines of code? And a simple feature all other phones have. Not many people seem to care about this but I know many would think wow that's so much better if it was bought out or maybe it’s because they don’t know any different. Small things make a big difference to user experience.
I wonder if there is already a plan to bring these features IOS. it would be very useful don’tyou agree
Tanks for reading
-George
Post not yet marked as solved
Recently we've been working on file-based backups on macOS 10.15.7. When I finish the system volume group backup, including
The system role volume, default volume name 'Untitled' usually
The data role volume, default volume name 'Untitled - Data' usually
Next step, I launch Migration Assistant and choose "From a Mac, Time Machine backup or startup disk" to restore volume data.
But when I select the backed-up system role volume, a warning message poped up and tell me "Volume contains a macOS or OS X installation which may be damaged".
I try to rebuild folder firmlink from /usr/share/firmlinks before backing up data role volume, like the following steps:
Add SF_FIRMLINK by chflags to folders on system role volume
Add extened attribute com.apple.fs.firmlink which value is target file name
Make sure other attributes(creation time, permission, owner, group, etc) are the same between source and destination
But it still doesn't work (I check inode number on backed-up system role volume by "is -ailO").
I search some informations and find this blog:
https://bombich.com/blog/2020/05/27/bug-in-macos-10.15.5-impacts-bootable-backups-weve-got-you-covered.
So my question is "How do I recover firmlink between backed-up system role volume and data role volume?"
Thanks a lot
Post not yet marked as solved
I bought a MacBook Air M1 2020 with Mac OS Monterrey and tried to transfer data from my Old Mac SSD with High Sierra over usb, at first it mounted fine then I plug it back again after 5 days and it didn't mount it ever since. can someone help me how to fix this bug on OS Monterrey.
Post not yet marked as solved
Using older hardware and older versions of Safari, it is a big problem to have this setting. Can anyone give me a simple, if there is such a thing, instruction on how to lock this setting to only use Safari in the version used, as the only permitted user agent?
I clearly know next to nothing about computers, but I love my old Macbooks!
Post not yet marked as solved
Hi there, I have a 13” 2017 MacBook Air, and I had boot camp, and ended up deleting my MacOS partition.
After a while I had attempted to switch back with Internet Recovery working fine but when I go to install the latest OS, there isn’t a drive to select.
My windows partition (wiped and changed to MacOS Journaled) is the internal disk and is almost all of my storage, with my MacOS base being a disk image, so even if the disk were to appear I would not have enough space to install MacOS anyway. I’m not incredibly tech savvy with Apple computers, so anything that could point me in the right direction would be awesome thank you.
Post not yet marked as solved
I checked my Disk Utility and it shows "Macintosh SSD - Data (APFS Volume APFS" and there's 3 of these.
Sometime ago I had it repaired through an Apple Service Center because the logic board was damaged. Now, I got a new board, I tried to reformat the drive but the only option is APFS format and nothing else.
Any thoughts?
Post not yet marked as solved
If someone modifies a Big Sur or Monterrey boot disk and attaches it to my standard Big Sur or Monterrey machine booted from the internal will reads of the modified files succeed?
Post not yet marked as solved
Recently I tried to use mac asr command to backup my mac. However, I got different error on different mac devices.
While I tried to asr backup my "Intel Mac 10.15.7", following is the command i used:
asr restore --source {system role volume} --target {another container's volume} --toSnapshot "{snapshot I take on both system role and data role}" --erase.
After running asr, it shows "Volume replication failed - error 49157" while backing up data volume.
I tried another asr backup on my "M1 Mac 12", following is the command i used:
asr restore --source {system role volume} --target {another container's volume} --toSnapshot "com.apple... (the snapshot that system snapshot mount)" --erase.
After running asr, it shows "Couldn't embed the APFS EFI driver - error 49174" at the end of asr. (while it's 100% done)
Does anyone know any detail info / document / solution about the asr error code?
Currently I cannot find anything about 49157 / 49197 error code.
The ZIP file (sample.zip) contains the Cocoa application file (sample.app). If you copy the ZIP file (sample-new.zip) and extract it using the following code, the contents of the extracted folder (sample.app) are the same when compared by diff. However it is not recognized as an Cocoa application.
sample.app is converted to AppleDouble format in advance using ditto -c-k.
using System.IO.Compression;
var zipFileName = "sample.zip";
var newZipFileName = "sample-new.zip";
var zipPath = $@"./data/{zipFileName}";
var newZipPath = $@"./data/{newZipFileName}";
// open ZIP file.
using (var archive = ZipFile.Open(zipPath, ZipArchiveMode.Read))
using (var memoryStream = new MemoryStream())
using (var newArchive = new ZipArchive(memoryStream, ZipArchiveMode.Create, true))
{
foreach (var entry in archive.Entries)
{
var newEntry = newArchive.CreateEntry(entry.FullName);
using var archiveEntry = entry.Open();
using var newArchiveEntry = newEntry.Open();
archiveEntry.CopyTo(newArchiveEntry);
}
newArchive.Dispose();
using var fileStream = new FileStream(newZipPath, FileMode.Create);
memoryStream.Seek(0, SeekOrigin.Begin);
// create new zip file
memoryStream.CopyTo(fileStream);
}
I would like to know why it is not recognized as an application even though the files in the folder are the same.
This sample.app will of course work if copied in Finder app, but I don't know if it's because the Application file is missing some specification or why copying in code doesn't work.
Thanks.
Post not yet marked as solved
Hello dear kindly I need your support about this problem since I update my iOS 15.3.1 every time I have a call and get waiting I can’t close this sound beep beep beep beep beep only solution to end this sound press on lock bottom so both of call will end or I can reject and answer second call or I can reject only or I can answer and hold
So please I need solution for this problem
Post not yet marked as solved
I have an external SSD I've used for a while with no issue. I've recently been using it on my iPad on the go, also with no issue.
When I wanted to use it on a Mac today (after using it on my iPad for a while), the disk wouldn't mount anymore. Still does on the iPad for some reason. Tested on MacOS 12.2 & 12.2.1
Any ideas as to how this can happen ?
Here's what Disk Utility's First Aid tells me:
Running First Aid on “ExtSSD” (disk8s1)
Checking file system and repairing if necessary and if possible.
Volume is already unmounted.
Performing fsck_apfs -y -x /dev/rdisk8s1
Checking the container superblock.
error: (oid 0x14e776) om: invalid o_oid (0x71ff)
error: (oid 0x14e776) om: invalid o_type (0x3, expected 0x4000000b)
error: (oid 0x14e776) om: invalid o_type (0x3, expected 0x4000000b)
error: verification/reading of the omap object failed: Illegal byte sequence
warning: checkpoint 192 (xid 26927) failed consistency check
Checking the space manager.
error: spaceman cib out of order: 0, expected 2
Space manager is invalid.
The volume /dev/rdisk8s1 could not be verified completely.
File system check exit code is 8.
Restoring the original state found as unmounted.
File system verify or repair failed. : (-69845)
Operation failed…
Or directly Via CLI:
❯ sudo fsck_apfs /dev/rdisk8s1
** Checking the container superblock.
error: (oid 0x14e776) om: invalid o_oid (0x71ff)
error: (oid 0x14e776) om: invalid o_type (0x3, expected 0x4000000b)
error: (oid 0x14e776) om: invalid o_type (0x3, expected 0x4000000b)
error: verification/reading of the omap object failed: Illegal byte sequence
warning: checkpoint 192 (xid 26927) failed consistency check
Checking the checkpoint with transaction ID 26926.
** Checking the space manager.
error: spaceman cib out of order: 0, expected 2
Space manager is invalid.
** The volume /dev/rdisk8s1 could not be verified completely.