Post

Replies

Boosts

Views

Activity

Reply to How do I migrate Swift 3 code to Swift 4 in Xcode 10.1. I have a program that was written In Swift 3 a few years ago and haven't updated it for quite a while. I am now using Xcode version 11.2 and when I load this program into Xcode it tells me to use Xc
Actually, 2 ways: Download Xcode 10.x from Developer website, try multiple versions. Automatically migration. Change Swift version to 4 or 5 in Project Build Settings. Then manually fix all the errors.
Sep ’20
Reply to iOS Development: Create file failed(return domain:NSCocoaErrorDomain,code:512)
I can confirm 1000-limit-error is not the same error as @logicat encountered. I write a for loop to create 1000+ directories, I get 512. But it has detailed description. Too many temporary directories for $APPNAME in $DIR The original error is 512 without other useful info but UserInfo={NSUserStringVariant=Folder}. Start from 13.x, I guess, Apple change some code on write atomically results in this error.
Sep ’20
Reply to ios 15.2 beta app stuck
I am pretty sure that this issue persist on the 15.2 released version. If you set photo permission to PHAuthorizationStatusDenied in Settings, and call registerChangeObserver: without check the permission (to do a alert or something), the App will stuck 20s. Is there some workarounds for the old version of our apps?
Dec ’21