I am currently trying to get Python to work within a Cocoa App. My first step is to include Python so that Xcode can link against it. Since OS X Mavericks, the Python.framework is no longer in the SDK, so I followed this instructions to get it to work. Creating a project and following the steps described, Xcode gives me an error message:
CpResource libpython2.7.dylib /Users/Phil/Library/Developer/Xcode/DerivedData/Python_Scripting-hiipjmacxsirqkfqczdjdaxbqgfj/Build/Products/Debug/Python\ Scripting.app/Contents/Resources/libpython2.7.dylib
cd "/Users/Phil/Documents/Xcode/Python Scripting"
builtin-copy -exclude .DS_Store -exclude CVS -exclude .svn -exclude .git -exclude .hg -resolve-src-symlinks /Users/Phil/Documents/Xcode/Python\ Scripting/libpython2.7.dylib /Users/Phil/Library/Developer/Xcode/DerivedData/Python_Scripting-hiipjmacxsirqkfqczdjdaxbqgfj/Build/Products/Debug/Python\ Scripting.app/Contents/Resources
error: /Users/Phil/Documents/Xcode/Python Scripting/../../../Python: No such file or directory
I am pretty sure that I followed the instructions correctly (e.g. Py_IsInitialized() is recognized). But: What does the statement Confirm the dialog box, and now Xcode is set to link against libpython2.7.dylib (by using the same -L and -l option settings as above). mean? Do I have to set up some linker flags manually?