Apple File System is the default file system for iOS 10.3 and later, and for macOS High Sierra and later.

Posts under APFS tag

200 Posts

Post

Replies

Boosts

Views

Activity

Issue with my MBA 2020
Hey guys I need urgent help,I accidentally erased my internal SSD and now I'm stuck in a bootloop and my SSD don't appear anywhere except terminal and disk utilities,like it doesn't show up when I try to reinstall mac os ,when I tried using a usb for reinstallation after guid partition and stuff ,I was shown that this disk can't be used for pre flight and I'm unable to use it either then if I click on get info of my SSD in disk utilities it shows that my disk is unbootable ,not verified and it shows that every byte of my SSD is used (whole 9 digits) please help me with this asap
0
1
539
Feb ’23
DISK NOT EJECTED PROPERLY ERROR: WHERE IS THE FIX?
I am fed up with you apple. Will you ever give us a solution for this error. Clearly your problem, not the drive. Issue started when I upgraded to Monterrey from Big Sur. I literally backed up my OS before upgrading. All these error broke my SSD as it now no longer works on any computer. So, I went out and bought a brand new Samsung 8 70EVO 500GB: Drive was unreadable but at least stable when plugged in out of the box. As soon as I reformatted the drive to APFS it started ejecting on it's own. Will you ever give us a fix or do we all have to move to another OS? Windows is terrible but at least I can use an SSD...
0
0
1k
Feb ’23
Cannot remount an APFS filesystem as read-write
I have a local APFS filesystem (sparsebundle disk image) mounted read-only: /dev/disk5s1 on /opt/homebrew (apfs, local, nodev, nosuid, read-only, journaled, noowners, nobrowse) There are no open files as reported by $ sudo lsof +f -- /opt/homebrew However, an attempt to remount via the -u and -w options fails with the following error: $ sudo mount -u -w /opt/homebrew mount_apfs: volume could not be mounted: Permission denied mount: /opt/homebrew failed with 66 Is there a configuration option that I'm missing?
0
0
1.3k
Feb ’23
Bye bye emojis
The emojis have stopped popping up on my keyboard and I cannot figure out how to fix I’ve updated I reset the keyboard I’ve removed and added back I’m super annoyed someone please help!!!!
1
0
589
Feb ’23
fix the errors in my code
import UIKit import AVFoundation class ViewController: UIViewController { @IBOutlet weak var player: UIImageView! @IBOutlet weak var enemy: UIImageView! @IBOutlet weak var scoreLabel: UILabel! @IBOutlet weak var gameOverLabel: UILabel! @IBOutlet weak var levelLabel: UILabel! @IBOutlet weak var powerUp: UIImageView! @IBOutlet weak var powerUpLabel: UILabel! var score = 0 var gameOver = false var level = 1 var powerUpActive = false var powerUpTime = 0 var backgroundMusic: AVAudioPlayer! var enemyDeathSound: AVAudioPlayer! var powerUpSound: AVAudioPlayer! override func viewDidLoad() { super.viewDidLoad() // Add swipe gestures let leftSwipe = UISwipeGestureRecognizer(target: self, action: #selector(swipeLeft)) leftSwipe.direction = .left view.addGestureRecognizer(leftSwipe) let rightSwipe = UISwipeGestureRecognizer(target: self, action: #selector(swipeRight)) rightSwipe.direction = .right view.addGestureRecognizer(rightSwipe) // Load sound effects loadSounds() // Start the enemy moving moveEnemy() // Start the game loop Timer.scheduledTimer(timeInterval: 0.01, target: self, selector: #selector(gameLoop), userInfo: nil, repeats: true) } func loadSounds() { let backgroundMusicPath = Bundle.main.path(forResource: "background", ofType: "mp3") let backgroundMusicUrl = URL(fileURLWithPath: backgroundMusicPath!) do { backgroundMusic = try AVAudioPlayer(contentsOf: backgroundMusicUrl) backgroundMusic.numberOfLoops = -1 backgroundMusic.prepareToPlay() backgroundMusic.play() } catch { print("Error loading background music") } let enemyDeathSoundPath = Bundle.main.path(forResource: "enemyDeath", ofType: "wav") let enemyDeathSoundUrl = URL(fileURLWithPath: enemyDeathSoundPath!) do { enemyDeathSound = try AVAudioPlayer(contentsOf: enemyDeathSoundUrl) enemyDeathSound.prepareToPlay() } catch { print("Error loading enemy death sound") } let powerUpSoundPath = Bundle.main.path(forResource: "powerUp", ofType: "wav") let powerUpSoundUrl = URL(fileURLWith
0
0
1k
Jan ’23
Multiple OKTA Login in PWA apps
Hi All, I have created a PWA app on react with OKTA as default login for the application, once we sign in the OKTA and install it as a PWA on the iOS device then it asks to sign again on OKTA if we open the app directly from the iOS device , is there any way that user needs to sign in only once in the PWA app itself ?
0
0
627
Jan ’23
battery health decreasing so fast
my battery health dropped 5% in one night 😩 i left it to charge at 11:30 PM i overslept and unplugged it at 3:50 AM. i dont drain my battery and i dont usually overcharge but was perplexed at the sudden big percentage drop. is this alarming? somebody help me please.
0
0
532
Jan ’23
recovering windows 10 partition from macOS 10.15.1
I have installed windows 10 on MacOS and have been using it since three years. Accidentally, while trying to increase the partition size of **BOOTCamp C:\ ** which has my very important data , in Disk Utility I have clicked on restore from my MACOS into windows (C drive)and after that I am unable to login to windows and I cannot see any windows patrician and my data either.I tried to used TestDisk but nothing worked. Can anyone help me to get my data back and restore windows partition.
0
0
525
Jan ’23
SMS amd Email links not Working
Hi there. After months of trying to find out what was causing this issue, which included moving my website to a different server, using a sub-domain and many other tries, I discovered the issue was a forwarding one. When forwarding is set on 301 (Permanent forwarding) my links work perfectly, but this means my IP address shows in the browser of those visiting, which is not ideal. When forwarding is set to 302 (Temporary and Framed) my <a href="mailto: and < href=”SMS: links no longer work. The ‘Tab’ links to other URLs are ok. 302 (Temporary and Framed)  now shows my website address which is preferred. If I go direct to my IP address and bypass any type of forwarding, everything works fine. This indicates that it’s definitely a forwarding issue. Now. THIS ONLY HAPPENS WITH iPHONES and iPADS. Yes I know this sounds impossible, but I’ve spent a long time proving it to be true. Windows, Androids etc all work fine, so the issue is definately on Apple devices.
0
0
610
Dec ’22
Hang in -[NSWorkspace isFilePackageAtPath:] causes MacOS to crash/kill my EndpointSecurity Client daemon
Hi. I develop an EndpointSecurity Client (running as root in the system-domain - a launchDaemon defined in /Library/LaunchDaemons/com.company.daemon-name.plist I register to few "AUTH" events, which I handle on a high-priority concurrent dispatch_queue, using fairly efficient code - so to ensure I meet the EndpointSecurity message deadlines. These are the event types I register for:  ES_EVENT_TYPE_AUTH_EXEC,  ES_EVENT_TYPE_AUTH_OPEN, ES_EVENT_TYPE_AUTH_CREATE, ES_EVENT_TYPE_AUTH_CLONE, ES_EVENT_TYPE_AUTH_RENAME, ES_EVENT_TYPE_AUTH_EXCHANGEDATA My daemon seems to handle events in very high loads without a hitch, usually takes round 0.1%-1% of the CPU and almost never more than 10-20MB of RAM - it's very lightweight, and works fine. HOWEVER - on some customer Macs (Enterprise Macs with lots of IT background processes on them - antivirus packages, software-updaters, and remote-control tools, I see crash logs of my tool, occurring usually when the Mac is unattended (late night, or Mac is asleep). They all have this in common. The crash reason: Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: Namespace ENDPOINTSECURITY, Code 2 EndpointSecurity client terminated because it failed to respond to a message before its deadline I've done fair statistics, and the minimum deadlines I get are ~30 seconds (LOTS OF TIME!!!) whereas my code usually takes no more than 10 milliseconds to respond to EndpointSecurity framework. But the crash log also shows that all "working threads" (code-blocks on my Event-Handling dispatch_queue) are stuck in the same OS call - namely: 6 AppKit 0x7ff80db366b4 -[NSWorkspace isFilePackageAtPath:] + 104 In most cases I have 6 or 8 such concurrent blocks pending. This is not the bottom of the stack - they all look like this: Thread 4:: Dispatch queue: Event Handling Queue 0 libsystem_kernel.dylib 0x7ff809f94e0e __getattrlist + 10 1 CoreServicesInternal 0x7ff80cffbe98 corePropertyProviderPrepareValues(__CFURL const*, __FileCache*, __CFString const* const*, void const**, long, void const*, __CFError**) + 798 2 CoreServicesInternal 0x7ff80cffbb19 prepareValuesForBitmap(__CFURL const*, __FileCache*, _FilePropertyBitmap*, __CFError**) + 394 3 CoreServicesInternal 0x7ff80cff8421 _FSURLCopyResourcePropertyForKeyInternal(__CFURL const*, __CFString const*, void*, void*, __CFError**, unsigned char) + 277 4 CoreFoundation 0x7ff80a084e50 CFURLCopyResourcePropertyForKey + 96 5 CoreFoundation 0x7ff80a09904e -[NSURL getResourceValue:forKey:error:] + 110 6 AppKit 0x7ff80db366b4 -[NSWorkspace isFilePackageAtPath:] + 104 7 ITProtector 0x10ed8da73 0x10ed58000 + 219763 Bottom line is my code - which calls NSWorkspace to determine if a file I need to Authorize is a bundle or not. My conclusion is that the call hangs forever because (Maybe?) LaunchServices, or the File-system service are busy or pushing back or very busy doing something - I don't know, and I can't reproduce on any of my Macs - As I say this randomly happens on customer Macs when they're unattended. I now have two distinct problems using -[NSWorkspace isFilePackageAtPath:] (or any alternative I found so far). The call is usually very fast - but now I can't know in advance how much time it will take. The call and all its alternatives - are synchronous. Haven't found asynchronous replacement I could call, to introduce my own "timeouts" on the issue. I need help here - what can cause this API to hang for over a minute? Where to start looking? last - What activity of the OS can impose such long block on this fairly basic File-system query? Any idea or suggestion or lead would be greatly appreciated. Thanks! Contents of sample ITProtector.ips crash log
3
0
1.8k
Dec ’22
Getting old filesystem events - check which process deleted a specific folder
After macOS minor upgrade of Monterey I've noticed that a directory of mine that lies under /Library/Application Support/myCompany/myProj/myFolder has been mysteriously deleted. Is there a way to check in retrospect which process deleted my directory ? I know of fs_usage, but it's used to record ongoing file activities... the question is how to get file auditing event from the past. Thanks
1
0
1.1k
Dec ’22
Issue with my MBA 2020
Hey guys I need urgent help,I accidentally erased my internal SSD and now I'm stuck in a bootloop and my SSD don't appear anywhere except terminal and disk utilities,like it doesn't show up when I try to reinstall mac os ,when I tried using a usb for reinstallation after guid partition and stuff ,I was shown that this disk can't be used for pre flight and I'm unable to use it either then if I click on get info of my SSD in disk utilities it shows that my disk is unbootable ,not verified and it shows that every byte of my SSD is used (whole 9 digits) please help me with this asap
Replies
0
Boosts
1
Views
539
Activity
Feb ’23
DISK NOT EJECTED PROPERLY ERROR: WHERE IS THE FIX?
I am fed up with you apple. Will you ever give us a solution for this error. Clearly your problem, not the drive. Issue started when I upgraded to Monterrey from Big Sur. I literally backed up my OS before upgrading. All these error broke my SSD as it now no longer works on any computer. So, I went out and bought a brand new Samsung 8 70EVO 500GB: Drive was unreadable but at least stable when plugged in out of the box. As soon as I reformatted the drive to APFS it started ejecting on it's own. Will you ever give us a fix or do we all have to move to another OS? Windows is terrible but at least I can use an SSD...
Replies
0
Boosts
0
Views
1k
Activity
Feb ’23
Cannot remount an APFS filesystem as read-write
I have a local APFS filesystem (sparsebundle disk image) mounted read-only: /dev/disk5s1 on /opt/homebrew (apfs, local, nodev, nosuid, read-only, journaled, noowners, nobrowse) There are no open files as reported by $ sudo lsof +f -- /opt/homebrew However, an attempt to remount via the -u and -w options fails with the following error: $ sudo mount -u -w /opt/homebrew mount_apfs: volume could not be mounted: Permission denied mount: /opt/homebrew failed with 66 Is there a configuration option that I'm missing?
Replies
0
Boosts
0
Views
1.3k
Activity
Feb ’23
Bye bye emojis
The emojis have stopped popping up on my keyboard and I cannot figure out how to fix I’ve updated I reset the keyboard I’ve removed and added back I’m super annoyed someone please help!!!!
Replies
1
Boosts
0
Views
589
Activity
Feb ’23
fix the errors in my code
import UIKit import AVFoundation class ViewController: UIViewController { @IBOutlet weak var player: UIImageView! @IBOutlet weak var enemy: UIImageView! @IBOutlet weak var scoreLabel: UILabel! @IBOutlet weak var gameOverLabel: UILabel! @IBOutlet weak var levelLabel: UILabel! @IBOutlet weak var powerUp: UIImageView! @IBOutlet weak var powerUpLabel: UILabel! var score = 0 var gameOver = false var level = 1 var powerUpActive = false var powerUpTime = 0 var backgroundMusic: AVAudioPlayer! var enemyDeathSound: AVAudioPlayer! var powerUpSound: AVAudioPlayer! override func viewDidLoad() { super.viewDidLoad() // Add swipe gestures let leftSwipe = UISwipeGestureRecognizer(target: self, action: #selector(swipeLeft)) leftSwipe.direction = .left view.addGestureRecognizer(leftSwipe) let rightSwipe = UISwipeGestureRecognizer(target: self, action: #selector(swipeRight)) rightSwipe.direction = .right view.addGestureRecognizer(rightSwipe) // Load sound effects loadSounds() // Start the enemy moving moveEnemy() // Start the game loop Timer.scheduledTimer(timeInterval: 0.01, target: self, selector: #selector(gameLoop), userInfo: nil, repeats: true) } func loadSounds() { let backgroundMusicPath = Bundle.main.path(forResource: "background", ofType: "mp3") let backgroundMusicUrl = URL(fileURLWithPath: backgroundMusicPath!) do { backgroundMusic = try AVAudioPlayer(contentsOf: backgroundMusicUrl) backgroundMusic.numberOfLoops = -1 backgroundMusic.prepareToPlay() backgroundMusic.play() } catch { print("Error loading background music") } let enemyDeathSoundPath = Bundle.main.path(forResource: "enemyDeath", ofType: "wav") let enemyDeathSoundUrl = URL(fileURLWithPath: enemyDeathSoundPath!) do { enemyDeathSound = try AVAudioPlayer(contentsOf: enemyDeathSoundUrl) enemyDeathSound.prepareToPlay() } catch { print("Error loading enemy death sound") } let powerUpSoundPath = Bundle.main.path(forResource: "powerUp", ofType: "wav") let powerUpSoundUrl = URL(fileURLWith
Replies
0
Boosts
0
Views
1k
Activity
Jan ’23
Multiple OKTA Login in PWA apps
Hi All, I have created a PWA app on react with OKTA as default login for the application, once we sign in the OKTA and install it as a PWA on the iOS device then it asks to sign again on OKTA if we open the app directly from the iOS device , is there any way that user needs to sign in only once in the PWA app itself ?
Replies
0
Boosts
0
Views
627
Activity
Jan ’23
battery health decreasing so fast
my battery health dropped 5% in one night 😩 i left it to charge at 11:30 PM i overslept and unplugged it at 3:50 AM. i dont drain my battery and i dont usually overcharge but was perplexed at the sudden big percentage drop. is this alarming? somebody help me please.
Replies
0
Boosts
0
Views
532
Activity
Jan ’23
recovering windows 10 partition from macOS 10.15.1
I have installed windows 10 on MacOS and have been using it since three years. Accidentally, while trying to increase the partition size of **BOOTCamp C:\ ** which has my very important data , in Disk Utility I have clicked on restore from my MACOS into windows (C drive)and after that I am unable to login to windows and I cannot see any windows patrician and my data either.I tried to used TestDisk but nothing worked. Can anyone help me to get my data back and restore windows partition.
Replies
0
Boosts
0
Views
525
Activity
Jan ’23
SMS amd Email links not Working
Hi there. After months of trying to find out what was causing this issue, which included moving my website to a different server, using a sub-domain and many other tries, I discovered the issue was a forwarding one. When forwarding is set on 301 (Permanent forwarding) my links work perfectly, but this means my IP address shows in the browser of those visiting, which is not ideal. When forwarding is set to 302 (Temporary and Framed) my <a href="mailto: and < href=”SMS: links no longer work. The ‘Tab’ links to other URLs are ok. 302 (Temporary and Framed)  now shows my website address which is preferred. If I go direct to my IP address and bypass any type of forwarding, everything works fine. This indicates that it’s definitely a forwarding issue. Now. THIS ONLY HAPPENS WITH iPHONES and iPADS. Yes I know this sounds impossible, but I’ve spent a long time proving it to be true. Windows, Androids etc all work fine, so the issue is definately on Apple devices.
Replies
0
Boosts
0
Views
610
Activity
Dec ’22
Hang in -[NSWorkspace isFilePackageAtPath:] causes MacOS to crash/kill my EndpointSecurity Client daemon
Hi. I develop an EndpointSecurity Client (running as root in the system-domain - a launchDaemon defined in /Library/LaunchDaemons/com.company.daemon-name.plist I register to few "AUTH" events, which I handle on a high-priority concurrent dispatch_queue, using fairly efficient code - so to ensure I meet the EndpointSecurity message deadlines. These are the event types I register for:  ES_EVENT_TYPE_AUTH_EXEC,  ES_EVENT_TYPE_AUTH_OPEN, ES_EVENT_TYPE_AUTH_CREATE, ES_EVENT_TYPE_AUTH_CLONE, ES_EVENT_TYPE_AUTH_RENAME, ES_EVENT_TYPE_AUTH_EXCHANGEDATA My daemon seems to handle events in very high loads without a hitch, usually takes round 0.1%-1% of the CPU and almost never more than 10-20MB of RAM - it's very lightweight, and works fine. HOWEVER - on some customer Macs (Enterprise Macs with lots of IT background processes on them - antivirus packages, software-updaters, and remote-control tools, I see crash logs of my tool, occurring usually when the Mac is unattended (late night, or Mac is asleep). They all have this in common. The crash reason: Exception Codes: 0x0000000000000000, 0x0000000000000000 Termination Reason: Namespace ENDPOINTSECURITY, Code 2 EndpointSecurity client terminated because it failed to respond to a message before its deadline I've done fair statistics, and the minimum deadlines I get are ~30 seconds (LOTS OF TIME!!!) whereas my code usually takes no more than 10 milliseconds to respond to EndpointSecurity framework. But the crash log also shows that all "working threads" (code-blocks on my Event-Handling dispatch_queue) are stuck in the same OS call - namely: 6 AppKit 0x7ff80db366b4 -[NSWorkspace isFilePackageAtPath:] + 104 In most cases I have 6 or 8 such concurrent blocks pending. This is not the bottom of the stack - they all look like this: Thread 4:: Dispatch queue: Event Handling Queue 0 libsystem_kernel.dylib 0x7ff809f94e0e __getattrlist + 10 1 CoreServicesInternal 0x7ff80cffbe98 corePropertyProviderPrepareValues(__CFURL const*, __FileCache*, __CFString const* const*, void const**, long, void const*, __CFError**) + 798 2 CoreServicesInternal 0x7ff80cffbb19 prepareValuesForBitmap(__CFURL const*, __FileCache*, _FilePropertyBitmap*, __CFError**) + 394 3 CoreServicesInternal 0x7ff80cff8421 _FSURLCopyResourcePropertyForKeyInternal(__CFURL const*, __CFString const*, void*, void*, __CFError**, unsigned char) + 277 4 CoreFoundation 0x7ff80a084e50 CFURLCopyResourcePropertyForKey + 96 5 CoreFoundation 0x7ff80a09904e -[NSURL getResourceValue:forKey:error:] + 110 6 AppKit 0x7ff80db366b4 -[NSWorkspace isFilePackageAtPath:] + 104 7 ITProtector 0x10ed8da73 0x10ed58000 + 219763 Bottom line is my code - which calls NSWorkspace to determine if a file I need to Authorize is a bundle or not. My conclusion is that the call hangs forever because (Maybe?) LaunchServices, or the File-system service are busy or pushing back or very busy doing something - I don't know, and I can't reproduce on any of my Macs - As I say this randomly happens on customer Macs when they're unattended. I now have two distinct problems using -[NSWorkspace isFilePackageAtPath:] (or any alternative I found so far). The call is usually very fast - but now I can't know in advance how much time it will take. The call and all its alternatives - are synchronous. Haven't found asynchronous replacement I could call, to introduce my own "timeouts" on the issue. I need help here - what can cause this API to hang for over a minute? Where to start looking? last - What activity of the OS can impose such long block on this fairly basic File-system query? Any idea or suggestion or lead would be greatly appreciated. Thanks! Contents of sample ITProtector.ips crash log
Replies
3
Boosts
0
Views
1.8k
Activity
Dec ’22
Getting old filesystem events - check which process deleted a specific folder
After macOS minor upgrade of Monterey I've noticed that a directory of mine that lies under /Library/Application Support/myCompany/myProj/myFolder has been mysteriously deleted. Is there a way to check in retrospect which process deleted my directory ? I know of fs_usage, but it's used to record ongoing file activities... the question is how to get file auditing event from the past. Thanks
Replies
1
Boosts
0
Views
1.1k
Activity
Dec ’22