I am also having similar issue, I packaged my app based of kivy and python and running in xcode. here is the error:
Got dlopen error on Foundation: dlopen(/System/Library/Frameworks/Foundation.framework/Versions/Current/Foundation, 0x0001): tried: '/Users/jahna/Library/Developer/Xcode/DerivedData/villagers_goods-bmgxikubanqmwuhetawxtarwzhzu/Build/Products/Debug-iphonesimulator/Foundation.framework/Versions/Current/Foundation' (no such file),