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

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

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

The canvas has been tainted by cross-origin data in chrome only -