<div dir="ltr">I am trying to build VES for iOS using current Apple developer tools: Xcode 6.1 and the iOS 8.1 SDK. I have attempted to follow along with the instructions at <a href="http://vtk.org/gitweb?p=VES.git;a=blob;f=Apps/iOS/README.txt">http://vtk.org/gitweb?p=VES.git;a=blob;f=Apps/iOS/README.txt</a> .<br><br>First, I ran into some obvious problems about the most recent SDKs not being found by CMake, and corrected that with the following simple patch: <a href="https://gist.github.com/hnarayanan/b188b78aca79ec0fe765">https://gist.github.com/hnarayanan/b188b78aca79ec0fe765</a><br><br>Moving forward, I am able to compile foo-device targets, but when I attempt to build a foo-simulator target (e.g. curl-ios-simulator), I run into the following class of errors:<br><br> ld: building for MacOSX, but linking against dylib built for iOS Simulator<br>  file<br>  '/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.1.sdk/usr/lib/libSystem.dylib'<br>  for architecture i386<br><br>A more complete log of the above can be found here: <a href="https://gist.github.com/hnarayanan/327611ac19cfd95eb280">https://gist.github.com/hnarayanan/327611ac19cfd95eb280</a><br><div><br></div><div>This seems to be related to Xcode replacing gcc with clang in Xcode 5, as pointed out in the following Stack Overflow: <a href="http://stackoverflow.com/questions/18682267/cmake-ld-building-for-macosx-but-linking-against-dylib-built-for-ios-simulator">http://stackoverflow.com/questions/18682267/cmake-ld-building-for-macosx-but-linking-against-dylib-built-for-ios-simulator</a> . But I don't know how to set the flags they suggest within CMake to coax things along.</div><div><br></div><div>Does anyone who has had luck with compiling VES with recent Apple dev tools have any suggestions for me to try?</div><div><br></div><div>Thank you!</div><div>Harish</div></div>