Genadinik
Genadinik

Reputation: 18649

iPhone app has compile error with linker error about IPHONEOS_DEPLOYMENT_TARGET 6.1 but it seems to be already set to that

I just got the latest version of the code and I had this compile error:

Ld /Users/alexgenadinik/Library/Developer/Xcode/DerivedData/OnlineMarketing-adupuelybnhjiuehwdqsligdkure/Build/Products/Debug-iphonesimulator/OnlineMarketing.app/OnlineMarketing normal i386
    cd /Users/alexgenadinik/Desktop/Onlinemarketing
    setenv IPHONEOS_DEPLOYMENT_TARGET 6.1
    setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk -L/Users/alexgenadinik/Library/Developer/Xcode/DerivedData/OnlineMarketing-adupuelybnhjiuehwdqsligdkure/Build/Products/Debug-iphonesimulator -F/Users/alexgenadinik/Library/Developer/Xcode/DerivedData/OnlineMarketing-adupuelybnhjiuehwdqsligdkure/Build/Products/Debug-iphonesimulator -filelist /Users/alexgenadinik/Library/Developer/Xcode/DerivedData/OnlineMarketing-adupuelybnhjiuehwdqsligdkure/Build/Intermediates/OnlineMarketing.build/Debug-iphonesimulator/OnlineMarketing.build/Objects-normal/i386/OnlineMarketing.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -ObjC -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework UIKit -framework Foundation -framework CoreGraphics -lPods-OnlineMarketing -Xlinker -dependency_info -Xlinker /Users/alexgenadinik/Library/Developer/Xcode/DerivedData/OnlineMarketing-adupuelybnhjiuehwdqsligdkure/Build/Intermediates/OnlineMarketing.build/Debug-iphonesimulator/OnlineMarketing.build/Objects-normal/i386/OnlineMarketing_dependency_info.dat -o /Users/alexgenadinik/Library/Developer/Xcode/DerivedData/OnlineMarketing-adupuelybnhjiuehwdqsligdkure/Build/Products/Debug-iphonesimulator/OnlineMarketing.app/OnlineMarketing

But in my build settings, this is set:

enter image description here

Would anyone know how to fix this and why it is happening?

Here is the screenshot with the error:

enter image description here

Upvotes: 0

Views: 659

Answers (1)

Putz1103
Putz1103

Reputation: 6211

That error means that there is a missing dependancy. Somewhere you are trying to use (what looks like a custom) library that the compiler doesn't know where to find. Fix that broken link (the library trying to be linked to) and you should be good to go. But since it's a custom built library there's not much there that I can help with. The only advice I have is that if the library is in the project and needs to be rebuilt on compile then it should be listed in the "Target Dependencies" section of "Build Phases" as well as in "Link Binaries WithLibraries" section.

Upvotes: 1

Related Questions