Solved fragmentation fault 11 issue (xcode bug)