Post not yet marked as solved
My app generates piecemeal near terabyte data distributed over one hundred files. Due to RAM and internal HD limitations I must store to an external HD in piecemeal fashion. That is to say, append fresh records directly to an existing file without reading-in the whole file, appending, and writing it out again.
Ultimately (when data generation ceases) I will check each file to ensure uniqueness of member data structures.
Is Core Data the tool I should use?
If not, how do I append directly to disk-files without first reading it in?
Post not yet marked as solved
We use rsync to backup a user's documents to a network share and I seem to have run into an issue having it run at login.I can run the script below, at the terminal prompt, without root access, and the rync command will run without error and I will get a successful backup on the network share:rsync -rltgoD --progress --no-p --delete --cvs-exclude ~/Documents /Volumes/dfs/"$adOU"/"$loggedInUser"/"$computerName"When I add that command to be run by Enterprise Connect after a successful login, it fails with the following error message:building file list ...0 files...rsync: opendir "/Users/<USERNAME>/Documents" failed: Operation not permitted (1)1 file to considerIO error encountered -- skipping file deletionCurrently running 10.15.1Thank you for any advice.
Post not yet marked as solved
Hello
forgive my beginner’s question—I urgently need to edit a database file (.fexdb), and in fact I can do so using BBEdit, but upon saving, the application to use that database (FontExplorer) no longer recognizes the file (also the icon has changed). It seems some metadata have been altered by BBEdit (I don’t even know if that is correct—is it?). Would anyone be so kind as to let me know (on a non-coder level) how to proceed?
Thanks so much
Post not yet marked as solved
Hi,
I think I never thought about this but... let's say I have my iOS app (swift) and I have a ViewController with a WKWebView. If I open a link of a page with a pdf, where are the pdf and that page's files stored? Is there a way to clean the directory in which those files get stored? Is it something I shouldn't worry about?
Thanks in advance
Post not yet marked as solved
We have a network copy utility which reads from an external volume (specifically camera media). We'd like to grant it external volume access at installation time, preferably without having to find and insert media.
But triggering an 'external volumes' dialog (and hence adding an entry to Security / Files and Folders) seems to require accessing an actual external volume.
In contrast Full Disk Access can be granted preemptively, but it's a huge security hazard - it would give the copy utility unrestricted access to the entire machine.
Is it possible to grant 'external volume' access when you don't (yet) have an external volume connected ?
Post not yet marked as solved
Ever since the update to macOS 11.4 Beta 3 two days ago, I have been going through hell trying to maintain Full Disk Access for my apps' background agents. I think something has changed with Full Disk Access, and I am very worried that the upcoming release of macOS 11.4 is going to break it for my users.
BACKGROUND
Because of open issues FB5929825 and FB7772296, my notarized macOS apps require Full Disk Access in order to access Safari bookmarks using a Apple private API. That works OK for the parent apps, but maintaining Full Disk Access for my apps' background agents has always been problematic.
Before Full Disk Access became a thing in macOS 10.15, my apps' background agent was a command-line tool, shipped within my apps' bundle, and launched intermittently by launchd tasks. Testing in early betas of 10.15, I could not find any way for a command-line tool to get Full Disk Access. (This may have been fixed in later versions.) Copying the design I saw in another app (Arq Backup) which had a working background agent, I spent several months replacing my command line tool with a Service Management Login Item which runs constantly. For brevity, I shall refer to my Service Management Login Item as "FooAgent".
Since then, users have been granting Full Disk Access to my apps after initially installing. The enclosed FooAgent apparently "inherited" Full Disk Access from the parent app, and all was well. I have never seen any documentation that this is by Apple's design, but it worked.
But, two days ago, upon restarting after the update to macOS 11.4 Beta 3, in addition to the fact that System Preferences' Full Disk Access checkboxes had been switched OFF for all non-Apple apps on my M1 MacBook Air (FB9103124), FooAgent emitted a warning that it did not have Full Disk Access, and this repeated even after I switched on the two checkboxes labelled "FooAgent" which had appeared in the Full Disk Access list and relaunched FooAgent. Through some combination of this action, removing a previous build of FooAgent, and restarting twice, I was able to restore Full Disk Access yesterday. But today, after rebuilding my app, which includes a rebuild of FooAgent, upon launching, FooAgent again reports no Full Disk Access, and today there are zero checkboxes for FooAgent in the Full Disk Access list. I beg someone from Apple to please answer for me:
What is the correct, supported means by which a Service Management Login Item, contained within a parent app, can acquire and maintain Full Disk Access?
Is it now necessary to re-grant, for testing, Full Disk Access after every build or update in the field? (Please, please say "No".)
Is a Service Management Login Item which is contained within a parent bundle supposed to have its own entry and checkbox in System Preferences' Full Disk Access list?
BONUS QUESTION. Please, God, is there any chance that FB7772296 will be fixed in the next version of macOS, so I that can stop using Apple private API and stop requiring this Full Disk Access?
let applicationSupport = NSURL(fileURLWithPath: NSSearchPathForDirectoriesInDomains(.applicationSupportDirectory, .userDomainMask, true)[0])
let launcherdir = applicationSupport.appendingPathComponent("MyApp")
do {
try FileManager.default.createDirectory(atPath: launcherdir!.path, withIntermediateDirectories: true, attributes: nil)
} catch {
print(error)
}
Post not yet marked as solved
I've noticed that on Monterey/Big Sur certain system and C++ functions in Logic no longer appear to work on files located outside of /Library/Audio/Plug-Ins/Components. For example, if you try to use std::ifstream on a file outside of the system plugin directory, it simply doesn't work (but still works fine in DAWs like Reaper, Ableton, ect).
Certain graphics functions like NSOpenPanel appear to no longer work at all: Logic seems to prevent the window from opening, but still allows pop-up windows like CFUserNotificationDisplayAlert to display. Again, in other DAWs this all works fine.
Has anyone noticed this, and if so, what's going on here? Is this the intended behavior for Logic now?
It's not a huge deal, but some users like to install or place the sample directories of my plugins on different hard drives and things like that, and it seems like this is maybe no longer possible if they are using Logic?
Tested in Logic 10.7.3 Monterey 12.3. Older AU SDK, but doubtful that's what has caused this.
Post not yet marked as solved
Hi everybody,I don't seem to be able to get FileProviderValidation to work. I am talking about the app announced by Apple at this year's WWDC. I have done everything the Readme states needs to be done. Under iOS 11, FileProviderValidation just crashes, under iOS 12 Beta 1, it lists all the available File Provider Extensions -- uncluding ours -- but it states that the extension was "Not eligible". (None of them is.)I had previously tried to implement the protocol on my own and to provide an own service source (in Swift, as the rest of the project). But that didn't work. So I went with the Files provided by Apple and included the service source in the bridging header.The only thing I am doing differently from Apple's solution is that I return two items in supportedServiceSources(for itemIdentifier: NSFileProviderItemIdentifier), theirs and ours which serves for XPC between the UI app that hosts the extension and the extension itself.Did anybody get this to work?
Post not yet marked as solved
Hello all! I was wondering how you choose which files types can be shared into your app? I'm trying to allow other apps to share a .OBJ file into our app, but our app is not appearing on the list of apps (even in "show more"). Thank you!
Post not yet marked as solved
Hello,
I've noticed, that when I close DocumentPicker by swiping from top to bottom (without picking a file or pressing cancel), no callback gets called.
Currently I'm using didPickDocumentsAtURLs and documentPickerWasCancelled callbacks, neither of them get's called if DocumentPicker is closed by swiping.
This is a problem, because while DocumentPicker is open (and a bit after that, while the file would get processed), I show a loading popup, which get's closed in one of the callbacks. In this case, I cant' find a callback to use and close the loading popup.
Am I missing a callback, or is there some other issue?
Post not yet marked as solved
Hi Team, We are using following different concepts for storing the users data in the device in our hybrid mobile application and even though the app is killed or closed from background we should get the stored values, Because our app should work in offline as well. We are using below code to store. (language:jquery) 1.localStorage.put("some key", "somevalue") 2.preference.put("some key", "somevalue") 3.globalpreference.put("some key", "somevalue") 4.memorypreference.put("some key", "somevalue") And we are below code to retrive back. 1.localstorage.get("some key") 2.preference.get("some key") 3.globalpreference.get("some key") 4.memorypreference.get("some key) This concept was working 100% till iOS version 12.4.2 But this concept not working in iOS version 13.1, 13.2 The data will retain only when the app is in active state. But the stored key itself is deleted once we kill or destroyed the app from background task in iOS 13 device (iPad)and check back again. Surprisingly, Our above concept is perfectly working in Xcode 11.2 with iPad stimulator and even it will work on on real device debugging, and also for Lower version device. But when we generate the ipa and downloaded in real device, the data is getting deleted when we kill/close the application without uninstalling. But the same ipa working fine in lower version of real device. Kindly help us regarding this, because there is no code changes and we are unable to debug it because it is working as expected in stimulator. Need help on urgent basis because it is impacting our business for higher version of iPad device. Is there any work around for it?
Post not yet marked as solved
Hi,
Is it possible in Big Sur to create symbolic link in root directory with the file /etc/synthetic.conf, as it was in Catalina?
thanks
Post not yet marked as solved
Which communication protocols we can use to connect Files on iPhone?
For instance: it would be possibile to connect a Repo as an External Server by using Git Apis?
Post not yet marked as solved
I have a signed, notarized app that makes use of a privileged helper. In macOS 11 and 12, as noted in several places in the documentation, there was/is an increasing requirement for the user to grant permission for things over prior macOS releases. This is great, I'm on board.
I've found that the privileged helper now needs the broad "Full Disk Access". How do I get the Finder to ask the user permission for this?
My helper has the special text sections called "__info_plist" and "__launchd_plist" and I tried putting what I think should go into them in those but I didn't have any luck. Is there another section I need to know about or did I just mess something else up?
I'm not using Xcode or Swift or ObjectiveC, everything is C++/C and the command line tools. My helper and Application use XPC to communicate with each other.
Thanks!
(after my helper fails it does show up in the Full Disk Access list, if you check that pref and try again it all works, I don't want my users to ever have to do that)
Post not yet marked as solved
We read/write “com.apple.PowerManagement.plist” for managing power of MAC O.S. This was usually located in “/Library/Preferences/SystemConfiguration”. However from 10.12, It’s location is changed and name is also changed. Please let us know the location and name of this file in all/different version of MAC O.S. Also can we progrmatically (Using C++) detrime the location of this file?.
Post not yet marked as solved
Hello all,
I am using a AVAggregateAssetDownloadTask to download a stream. In the session's init, the delegateQueue is set to main.
I create and resume session tasks from a separate thread:
func doSomething async {
Task {
//Task setup here
mySessionTask.resume()
}
}
Now, in the delegate, I have:
public func urlSession(
_ session: URLSession,
aggregateAssetDownloadTask: AVAggregateAssetDownloadTask,
willDownloadTo location: URL
) {
print("Location: \(location.path)")
do {
let data = (try location.bookmarkData())
print("Great! We generated bookmark data with length \(data.count)")
} catch {
print("Ooops, an error occurred: \(error)")
}
The problem is, when I run the code I get an error:
Error Domain=NSCocoaErrorDomain Code=260 "The file couldn’t be opened because it doesn’t exist."
I am not sure why this is the case. My code is basically exactly the same as a sample from Apple: https://developer.apple.com/documentation/avfoundation/media_playback_and_selection/using_avfoundation_to_play_and_persist_http_live_streams . I can reproduce my error here if I generate the task from a different thread
This leads me to believe, there is a problem (probably with security scoping, but doesn't make sense to me) when trying to access a URL from a different thread in order to generate a bookmark. Has anyone experience this? Any ideas how it can be fixed?
Thanks in advance.
Post not yet marked as solved
Before Big Sur, there was a property list at
/System/Library/CoreServices/backupd.bundle/Contents/Resources/StdExclusions.plist
that contained a list of all of the standard files/locations that Time Machine would exclude from a backup.
That file seems to have disappeared and I have been unable to find an equivalent.
Furthermore, the tmutil isexcluded (i.e. NSURLIsExcludedFromBackupKey/CSBackupIsItemExcluded) does not reliably report these locations as excluded.
So is there still a publicly accessible way of discovering the standard locations excluded by Time Machine?
Post not yet marked as solved
For my customers using Catalina, they're correctly asked once if my software can access files in their Documents folder, and then the issue is laid to rest.But for me - I have two copies of the executable, the release build in my Applications folder, and the debug build I'm continuing to update. Whenever I switch from one of these to the other, I get the "*.app" would like to access files in your Documents folder prompt again.Are other developers experiencing this? Why is it that having two copies of the same app causes this problem? How do I make it stop?My app is called "Paisley", and it's loading a document from the ~/Documents/Paisley/ directory at startup. let docsDir = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask).last
_defaultDocumentsDirectory = docsDir!.appendingPathComponent("Paisley")Then I "let data = try Data(contentsOf: _defaultDocumentsDirectory.appendingPathComponent("UserData.xml"))"
Hi,
Could You please let me know how to convert such integer "565599639274028992" to real date?
It comes from column "date" table "messages" base "3d0d7e5fb2ce288813306e4d4636395e047a3d28.mddata
That date should be 4/Dec/2018 morning hour timezone GMT+1
thanks