ShareShortcuts

BUG iOS 18.7 (22H20)

The iOS bug I reported in a previous iOS is still present

weplaydr
Создать форк «BUG iOS 18.7 (22H20)»

Создали что-то новое на основе этой команды? Поделитесь ей как форком: она станет вашей собственной командой, которой вы управляете, а обе страницы будут ссылаться друг на друга, чтобы weplaydr получил(а) признание.

  1. 1Получите команду и измените её в приложении «Быстрые команды». Дайте ей собственное название.
  2. 2Поделись ею из приложения «Быстрые команды» и скопируй ссылку iCloud.
  3. 3Вернись сюда, вставь ссылку и опиши, что изменилось, например: «Добавлен шаг, который использует Apple Intelligence для персонализации текста».
Загрузки
11K
Сохранено
0
Действия
23
Категория
API
Версия
1.0
Язык
EN

The iOS bug I reported in a previous iOS is still present. CREATED FILES SPONTANEOUSLY DISAPPEAR/ DELETED BY IOS 18.7

Что нового

Версия 1.0

First release

История версий
1.0 15 сен 2025 г.

First release

Что делает

Действий: 23
  1. Comment
    Sept. 15 2025 Bug persists in iOS 18.7 September 10, 2025 I added code to reproduxe the iOS Bug August 30, 2025 NOTE: There is a bug in iOS 18.6.2 that existed May 9, 2025, was subsequently repaired by Apple and has appeared again. To anyone develop…
  2. Get File
  3. Get Details of Files
  4. If
  5. Show Alert
    Create Test Folder
  6. Create Folder
  7. Text
  8. Save File
  9. Stop and Output
  10. Get Dates from Input
  11. Set Variable
    FoundDatesAsVariable
  12. Show Alert
  13. Get Contents of Folder
  14. Filter Files
  15. If
  16. Comment
    Expected Log file is missing!
  17. Show Notification
    … ModDateLog.txt file spontaneously deleted on date shown.
  18. Show Alert
  19. Comment
    Expected Log file exists. Write to it to potentially precipitate iOS Bug
  20. Comment
    Write old modification date to file as activity upon the log file and its enclosong folder
  21. Append to Text File
  22. Save File
  23. Show Alert

Посмотреть как код
Бета

Все действия этой команды, записанные на Cherri — языке программирования для приложения «Быстрые команды». Отлично подходит, чтобы разобраться, как она работает.

#include 'actions/documents'
#define color yellow
#define glyph alertTriangle

/*
Sept. 15 2025  Bug persists in iOS 18.7

September 10, 2025  I added code to reproduxe the iOS Bug

August 30, 2025  NOTE: There is a bug in iOS 18.6.2 that existed May 9, 2025, was subsequently repaired by Apple and has appeared again. 

To anyone developing Shortcuts that Save Append or Prepend Text Files SUCH TEXT FILES SPONTANEOUSLY DISAPPEAR, are deleted by the iOS arbitrarily. 

If you notice a text file you created via Shortcuts is suddenly no longer there, it’s iOS 18.6.1 onward to blame, not your misstep. 

I reported this bug as follows:

May 9, 2025 at 7:11 PM - FB17561877
Title: BUG IN IOS AND OR SHORTCUTS

I will update or delete this Comment when iOS bug is resolved (again).


Send me a comment if you want instructions about how to reproduce this bug for demostrative purposes. 

[email protected]
*/
const TestFolderByHandle = getFileFromFolder(, "TestFolder", false)
const LastModDateOfFolder = getFileDetail(nil, "Last Modified Date")

if !LastModDateOfFolder {
	alert("Confirm.  Do you want create the TestFolder and sample file?", "Create Test Folder")
	const CreatedFolder = createFolder("TestFolder")
	const Text = "Plain text."
	saveFile("./ModDateLog.txt", Text, true)
	mustOutput("TestFolder and ModDateLog.txt file created. \nRun this Shortcut daily to detect iOS Bug, spontaneous file deletion.", "TestFolder and ModDateLog.txt file created. \nRun this Shortcut daily to detect iOS Bug, spontaneous file deletion.")
}
getDates(LastModDateOfFolder)
@FoundDatesAsVariable
confirm("TestFolder last modified as show here.\n\nFolder: {LastModDateOfFolder}\n\nDo you want to touch the log file? ")
const GetContentsOfFolder = getFolderContents(TestFolderByHandle)
const Files = filterFiles(GetContentsOfFolder)

if !Files {
	// Expected Log file is missing!

	showNotification("{@FoundDatesAsVariable} ModDateLog.txt file spontaneously deleted on date shown.", "iOS Bug Detected")
	alert("{@FoundDatesAsVariable} ModDateLog.txt file spontaneously deleted on date shown.\n\n? Recreate Test File ?", "")
}
/*
Expected Log file exists.
Write to it to potentially precipitate iOS Bug
*/
// Write old modification date to file as activity upon the log file and its enclosong folder

const AppendedFile = appendToFile("ModDateLog.txt", "{@FoundDatesAsVariable} previous ModDate")
saveFile("ModDateLog.txt", AppendedFile, true)
confirm("OK.  ModDateLog.txt file exists.")
Открыть в Cherri Playground Декомпилировано с помощью cherri 2.3.0 (GPL-2.0). Перед компиляцией могут понадобиться небольшие исправления.

Оценки и отзывы

Написать отзыв
–
из 5
★★★★★
★★★★
★★★
★★
★
0 ratings

Пока нет отзывов. Поделись мнением первым!

Реклама

Ещё от weplaydr

См. все

Вам также может понравиться

См. все
Реклама