Ad

Our DNA is written in Swift
Jump

Category Archive for ‘Bug Reports’ rss

Radar: Aztec and PDF417 Core Image Generators documentation missing

While researching for my book “Barcodes and iOS” I was looking at the CoreImage generators for barcodes. iOS 7 supports generating QR, Aztec and PDF417 barcodes via CoreImage generators.

But for the latter two the documentation appears to be missing, making those – technically – private APIs. I believe this to be something that was simply overlooked, since those generators seem to work just fine.

Filed as rdar://15989297 and on Open Radar.

Update: An Apple evangelist responded to my inquiry and confirmed that those CI generators are indeed private API and should not be used.

Read more

Passbook Event Ticket Relevancy Issues

While experimenting with PassKit I found some weird behavior which I believe might be a bug, or two.

Passes can have a date and locations where they are relevant.  For event tickets – according to the documentation – the locations are optional. You expect to see passes to appear on the iOS lock screen from some time before the event until it starts.

Read more

Radar: Accessibility-based Tools crash app running in iOS 7 Simulator

This bug in iOS Simulator is interesting because it is the first bug we found where a crash in a simulated iOS app can be triggered by having a Mac app using Accessibility running outside of the simulator. I filed it and am reporting on this here because I’ve gotten this as issue on my project now two times.

Submitted as rdar://15478255 and to OpenRadar.

Read more

Radar Double Feature: Xcode Crash and Unit Test with UIFont

While working on unit tests for DTCoreText I stumbled upon an issue that has two aspects, one for how you set up unit tests and the other is a crash that is new as of Xcode 5.0.1.

Consider this simple unit test:

- (void)testExample
{
   UIFont *font = [UIFont fontWithName:@"Helvetica"
                                  size:20];
   STAssertNotNil(font, @"font should not be nil");
}

I consider it esoteric knowledge that you have to have a test host in place if you want to instantiate a UIFont inside a unit test. This is why I am filing it as a bug report, since it “might lead to developer confusion”.

In the least this should be documented somewhere. You will also find a description of a minimalistic workaround for both issues.

Read more

Radar: Enumerating NSAttributedString Attributes on Multiple Threads causes EXC_BAD_ACCESS

This bug has been causing me grief for the last month or so, as it was hard to pin down without a concrete use case that can reliably reproduce it. GitHub user brovador finally was able to narrow it down to be able to repro it every time.

There appears to be a bug in NSAttributedString that causes an EXC_BAD_ACCESS if you try to enumerate certain attributes over a longer range on two separate attributed strings from two background threads.

I filed it as rdar://15139980 and on Open Radar. The sample is the DTCoreTextExceptionExample on our Radar Samples GitHub repo.

Read more

Radar: Xcode 5 unable to configure inline Unit Tests for iOS and Mac in parallel

The following issue is a head scratcher if you are trying to add unit tests to your project that both run on Mac and iOS. And if you like to use the new inline buttons for executing individual tests.

Filed as rdar://15085316 and Open Radar. The mentioned sample project is the UnitTestTest sample on our Radar Samples GitHub repo.

Read more

Radar: Device shuts down even though 19% battery left

I’m seeing this issue on my main phone after having begun to use the iOS 7 GM on it.

Filed as rdar://15056186 and on Open Radar.

Read more

Welcome to iOS 7 … Issues

All the while during the iOS 7 BETA phase I’ve been filing Radars and produced samples to go with them to demonstrate the issue to Apple engineers. I wasn’t allowed to blog about these until the general release of iOS 7 and so I kept collecting them in a special folder on my dropbox.

Now that iOS 7 is out  I am able to add the samples to my public Radar Samples repo on GitHub. I hope that they can be a good example of how to create samples that allow Apple engineers to quickly reproduce and debug those issues.

Read more

Radar: LLVM Enhancement: @switch

Since Apple is starting to enhance LLVM with new language elements I figure that it might be a good time to suggest them as well, of course via Radar.

This is an enhancement request for getting an object-oriented version of the classic C switch which would allow you to use objects – like NSString literals – for the cases.

Filed as rdar://14557382 and on Open Radar.

Read more

Radar: Unlocked iPhone should not require SIM Card to be activated

The following hassle became apparent when I restored an iPhone 4 to a iOS 7 BETA version. You are supposed to file issues for everything, even something that annoys you as infrequently as this. This one has been annoying me for several years now.

So I finally logged it as rdar://14425938  and on Open Radar.

Read more