Archive for October, 2011

Xcode 4.2 + iOS5 building armv6+armv7 binary problems

After upgrading to Xcode4.2 and iOS5, we had problems building the binary for submission to AppStore. The final binary did not include both armv6 and armv7 architectures, so it was rejected. When linking, the linker told us about this warning: I think the use of this Xcode setting “$(ARCHS_STANDARD_32_BIT)” has changed its meaning since,..sometime. We [...]

October 30, 2011 В· polesen В· 3 Comments
Tags: ,  В· Posted in: Tools

iOS Gotcha: Empty NSArray Optimization

I got bitten by a little iOS optimization the other day. It turns out, that NSArray has been optimized to represent the empty array with the same singleton object, no matter how instantiated. This code: says: which indicates, that even though it looks like we instantiate 2 objects, the “a1″ and “a2″ variables point to [...]

October 28, 2011 В· polesen В· No Comments
Tags:  В· Posted in: Programming

Dead Simple dos2unix “command”

The web is floating over (well, .. nearly) with various one-liners that can convert newlines of a text file from the dos/windows way to the unix way. These use tools like sed, tr, perl, .. to do the trick, and here is another one – using vim: $ vi your-dos-newline-file.txt :set fileformat=unix :wq and you [...]

October 10, 2011 В· polesen В· No Comments
Posted in: Operating Systems, Tools