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

86 Posts
Sort by:

Post

Replies

Boosts

Views

Activity

Random Shutdown in Big Sur (ThunderboltNHI) driver problem
Hey guys, I have the problem that my 2013 MacBook crashes frequently since upgrading to Big Sur. This means that all of a sudden the screen freezes, the fans turn up and all of a sudden the MacBook is off. In Catalina, through research I found out that it's because of the Thunderbolt driver (AppleThunderboltNHI.Kext etc.), which I had always renamed in Catalina using recovery mode (... .kext.BAK). This solved the problem. But now since Big Sur I can't rename the Kext files anymore because I'm only in read-only mode. So I wanted to ask here if there is a possibility to rename the files again? Otherwise the MacBook still runs really well!
65
0
35k
Oct ’23
Diskmanagement.disenter error 49218
Hello everyone, I'm having a little issue with mounting my external hard drive lately. I've tried quite a few methods in hope of getting it to work again, but so far, no luck. I hope someone can help me solve this issue, or those who have the same problem may also share your insights. My external hard drive was working fine about a week ago. But one day, I ejected the hard drive and the icon disappeared, so I thought it was safe to unplug it. When I did, it said the hard drive was not properly removed. It still works fine when I use it the next day, but the same thing happened. It said the drive was not properly removed after I ejected the drive, waited for the icon to disappear, and then unplugged the drive. After that, it never works again, and the attached images are the info I got when I tried to mount or run first aid on this drive. Please help & thank you in advance! Computer: 27" iMac - MacOS Monterey External Hard Drive: WD_Black 4TB. APFS encrypted
68
10
62k
Jan ’24
"Couldn't communicate with helper application"
My 2013 MacBook Pro computer died but I had all my files on iClould One Drive. But now, with my new MacBook Pro when I see a file that I had saved before on the iCloud drive, there is a little cloud symbol with a down error and a couple of people icons next to it. But when I try to open any file I get the error statement: "Couldn't communicate with the helper application". How can I access those files?
2
0
1.3k
Oct ’23
DiskArbitration and APFS container recognition
DADiskCopyDescription() give basic information for disk and partition but not how these info elements are linked together. By example how to get the volume parent container ? How to decode de CFSTR given by DADiskCopyDescription() ? When does DAMediaContent hold "GUID_partition_scheme" or "FDisk_partition_scheme" ? For volume DAMediaContent is something like "C12A7328-F81F-11D2-BA4B-00A0C93EC93B" (with volume name in DAMediaName). But DAMediaContent with such numeric value is not always volume (DAMediaName and DAVolumeKind are then empty). And sometime DAMediaContent is empty. Where can I found documentation about DADiskCopyDescription() and the way to get APFS volume\container childs and parent
1
0
710
Sep ’23
Build error
unable to open dependencies file (/Users/infinicue/Desktop/Salvus/ios/DerivedData/Salvus/Build/Intermediates.noindex/Salvus.build/Debug-iphonesimulator/Salvus.build/DerivedSources/.d)
1
0
680
Aug ’23
com.apple.DiskManagement.disenter error -119930868 on external drive
Hi, Hope you are all fine ! I had a problem on several disk due to bad unmounting caused by Caldigit TS4. The TS4 has/had problem managing hard drives and sleep of the computer… The problem appeared on internal drives pugged into a OWC Dock. The dock is TB2 with Apple TB2 to TB3 pugged into the Caldigit TS4. One of the drives is a 4TB Seagate Exos Enterprise that is brand new and I'm almost sure I formatted it in APFS when using it for the first time. The other/s are 2TB or 3TB but almost sure at that time I was using HFS. The drives are seen But no way to SOS… This particular 4 TB drive seems to respond mechanically well, like spinning when tryning to acces, going to sleep…And is brand new… After reading a few (many actually ;) ) pages on Apple forums I've found, I've tried the diskutil way on terminal… but having some problem with syntax, sometimes it worked sometimes I think I'm not writing correctly so it does nothing… If I understand well this error com.apple.DiskManagement.disenter error -119930868 Is a directory problem. A long time ago I used Disk Warrior a lot in the G4/G5 age ;) But it seems it doesn't handle APFS… I've run a scan with Stellar Recovery and this software seems to see all my files… The Hard drive seemed to act normally during all the process… But it seems it doesn't just rebuild the directory and will recover all the files and put them like video in video folder…pictures in picture folder… so I'll have my files but a great mess… I've also tried rhe FSCK command…but didn't undertood enough to get something good… So my question are : As the data seems to be there and the drive still working fine, is there a way to make Mac Os or a software rebuild the directory like Disk Warrior used to do. And not just back uping the files a la Stellar recovery. Could someone make a comprehensive diskutil / fsck tutorial for noobs ;) After the fix , if successful … should I throw this drive away or the prob is only a Mac OS bug… Can the adapted TB2 to TB3 add source of problem ? Can the adapted TB2 to TB3 ON Caldigit TB port add source of problem ? AFPS is still recommanded for external HD Could someone explain those DiskManagement.disenter error Best .V
3
0
1.8k
Aug ’23
Failed to set app extension placeholders
Details Simulator device returned an error for the requested operation. Domain: IXErrorDomain Code: 2 Failure Reason: Failed to create promise. User Info: { DVTErrorCreationDateKey = "2023-04-22 20:00:00 +0000"; FunctionName = "+[IXPlaceholder _placeholderForBundle:client:withParent:installType:metadata:placeholderType:mayBeDeltaPackage:error:]"; IDERunOperationFailingWorker = IDELaunchiPhoneSimulatorLauncher; SimCallingSelector = "installApplication:withOptions:error:"; SourceFileLine = 884; } Failed to set app extension placeholders for com.**.**** Domain: IXErrorDomain Code: 2 Failure Reason: Failed to create promise. User Info: { FunctionName = "+[IXPlaceholder _placeholderForBundle:client:withParent:installType:metadata:placeholderType:mayBeDeltaPackage:error:]"; SourceFileLine = 884; } Attempted to set app extension placeholder promise with bundle ID com..********** that does not match required prefix of com..*****. for parent Domain: IXErrorDomain Code: 8 Failure Reason: Mismatched bundle IDs. User Info: { FunctionName = "-[IXPlaceholder setAppExtensionPlaceholderPromises:error:]"; SourceFileLine = 1392; } Analytics Event: com.apple.dt.IDERunOperationWorkerFinished : { "device_model" = "iPhone14,5"; "device_osBuild" = "16.4 (20E247)"; "device_platform" = "com.apple.platform.iphonesimulator"; "launchSession_schemeCommand" = Run; "launchSession_state" = 1; "launchSession_targetArch" = arm64; "operation_duration_ms" = 105; "operation_errorCode" = 2; "operation_errorDomain" = IXErrorDomain; "operation_errorWorker" = IDELaunchiPhoneSimulatorLauncher; "operation_name" = IDERunOperationWorkerGroup; "param_consoleMode" = 0; "param_debugger_attachToExtensions" = 0; "param_debugger_attachToXPC" = 1; "param_debugger_type" = 3; "param_destination_isProxy" = 0; "param_destination_platform" = "com.apple.platform.iphonesimulator"; "param_diag_MainThreadChecker_stopOnIssue" = 0; "param_diag_MallocStackLogging_enableDuringAttach" = 0; "param_diag_MallocStackLogging_enableForXPC" = 1; "param_diag_allowLocationSimulation" = 1; "param_diag_checker_tpc_enable" = 1; "param_diag_gpu_frameCapture_enable" = 0; "param_diag_gpu_shaderValidation_enable" = 0; "param_diag_gpu_validation_enable" = 0; "param_diag_memoryGraphOnResourceException" = 0; "param_diag_queueDebugging_enable" = 1; "param_diag_runtimeProfile_generate" = 0; "param_diag_sanitizer_asan_enable" = 0; "param_diag_sanitizer_tsan_enable" = 0; "param_diag_sanitizer_tsan_stopOnIssue" = 0; "param_diag_sanitizer_ubsan_stopOnIssue" = 0; "param_diag_showNonLocalizedStrings" = 0; "param_diag_viewDebugging_enabled" = 1; "param_diag_viewDebugging_insertDylibOnLaunch" = 1; "param_install_style" = 0; "param_launcher_UID" = 2; "param_launcher_allowDeviceSensorReplayData" = 0; "param_launcher_kind" = 0; "param_launcher_style" = 0; "param_launcher_substyle" = 0; "param_runnable_appExtensionHostRunMode" = 0; "param_runnable_productType" = "com.apple.product-type.application"; "param_testing_launchedForTesting" = 0; "param_testing_suppressSimulatorApp" = 0; "param_testing_usingCLI" = 0; "sdk_canonicalName" = "iphonesimulator16.4"; "sdk_osVersion" = "16.4"; "sdk_variant" = iphonesimulator; } System Information macOS Version 13.3.1 (Build 22E261) Xcode 14.3 (21812) (Build 14E222b) Timestamp: 2023-04-22T21:00:00+01:00
2
0
1.4k
Oct ’23
Delete/uninstall MacOS without wiping volume?
I have variants of MacOS installed on external SSD's (using APFS) that I no longer need, mixed with large data sets that I do need. I'd like to wipe the OS on a volume without erasing the whole volume, to avoid the hours-long data copy/archive before wiping the volume to wipe the OS. Is that possible? Moving forward, I can try to segregate data to other volumes, but the production deployment is OS and data on the same volume (again, to avoid copies), so it's not ideal. (I realize it's not a high-traffic use case and unlikely to be supported.) Thanks...
1
0
603
Jul ’23
File system changes introduced in iOS 17
File system changes introduced in iOS 17 As part of iOS 17, tvOS 17, and watchOS 10, the system has reorganized where applications and their data containers are stored. In previous systems, both lived within the same volume but, starting in iOS 17, they will be stored on different volumes. What does this mean for you? Copying large amounts of data from the app bundle to a data container will take longer than in previous versions of iOS. Previously that copy would have occurred as an APFS file clone, but now the operation will occur as a standard copy, which may take much significantly longer. Because the data will need to be fully duplicated, storage usage will increase more than was the case in previous versions. You should minimize the data they copy out of their app bundle and avoid any unnecessary duplication of data between the app bundle and data container. When upgrading from previous system version, splitting the data into separate volumes may mean that there is insufficient space for all existing apps and their data. If this occurs, the app's data container will remain on the device, preserving the user's data, while the app bundle itself is removed using the same mechanism as "Offload Unused Apps". The user can then restore the app once they've freed sufficient space for the app to install. Revision History 2023-07-11 First posted
0
0
2.1k
Jul ’23
How can I move everything related to Xcode to external drive?
I have a latest MBAir with only 256Gb which is a relatively small amount of space. I'm working in Xcode and it ate about 60Gb of space on my Mac. I have successfully tossed the .app itself and relocated the 'DerivedData" and "Archives" to the external SSD but there are still plenty of gigs lying in /Users/myname/Library/Developer. At least there are Xcode/UserData which takes 15Gb and CoreSimulator which takes additional 15Gb. It's not everything, there is about 20 more gigabytes but I want at least to move these. How would I do so?
1
0
810
Jul ’23
Strange chinese character next to the iPhone folder name and different format of images
I was wondering if anyone has same problem. When i plug the iphone to my windows laptop the folders in iphone showing a chinese word next to the folder name. Also images format having different type of word and when i copy them to the windows, it doesn't recognize them as images. I have already erase the iphone and when plug again, same issue is there. Please refer attached two pics. I'm running IOS 17 public beta.
10
2
2.1k
Aug ’23
Maui sample app not downloading to iPhone using visual studio
I am trying to download a sample MAUI project provided by visual studio 2022 version 17.7.3 and xcode version 15_6. The program runs on the android emulator and maccatalyst but does not compile and run on actual device because NewsstandKit is missing from the new Xcode release. I am not using NewsstandKit and not really sure what even does. I think there is something wrong with Xcode version 15_6 as it does not allow a build to go to the iPhone. Version 15 doesn't work either. I tried version 14.3, 15, 15.6 upgraded my iPhone and mac versions and so forth. I have been trying to do one simple task for over a month. Has anybody had this problem? The release notes say that NewsstandKit was removed from 15_6 so why is it still trying to link in?
0
0
401
Aug ’23
Force Refresh Volume to Get Current Amount of Free Bytes From File System Without Any Caches
Hello, in my app I need the current amount of free space on a certain volume. I use the following code to the this information: if let mountedVolumeURLs = FileManager.default.mountedVolumeURLs(includingResourceValuesForKeys: nil) { for volumeUrl in mountedVolumeURLs { guard let values = try? self.url.resourceValues(forKeys: [.volumeTotalCapacityKey, .volumeAvailableCapacityKey]) else { continue } let totalBytes = values.allValues[.volumeTotalCapacityKey] as? UInt64 ?? 0 let freeBytes = values.allValues[.volumeAvailableCapacityKey] as? UInt64 ?? 0 // This is not always correct. } } When writing to a volume and then calling the code above, a wrong amount is returned. I suspect that there is still some cacheing going on. Is there any function that I can call to get this information from the file system without any cacheing? I guess an alternative would be to get a list of all files, get their sizes, add them up and subtract that number from the total bytes of the volume. But maybe there is a more elegant solution. I also tried something like this: let handle = try FileDescriptor.open(volumeUrl.path, .writeOnly, options: .create, permissions: .ownerReadWrite, retryOnInterrupt: true) fcntl(handle.rawValue, F_FULLFSYNC) But this did not help. I would appreciate any help. Regards
1
0
428
Aug ’23
Deleting app while its running &
I'm writing an uninstaller, lets call it UNINS, for my developer id signed Mac app, lets call it APP(it contains system extensions) . UNINS is supposed to delete APP and its associated data. But after INS is done, it needs to delete itself. From my experience, when an app is running and we try to delete it, OS does not allow this operation. How to do this correctly? During uninstallation, if we delete an app from /Applications folder, do we also manually need to delete its data from ~/Library/Containers for all users ? Or this is done automatically by OS? if I need to unload launchdaemon that we installed, can this UNINS do that ? (Because I think unloading daemons require root priveleges)
5
0
722
Sep ’23
Not able join disk partition in M1 mac
Lately, I had Ubuntu in dual boot on an 82 GB partition and macOS on a 162 GB partition. After removing Ubuntu, I attempted to merge these partitions using Disk Utility, but I keep encountering persistent errors like "Operation failed..." "An internal state error occurred." Okay, I got it I can still the 82 GB volume as partition like people use in windows but I don't wanna do that I want a single volume with all 245 GB storage. Currently there's nothing in my 82 GB volume and macOS is installed in 162 GB volume. I've already reached out to Apple Support and reinstalled macOS twice, but the problem persists. Any advice on how to resolve this?
0
0
313
Aug ’23