Our DNA is written in Objective-C
Jump

Category Archive for ‘Bug Reports’ rss

PSA: Xcode hanging opening projects

There is bug in Xcode 8 that has not yet been fixed as of Xcode 8.2.1. If you running macOS Sierra you might find that Xcode hangs if you try to open a project, for example via Finder or the open command. The original bug report was filed as rdar://29319747 which mine was closed as a duplicate of.

Read more

Sheet dismissal bug when window is hidden

Our customer found the following issue. In our apps we are showing some sheets for displaying progress to the user (downloading a bunch of images for example). I was not aware that if you ALT + CLICK in macOS ouside your window it gets hidden. When you do this and dismiss the sheet meanwhile an empty sheet remains on top of your window.

This bug is filed as rdar://30071930 and on Open Radar.

Read more

Use Legacy Swift Language Version

There is a bug in Xcode 8.2 that – after upgrading to this version – it is no longer able to build your project. The build error message is:

Use Legacy Swift Language Version” (SWIFT_VERSION) is required to be configured correctly for targets which use Swift.

We saw this in projects where we are not using any legacy Swift, i.e. everything is Swift 3. Also there is a project-wide setting to NOT use legacy Swift. The new bug seems to ignore the project-setting.

Read more

Bug: NSCollectionView Move Sections Crash

We are so foolhardy that we are using NSCollectionView in an internal project that gets widely used by an enterprise client of ours. We found this latest crashing bug while updating the application for macOS 10.12 wich is where the issue first appeared.

The only workaround at this time is to remove animation via animator() and replace it with a reloadData. Thus we vote NSCollectionView for worst Apple API on macOS.

This bug is filed as rdar://28337446 and on Open Radar.

Read more

LLVM Crash

I found this LLVM compiler crash when updating a project for building with Xcode 8. At first I thought it had to do with #if DEBUG because the crash didn’t occur when I removed the conditional compiling block. But further experimentation showed that it is a specific line in this block that is causing the issue.

It is filed as rdar://28318984 and on Open Radar.

Read more

Enhancement: Make NSTextList Public

Whenever I am tasked with adding a rich text editor to an app, I check if Apple has since done something in UIKit to support lists. Since they revamped the text system in iOS 7, unifying large portions with how they are dealing with text on macOS, I am getting my hopes up for every new release of iOS.

macOS is using the NSTextList class to represent lists and the code below is provides proof that this class also exists on iOS. So this Radar requests – probably not for for the first time – for NSTextList to be made public. It is filed as rdar://28254852 and on Open Radar.

Read more

NSLog crashes with certain NSURLs

This is a bug in NSURL which managed to astonish me. Even as a seasoned developer you can only but marvel at the easy way to reproduce it and wonder what might be the reason for it happening.

A client reported that our app was crashing. When I launched the app in debugger I expected to see the exception to be something obvious, like a nil being unwrapped. But it turns out that there is a bug in NSLog. Filed as Radar rdar://24406969 and on Open Radar.

Read more

The Case of the Missing Translation

Since iWoman was acquired by FOKUS KIND Medien we have been working on a complete UI overhaul. This also requires many new translations. The previous version of iWoman had been localized with Linguan, a Mac app which we also had sold a while ago. Unfortunately Linguan does not yet have support for XLIFFs, even though the new owner is considering it.

This blog post describes an issue that the XLIFF workflow has because of a bug on POEditor.com as well as a problematic “feature” in Xcode which causes some strings to go missing.

Read more

TestFlight builds might get stuck in “Processing”

Old story: you submit a new version of an app only to find the next day that you still have a place where a crash occurs. In my case I “developer rejected” the review submission and uploaded a new build. Only to find that 19 hours later – on the next day – it is still not available to be attached to the version for submission.

People on Twitter told me that they are having the same issues too every now and then. Apparently for some they can jigger it lose by refreshing the TestFlight iOS-Builds page every few seconds. A few individuals even do that with a chrome extension that reloads the page every 15 seconds.

So, time for a Radar: filed as rdar://23409291 and on OpenRadar.

Read more

Table View Cells lose clickability in Today Widget

While working on a today widget I stumbled on a bug in iOS. Since I was using multiple rows I had changed my widget to be table view-based with multiple rows showing a label and a value. Oddly, this setup caused my table view cells to no longer highlight when being touched between the labels.

There is a workaround of course, see below, but it is ugly. Filed as rdar://23298579 and on Open Radar. The mentioned sample app is WidgetTabCellTest on my Radar Samples repo on GitHub. Read more