xcode - ld: building for iOS Simulator, but linking against dylib? -


i'm having issue compiling app simulator. in device runs once tried compile in simulator following error:

ld: building ios simulator, linking against dylib built macosx file '/applications/xcode.app/contents/developer/library/frameworks/xctest.framework/xctest' architecture i386 clang: error: linker command failed exit code 1 (use -v see invocation) 

i checked before posting question, answers found in stackoverflow, run this,

export path=/applications/xcode.app/contents/developer/toolchains/xcodedefault.xct‌oolchain/usr/bin:/applications/xcode.app/contents/developer/usr/bin:$path 

or

the problem xcode 5 replaces gcc clang , adds in "-triple" option specifies osx target. if pass "-miphoneos-version-min=7.0" on both gcc command lines works. can see clang command line if pass "--verbose" gcc. it's necessary add path xcode 5 cmake can find necessary tools: export path=/applications/xcode5-dp6.app/contents/developer/toolchains/xcodedefault.xct‌​oolchain/usr/bin:/applications/xcode5-dp6.app/contents/developer/usr/bin:$path none of official.. works me far.

i dont understand how to this. help, please?

check build settings test target. values should similar:

enter image description here

if have escaped symbol, consider fix it. had here : \". removed them

also notice: order important!

p.s. graehamf it's thing build -> clean , restart xcode, changes take affect


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -