- #WHY IS MY APPLE TEXTEDIT CODE NOT SHOWING ON MY BROWSER PDF#
- #WHY IS MY APPLE TEXTEDIT CODE NOT SHOWING ON MY BROWSER FULL#
However, my app folder would not appear in either Finder or.
#WHY IS MY APPLE TEXTEDIT CODE NOT SHOWING ON MY BROWSER PDF#
I could copy a PDF from local storage to my default ubiquitous container on iCloud Drive, and I could view this file in the Files app under my app folder in the iCloud Drive location. I was experiencing nearly the same issue. The files are clearly sent into the iCloud because they show up on the Mac filesystem but my app's ubiquity folder will not show up in the iCloud Drive folder in the Finder. The files created on the iPhone can only be viewed correctly by using the iCloud drive app on the phone itself. So to summarize: My ubiquitous folder is not ubiquitous at all. NSUbiquitousContainerIsDocumentScopePublic I increased my build number each time I changed ist to make sure the settings will take affect. I am using the default ubiquity container. I have iCloud enabled in my xcode project capabilities and I have my entitlements setup correctly as far as I can tell. Now when I click on TextEdit I can see my file appear and I can open and view file contents. Now when I click on "iCloud Drive" I see a new folder appear called "TextEdit" which was never there before.
#WHY IS MY APPLE TEXTEDIT CODE NOT SHOWING ON MY BROWSER FULL#
Right click on the file and select "show in containing folder" and now I see my file appear with the full path to the file as you would expect. Here is another weird behavior: Open the Finder and click on "all my files" and I see my file. Nor do I see anything on or on my PC running iCloud software. However I do not see the file or the app's ubiquitous folder when I click on "iCloud Drive" on the Finder. I can also view this file on the Mac in a couple ways:ġ) Using the terminal program on the Mac I can see the file is created and updated correctly at this path: /Users/mjc/Library/Mobile Documents/iCloud~com~mchartier~motoproto1/Documents/myFile.txtĢ) Using the Mac Finder I can see the file when I click on "All My Files". In fact the iCloud Drive app on the iPhone will show me the correct folder name as I defined it with NSUbiquitousContainerName. The app runs without any errors and I can confirm the file is created and viewable from the iCloud Drive app on the phone. You can see I am using the app's default ubiquity container URL and appending the folder "Documents" and appending a filename. Text.write(to: documentURL, atomically:true, encoding:8)
Let documentURL = documentDirectoryURL.appendingPathComponent("myFile.txt") Let documentDirectoryURL = containerURL!.appendingPathComponent("Documents") Let containerURL = (forUbiquit圜ontainerIdentifier: nil) However the files are not visible with the mac finder even though the files do exist in the mac filesystem. My iPhone app will create files and store them in the app's ubiquitous file folder so they should appear in the icloud drive on the mac or PC. Maybe I misunderstand how iCloud Drive is designed to work.