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.xctoolchain/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.xctoolchain/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:

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
Post a Comment