ios - Sometimes cannot launch an application programmatically on jailbroken device -


 nsinteger error = sbslaunchapplicationwithidentifier((cfstringref)bundleid, no);  nslog(@"launching [%@] error: [%d]", bundlename, error);  if (error) {    cfstringref errorstr = sbsapplicationlaunchingerrorstring(error);    dlog(@"launching %@ error string [%@]", bundlename, (nsstring *)errorstr);    cfrelease(errorstr);  } 

i use above code launch second application first application, can launch successfully. however, sometimes fails launch. see error on syslog

launching [myfirstapp] error: [7]

launching myfirstapp error string [application not found]

how can launch application?

note first application running daemon


Comments

Popular posts from this blog

php - render data via PDO::FETCH_FUNC vs loop -

javascript - Which segment of a polyline was clicked? -

c# - Avoiding duplicate methods for Task and Task<T> -