I got this annoying error with Xcode 4.6.1: Could not launch app – No such file or directory Error.
Xcode was working for me for awhile without problem with my iPhone. A friend wanted me to install an app on his phone. And I got this error.
It turns out that the “Deployment Target” (=IOS 6.0) is higher than that on the phone IOS 5.1.1.
I hope it helps,
If you want to get iOS console log, you can use below code:
NSMutableArray* mainList = [NSMutableArray array];
aslmsg q, m;
const char *key, *val;
q = asl_new(ASL_TYPE_QUERY);
aslresponse r = asl_search(NULL, q);
while (NULL != (m = aslresponse_next(r)))
NSMutableDictionary *tmpDict = [NSMutableDictionary dictionary];
for (i = 0; (NULL != (key = asl_key(m, i))); i++)
NSString *keyString = [NSString stringWithUTF8String:(char *)key];
val = asl_get(m, key);
NSString *string = [NSString stringWithUTF8String:val];
[tmpDict setObject:string forKey:keyString];