Class PLBuildVersion is implemented in both frameworks

Main Idea Main idea is simple: If your app (or dependencies, such as Pods) uses framework, that uses explicit (or implicit) PhotoLibraryServices.framework or AssetsLibraryServices.framework as dependency, Xcode warns you (even if you are using only one of them). It might be Photos/PhotosUI.framework or AssetsLibrary.framework, or another (I don’t have full list of dependencies, but it … Read more

How to create dispatch queue in Swift 3

Creating a concurrent queue let concurrentQueue = DispatchQueue(label: “queuename”, attributes: .concurrent) concurrentQueue.sync { } Create a serial queue let serialQueue = DispatchQueue(label: “queuename”) serialQueue.sync { } Get main queue asynchronously DispatchQueue.main.async { } Get main queue synchronously DispatchQueue.main.sync { } To get one of the background thread DispatchQueue.global(qos: .background).async { } Xcode 8.2 beta 2: … Read more

How can I delete derived data in Xcode 8?

(Working in Xcode 11 and 12) You can go to File > Workspace Settings if you are in a workspace environment or File > Project Settings for a regular project environment. Then click over the little grey arrow under Derived data section and select your project folder to delete it.

Correctly Parsing JSON in Swift 3

First of all never load data synchronously from a remote URL, use always asynchronous methods like URLSession. ‘Any’ has no subscript members occurs because the compiler has no idea of what type the intermediate objects are (for example currently in [“currently”]![“temperature”]) and since you are using Foundation collection types like NSDictionary the compiler has no … Read more