it is normal that my phone restarts approximately every 5 minutes
APFS
RSS for tagApple File System is the default file system for iOS 10.3 and later, and for macOS High Sierra and later.
Posts under APFS tag
85 Posts
Sort by:
Post
Replies
Boosts
Views
Activity
I'm looking for a solution to install a binary on a macOS system where System Integrity Protection (SIP) is enabled, and the target installation location is protected by SIP. I need to achieve this without booting into recovery mode to disable SIP.
Is there any method to achieve this, such as by creating separate packages that can handle SIP-protected locations, developing or using installer applications capable of navigating SIP constraints, leveraging specific entitlements or permissions to facilitate the installation, or utilising Mobile Device Management (MDM) solutions for deployment?
If anyone has experience or insights on any reliable ways to accomplish this, please share any detailed steps, tools, or best practices that could be useful.
Anyone download this yet and have your system data **** up in size? Lesson learned to never download beta of anything. Can barely work in Xcode 16 now, another beta I should not have downloaded :/
Anyway to reduce this size of system data properly?
Thanks!
Hi there,
From "Platforms State of the Union" Video macOS section I know macOS has new API of user space file system
and iPhone mirroring, and delivers new APIs including user space file system support and major improvements to MapKit.
But I lookup the API diff, I don't find any added API. Where can I find the user space file system API ? I really want to develop an APP which need user space file system API.
Platforms State of the Union Video corresponding timeline detail:
https://youtu.be/YJZ5YcMsgD4?t=3153
I'm using a file descriptor to write into a file. I've encountered a problem where if the underlying file is removed or recreated, the file descriptor becomes unstable. I have no reliable way to confirm if it's writing on the expected file.
let url = URL(fileURLWithPath: "/path/")
try FileManager.default.removeItem(at: url)
FileManager.default.createFile(atPath: url.path, contents: .empty)
let filePath = FilePath(url.path)
var fileDescriptor = try FileDescriptor.open(filePath, .readWrite)
// The file is recreated - may be done from a different process.
try FileManager.default.removeItem(at: url) // L9
FileManager.default.createFile(atPath: url.path, contents: .empty) // L10
let dataToWrite = Data([1,1,1,1])
try fileDescriptor.writeAll(dataToWrite) // L13
let dataWritten = try Data(contentsOf: url)
print(dataToWrite == dataWritten) // false
I would expect L13 to result in an error. Given it doesn't:
Is there a way to determine where fileDescriptor is writing?
Is there a way to ensure that fileDescriptor is writing the content in the expected filePath?
Hello,
It is possible to encrypt a mac's hard-drive with Filevault.
All home user folders are encrypted with the same encryption key. (This is the same encryption key for the whole hard-drive).
This encryption key is encrypted with user password. But i don't understand how it works when there are multiple user accounts. Maybe there is a table: The same encryption key is stored several times (one per user account) ?
Is there a way for a user to read the filevault encryption key ?
Thanks
Hi,
I’m developing a program which requires writing files to a volume mounted on a remote server.
I've set up the volume on the server and shared a folder within there using a sharing-only account as a first test. The permissions are set to allow read and write for the sharing-only user in both the parent volume and the shared folder within it.
However it will only let me access the directory over the network if I enable “Allow full disk access for all users” within the sharing settings in the server.
What does this setting actually do? If I disable this option and then disable file sharing all together and then re-enable, it will switch that setting back on. It seems to tie in with the process smbd getting “full disk access” even though that process runs as root anyway.
Allow full disk access for all users doesn't seem to grant my sharing-only user any more access than I’ve defined locally so I‘m really confused as to its use and why I need it for this to work.
I’m on macOS Sonoma 14.4 for both systems.
I noticed that I have duplicate Apps on my iPhone!
I've signed up for the Public Beta program, so this might be a feature/bug in the Beta.
What I first noticed was that one of my apps showed up in the Doc (I don't remember putting it there) a few days ago, and in looking around, I still have the same app in a folder on my home screen. I thought this could be a nice feature allowing me quick access to it from the Dock and from my folder, but it wasn't the app that I'd want there.
I thought I might be able to move it off the dock and back to the folder, but when I did that, the app showed up twice in the folder! I moved a different app to the dock, and it disappeared from the folder which is what I'd expect.
So...if I delete 1 of the duplicates in the folder (or from the dock), will that delete both?
Here you can see the Alula app in both the 'Remote Control' folder and the Dock:
Here too (although the dock is fuzzy because the folder is open):
I moved the app from the dock back to the folder, and now there are two there:
Here's the Public Beta that I'm running
I have an ansible provisioner that is being triggered, but keeps failing because it cannot write a file out under /System/Volumes/Data/home. There are no files in that directory to clean up. When I do a df it shows that filesystem mount size as 0Bi.
I ran the disk utility, but that did not resolve it either. Any help would be greatly appreciated. This is blocking my local development.
I'm currently trying to develop a transparent data encryption(TDE) system on MacOS 12.6.8. Our company has its own file encryption format. In order to facilitate safe and convenient file transfer between Windows and Mac platforms, we need to develop a TDE system on the Mac platform (on the Windows platform, we have developed such a system based on the Minifilter framework).
I tried to implement this system using a MacFuse based file system and the Endpoint Security system extension, but found that this did not allow complete control of files on the Mac system. For example, when you use Finder to copy an encrypted file, the decrypted data will be copied out. I'm guessing this might be due to Finder or some other system process cache.
By referring to the current product introductions of other companies, I learned that the current TDE systems on Mac systems are all based on kernel extension. But I noticed that Apple no longer encourages kernel extension development, and the Mac kernel has fewer and fewer APIs open to development.
So I would like to ask is it still feasible to develop a TDE system based on the kernel extension?
Hi, so I have this case where I would like the user to pick a folder where they want to create a file/folder using UIDocumentPicker/Browser and I make the file using open() in cpp and use its fd to read/write to the file. Now, the first thing is I have to call startAccessingSecurityScopedResource() on the directory url, then I make the file, get its fd(file descriptor) and I leave this makefile() function.
Every startAccessingSecurityScopedResource() needs to be matched with a stopstartAccessingSecurityScopedResource().
So my question is do I 'have' to call stopAccessingSecurityScopedResource() 'just before' calling close() on the fd.
Or is it fine to call it after I have made the fd i.e., at the end of the makefile() function?
In the tests I did it seems that once the fd is opened, even if stopAccessingSecurityScopedResource() is called on it(the directory), I can continue to read/write from the fd until I close() the fd?
So, I'm looking into startaccessingsecurityscopedresource() function and from my current understanding this is to get temporary access to files/folders you don't implicitly have access to i.e., that don't belong to your sandbox. I can understand what it means wrt macOS, iOS, iPadOS, but what does it mean in watchOS and tvOS where there isn't any file sharing between different apps? And what is it's relevance wrt using iCloud (if there is any?)
Dear Apple Developer Forum Community, I hope this message finds you well. I am writing to seek assistance regarding an error I encountered while attempting to create a Vedic content in the app from the one YouTube link.
I have been unsuccessful in resolving it. I am reaching out to the community in the hope that someone might have encountered a similar issue or have expertise in troubleshooting Xcode errors. Any guidance, suggestions, or solutions would be greatly appreciated. Thank you very much for your time and assistance.
Sincerely,
Zipzy [games]
Is anyone experiencing super slow finder functions related to Indexing and Spotlight? Folder hierarchy access is extremely slow.
Does Sonoma 14.3.x address any of these issues? Workflow is hampered with this OS and creating productivity limitations which
are not acceptable. Please advise. Thank you.
I've been experiencing an issue that has causing me a lot of problems, as various apps including Whatsapp, Phone pay, paytm, youtube, galaery, and more will randomly log out, and reset back to their inital state as if I just installed it on a clean phone. Apps like Whatsapp and Telegram will have lost all of their chat history, even if it was backup up on iCloud.
I'm at a total loss as to what might be causing this problem after restoring the phone multiple times (the last time without restoring to a backup).
I m using iphone 13 pro max.
I m from new delhi india.
Is there an API that allows mounting a volume, just like DADiskMount(), but that also accepts a password or automatically requests keychain access for encrypted volumes? Could be APFS or CoreStorage volumes. How do you mount those programmatically?
We are trying to read disk sectors raw Data. Sample code can be found at the bottom.
For external drive, it is working fine. We are able to see raw data which is not zero.
For internal ssd APFS drive, We only get data filled with zeroes.
We have tried with System Integrity Protection enabling and disabling.
Please let us know Why same API failing for internal APFS drive?
Is there any specific API available for reading raw data of internal APFS drive?
#include <fcntl.h>
#include <unistd.h>
#include <iomanip>
int main() {
// Adjust this to your disk device on macOS
const char* diskPath = "/dev/rdisk1"; //internal SSD device on macOS
// Size of a sector (usually 4096 bytes for most disks on macOS)
const int sectorSize = 4096;
// Number of sectors you want to read
const int numSectors = 8;
// Starting sector number
off_t startSector = 0;
// Open the disk device using low-level file I/O
int diskFile = open(diskPath, O_RDONLY);
if (diskFile == -1) {
std::cerr << "Error opening disk file." << std::endl;
return 1;
}
// Read multiple sectors into a buffer
char buffer[numSectors * sectorSize];
ssize_t bytesRead = pread(diskFile, buffer, numSectors * sectorSize, startSector * sectorSize);
// Close the disk file
close(diskFile);
if (bytesRead != numSectors * sectorSize) {
std::cerr << "Error reading sectors." << std::endl;
return 1;
}
// Display the contents of the sectors in hex
for (int i = 0; i < numSectors * sectorSize; ++i) {
std::cout << std::hex << std::setw(2) << std::setfill('0') << (int)(unsigned char)buffer[i] << " ";
if ((i + 1) % 16 == 0) {
std::cout << std::endl;
}
}
return 0;
}
Im trying to organize photos from a shared photo library so that there is more organization using albums, or folders, or any other logical structure. If you have any suggestions on how I might do this so that everyone using the shared library also has the same organizational view, that would be appreciated. Thanks very much.
My App Rejected 4.3 Design: Spam
What does that mean exactly?
I took extra pictures with the phone from the app
and upload to APP Store
and the same thing over and over again (Guideline 4.3 - Design - Spam)
just the question
Why don't you want to unlock it?
what is spam?
The APP Or the pictures?
If the APP is spam why?
That means
One user cannot create two different websites
with Various APP
An e.g. I have a social network I want to do
then a dating site
On the dating app I only get a message saying it's spam
Funny what's in an APP is spam?
Because dating app?
Or can a user not make multiple page APPs because it almost looks like this?
Then that means BMW can't make new BMWs because the new BWM also has 4 doors and 4 wheels
or how should I understand that?
which is still funny
on Google Play the same APP is not spam
Hello I am beginner learning iOS development from YouTube. I am writing the same exact code as that in video but I am getting error saying "Expressions are not allowed at the top level"
The code is:
import SwiftUI
var highscore = 0
highscore = 99
the error is shoeing for last line of code. Would be grateful if anyone could help!