Search results for

dsym file

77,674 results found

Post

Replies

Boosts

Views

Activity

Accessing Files in iCloud Drive via Files app
I have an app which has defined a document type and is able to open such files with a given extension.This works perfectly for example with AirDrop or from Mail, but it does not work with the new Files app in iOS 11on a real device.It works in the simulator, there are two cases: If the URL of the file to open comes in via- (BOOL) application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)optionsI check if the file attributes are accessible. If so, I can use the file item directly, if not, I use[NSFileCoordinator coordinateReadingItemAtURL:options:error:byAccessor:],the file is downloaded from iCloud and I can process it using the new URL delivered by the result handler.On a real device this does not work - I get an error that I am not having the access rights to access the file attributes.If I am using the NSFileCoordinator, the result handler returns without an error, but trying to acces
3
0
3.4k
Oct ’17
Lost files
Recently, some of my files went lost. Particularly those that had been recently created or recently opened. Only the files are lost, the folder are still there, empty. When I open Word, I can see the name of the missing files in 'recents', but I am unable to open them (I get a message saying the file is deleted or I don't have access to it). I have tried searching for them on Finder with no result. I have also already tried: Unticking the Finder thing in my iCloud Checking my iCloud (empty). I didn't really use it before, but it was worth trying. Doing the command + shift to unhide documents Right clicking on the document in recent I also tried recovering deleted files using Disk drill and nothing.
0
0
366
Mar ’21
Finder File Previews lock files on SMB shares
I've developed a new Quicklook data-based preview extension for a custom file type that generates an image preview of the file. I previously used a Quick Look generator plug-in but support for it was deprecated and now removed in macOS Sequoia. My app opens files using a open(url.path, O_RDWR | O_NONBLOCK | O_EXLOCK) call. The locking flags are used to prevent other clients from writing the file if it's already open. I discovered that when Finder is showing the “large” file previews (such as when in column or gallery modes) from a SMB share, the open call fails with EWOULDBLOCK as if the file is locked. It does work just fine on local files. Opening with O_SHLOCK also has the issue. Surprisingly it does work just fine for previews that return Plain Text data instead of Image data. Using the lsof command, it seems like the Quicklook process has some kind of lock on the file. This is the output of the lsof command: COMMAND PID USER FD TYPE
8
0
786
Dec ’24
Rename File without entering an file extension
Xcode 7.3.1, Swift 2.2The code I have below is renaming the file as expected. My issue is that I would like to enter the New File Name without an extension in the Alert text input field. Then once the user presses Yes, the file extension m4u gets added to the new name and ultimately rename the file New File Name.m4u. I do not want the user to have to deal with file extensions.Any assistance would be greatly appreciated.....func askToRename(row:Int) { let recording = self.arrayRecordings[row] let recordingURL = self.arrayRecordingsURL[row] let alert = UIAlertController(title: Rename, message: Rename Recording (recording)?, preferredStyle: .Alert) alert.addAction(UIAlertAction(title: Yes, style: .Default, handler: {[unowned alert] action in print(yes was tapped (self.arrayRecordingsURL[row])) if let textFields = alert.textFields{ let tfa = textFields as [UITextField] let text = tfa[0].text let url = NSURL(fileURLWithPath: text!) self.renameRecording(recordin
2
0
5.5k
Aug ’16
Adding Files
This might be a dumb question, but how does one add new swift files to a playground / project?Every featured challenge/playbook/whatever is comprised, of course, of multiple swift files, but I can't seem to find any way to add any files to the blank template outside of the intial Contents.swift. At the moment I'm looking to use the app standalone, without involving xcode at all.
0
0
266
Oct ’16
How do I prevent my app's folders or files from being displayed or searched in the Files app?
How do I prevent my app's folders or files from being displayed or searched in the Files app? Currently, the app is set to display internal files and folders in the Files app, Apple's default app. Is there a way to turn this on and off within the app code so that our app's files or folders are not searched within the Files app? All files and folders in the Documents path and their subfolders and files are eligible.
1
0
633
Jan ’24
Losing texture when converting DAE files to SCN files
I have an app where I have a bunch of dae files stored online. They're optimized for iOS usingxcrun scntool --convert file.dae --format c3d --output file_optimized.dae --force-y-upI download both the model and the textures to have the same file structure as on my mac. Which ends up like this:modelName/ model/ model.dae textures/ textures.png (All required texture files are in here)However, when I load them into my iOS app, they show up fully white with the following error:[SceneKit] Error: Failed loading : <C3DImage 0x1c00f6900 src:file:///path/to/local/file/on/my/mac/../textures/diffuse.png [0.000000x0.000000]>The files work fine on my mac, both in Preview and in Xcode, and they show the URI to the textures like this:../textures/diffuse.pngHow would I fix this?
2
0
3.2k
Dec ’17
Download a file in a File Provider Extension in iOS
I am developing a cloud-based application and have integrated the FileProviderExtension. However, files larger than 20 MB are not downloading as it’s throwing a memory limit exception. In this process, I have downloaded the file data, but after downloading the data, I need to decrypt the data. I am getting a memory limit exception during decryption. I am using the below lines to decrypt the data. let symmetricKey = SymmetricKey(data: key) let sealedBox = try AES.GCM.SealedBox(combined: inputData) let decryptedData = try AES.GCM.open(sealedBox, using: symmetricKey) I am getting memory limit exception at AES.GCM.open(sealedBox, using: symmetricKey)
3
0
1.1k
Nov ’23
WatchConnectivity File Transfer is received but can’t find file on watch
I am successfully transferring a .mov file and the correct delegate is being called from the watch counterpart. Yet when I try to reference the URL of the file that was transferred, the file is can’t be found. Is there a specific file path that transferred files are saved to? Is there another way I can download a .mov file from my iPhone device to a counterpart?
2
0
949
Apr ’22
One-way file transfer: when to cleanup the source file?
I'm using Watch Connectivity to transfer files from the Watch to its paired iOS device. File transfer is successful in my first tests, but obviously I need to erase the source file when it is - successfully - sent. When should I do that? just after initiating the file transfer, using transferFile(file: NSURL, metadata: [String : AnyObject]) when getting the returned WCSessionFileTransfer? when getting the callback func session(_ session: WCSession, didFinish fileTransfer: WCSessionFileTransfer ? --> but will the callback always be called, even if the transfer finishes while the app is in background? some other time? NB: I'd really want to avoid implementing a custom 'ack' system, thus not using any user info/application context transfer.
1
0
909
Aug ’23
Access file from File app works inside my application, but doesn't work if I launch my app from the File app
Hi! I've got an application that can handle json (export/import). To achieve that I created a new Document Type in the info.plist, filed the imported and exported Type Identifiers, and created a new UTType. At first I was trying on the simulator and everything worked fine. I was able to created files and store them in the File app, and then read them back. I also implemented the func scene(_ scene: UIScene, openURLContexts URLContexts: Set<UIOpenURLContext>) to handle documents opened from outside the application. Now when I moved on onto a real device, I noticed that I had to test the access with guard url.startAccessingSecurityScopedResource() else { throw ImportError.accessDenied } defer { url.stopAccessingSecurityScopedResource() } but I get a weird behavior : when opening a file from File app with my app launched, everything works fine. But if I try to launch my application (previously killed) from a file in the File app, startAccessing
1
0
2.2k
Jan ’24