Undefined symbols for architecture armv7

You have not linked against the correct libz file. If you right click the file and reveal in finder its path should be somewhere in an iOS sdk folder. Here is mine for example

/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.3.sdk/usr/lib

I recommend removing the reference and then re-adding it back in the Link Binary With Libraries section Build Phases of your target.

 

I had a similar issue last night and the problem was related to the fact that I had dragged a class from the Finder to my project in xCode. The solution was to go the the Build Phases tab and then the Compile Sources and make sure you drag the class to the list.

你可能感兴趣的:(Architecture)