Archive

Posts Tagged ‘3.1’

Xcode and static libs

October 19th, 2009

I’m writing this blog entry just in case other people come across the same problem and can’t seem to figure out what’s going on.

I found it in Xcode 2.5 that hasn’t been fixed in the latest version of Xcode that I have, version 3.1.3.

The bug I’m referring to is when you create a target as a static lib output, then you change the target later to output a dylib. The problem is that everything looks fine… heck, it even puts a dylib in the file name extension, but the file is actually a static library.

You have to go to Terminal.app and use the file command to see that the file is in fact, a static lib and not a dylib. You may not notice the problem at first until you go to debug the project and notice some weirdness.

Hopefully, you haven’t gotten bit by this problem, but if you have, the only solution I found was to create a new target from scratch.

Jaime Coding, Not-so-funny , , , , ,

Just when you thought things would work… crash!

October 21st, 2008

I work on large projects that are sometimes too unweildy to debug. The compile times are too long, the apps can take a while to load and when you’re looking to test something quickly, you don’t want to have to sit at your desk and wait for the IDE to finish what it’s doing.

So, to speed things up, I usually write tiny applications that I use for testing. Although they litter my file system, they are much faster to use and much easier to debug than an entire solution.

They are nice… until they break. I have a 64-bit mini application that I’ve been using to test my code with and it’s been working fine, until I went to use it yesterday. Now, so many things have changed on my computer that I can’t say that there is a single thing I can pinpoint to show why this application is not working.

So, instead of trying to figure out what’s wrong, I build a new project, which is great and all, but now, the IDE doens’t compile or launch a 64-bit version of my test app.

So what is going on here? I don’t know, but I will post the solution once I have it figured out.

Oh, if you’re wondering what IDE I’m referring to, it’s Xcode 3.1.

Jaime Coding, Not-so-funny, What's New , , ,