xcode9
Xcode 9 – Simulator: Screenshots taken are not of correct resolution for ItunesConnect / AppStore Connect
In Xcode 9.1, go to Simulator Menu > Debug > Optimize Rendering for Window Scale. disable this option, now the screenshots will be in the right size (resolution).
Make UIColor Codable
If you care only about the 4 color components this is a simple solution using a wrapper struct struct Color : Codable { var red : CGFloat = 0.0, green: CGFloat = 0.0, blue: CGFloat = 0.0, alpha: CGFloat = 0.0 var uiColor : UIColor { return UIColor(red: red, green: green, blue: blue, alpha: alpha) … Read more
Swift 4 ,must be used from main thread only warning
You’re making this call on a background queue. To fix, try something like… public var context: NSManagedObjectContext DispatchQueue.main.async { var appDelegate = UIApplication.shared.delegate as! AppDelegate context = appDelegate.persistentContainer.viewContext } Although this is a pretty bad way to do this… you’re using your App Delegate as a global variable (which we all know is bad!) You should … Read more
iOS Simulator crashes after boot with “available but has no defaultDisplay”
Close all simulators and just run sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService to restart the service. All simulators will launch as usual.
Xcode 9 commit: Couldn’t communicate with helper application
The solution is to add changes once with a git command. Use terminal and navigate to Xcode project folder. If you are in the right folder, this command: ls -al will list a .git folder. Then you know you’re at the right place. Then execute git commit -a -m “Commit title here” After that commit … Read more
Xcode 9 Storyboard: an internal error occurred. editing functionality may be limited
You can find the issue in Problem Report, just clink on report a bug and open the log.txt file where you can find the issue. In my case i set invalid table row height.