Xcode ‘duplicate symbol’ error while building with static library

Question: I have an Xcode 4.1 project that has a static library attached to it. That library handles my Twitter methods and it includes another static library, namely libOAuth.a. On building the app I keep getting “duplicate symbol” error. I build and run my app on 3.2 or 4.1 simulator without errors. When I build the very the same code for a device – for an iPhone 4GS or an iPad – I am getting the errors. I am sure nothing is duplicated. It seams that there are two different architectures (armv6, armv7) in the library and the Xcode can’t resolve them correctly. What is your experience? Continue reading Xcode ‘duplicate symbol’ error while building with static library

iPhone project: failed to upload .app error in Xcode

Problem: I face a problem running a debug built application on an iPhone 3.1 device from Xcode 3.2.5 (iOS SDK 4.2). I receive the error message “Failed to upload my.app”. The app is actually uploaded but cannot be run. There is no error message in either device’s console or in the Xcode’s one. The application runs perfectly in the simulator and it runs without errors on iPad or iPhone 4GS devices. Proper .mobileprovision file is installed. What do you recommend? Continue reading iPhone project: failed to upload .app error in Xcode

Subclassing UITableViewCell in iPhone app

Question: I created a custom UITableViewCell which should have a different appearance than the default implementation. I need to customize the appearance and/or position of standard iPhone red buttons of edit and delete confirmation that seems to be out of reach. Maybe my colleagues are completely on the wrong track here and maybe subclassing a UItableViewCell is a bad idea, but I have been told to do so. How? Continue reading Subclassing UITableViewCell in iPhone app

Blog for us