Welcome to the iMore Forums Create Your Account or Ask a Question Answers in 5 minutes - no registration required!
Results 1 to 1 of 1
  1. Thread AuthorThread Author   #1  
    audiorack's Avatar
    iPhone Nanite

    5 Posts

    Default Recompiling an App with iOS5 SDK - Xcode 4.3 errors and missing lz.1.2.3

    When recompiling an existing App in iOS5 sdk you could run to an error in Xcode 4.2 which complains about a missing library:

    setenv PATH "/Developer-iOS5/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer-iOS5/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Developer-iOS5/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang++ -arch i386 ..............-D__IPHONE_OS_VERSION_MIN_REQUIRED=40300 -framework Foundation -framework UIKit -framework CoreGraphics -lsqlite3 -framework CFNetwork -framework SystemConfiguration -framework AudioToolbox -framework OpenGLES -framework QuartzCore -framework CoreFoundation -framework MobileCoreServices -lz.1.2.3 -framework CoreAudio -o /Users...........

    ld: library not found for -lz.1.2.3
    Command /Developer-iOS5/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang++ failed with exit code 1

    To fix this issue, navigate to Project Settings -> Build Phases -> Link Binary with libraries,

    Browse for libz.1.2.3 dylib which will be displayed in red.

    Remove libz.1.2.3.dylib (first select and then use "-" to remove) and then add an entry named libz.1.2.5.dylib

    Recompile after cleaning targets.

Posting Permissions