Make sure stderr is filtered out in case xcodebuild or xcrun print errors when getting the SDK path and use xcrun to find the SDK path.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@221492 91177308-0d34-0410-b5e6-96231b3b80d8
Fix the test to not have to run the binary separately first to get the golden output, use the process STDOUT instead.

This helps this test be able to be run remotely.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@221493 91177308-0d34-0410-b5e6-96231b3b80d8
Changed program to go along with the previous commit to allow this test to be run remotely via lldb-platform.



git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@221494 91177308-0d34-0410-b5e6-96231b3b80d8
Fixes so tests compile and run remotely.

Fixes include:
- dont set or change LDFLAGS, but set LD_EXTRAS instead
- fix compilation errors for iOS based builds with objective C code
    - fix test cases to create classes instead of relying on classes from AppKit 
    - rename things where it makes sense


git-svn-id: https://llvm.org/svn/llvm-project/lldb/trunk@221496 91177308-0d34-0410-b5e6-96231b3b80d8