Note that there are some explanatory texts on larger screens.

plurals
  1. POXcode: Could not launch app on update
    text
    copied!<p>Fellow coders,</p> <p>I have my iPhone App in version 1.0 that already is in the App Store, so everything works perfect in that version.</p> <p>Currently I'm working on the update, version 2.0. Well, if I install this version as a completely new app on the iPhone, it works perfectly well. There are no issues on the app launch or any other errors at runtime.</p> <p>But now the problem: If I already have installed version 1.0 and then try to update the app with version 2.0 (build and run in debug mode in Xcode), the app crashes immediately on launch. It's very confusing, since both versions work very well if they are built as independent apps. Another interesting aspect is that the update works in the iOS Simulator, but not on the device.</p> <p>Running the update on the device, I get one of the following errors (the errors are not always the same):</p> <ul> <li>failed to get the task for process xxxx </li> <li>Timed out waiting for app to launch</li> </ul> <p>Additional information to my Development environment: I'm using Xcode 4.4 on OS X Mountain Lion 10.8. The operating system on my iPhone is iOS 5.1.1.</p> <p>I found out that the crash is caused before application:didFinishLaunchingWithOptions: is called, so my actual source code can't cause the problem.</p> <p>For those that are still interested in the <code>didFinishLaunchingWithOptions</code> method:</p> <pre><code>- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //Navigation bar UIImage *navigationBackground = [[UIImage imageNamed:@"EMSNavigationBarBackground.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 20, 0, 20)]; [[UINavigationBar appearance] setBackgroundImage:navigationBackground forBarMetrics:UIBarMetricsDefault]; [[UINavigationBar appearance] setTitleVerticalPositionAdjustment:-3.f forBarMetrics:UIBarMetricsDefault]; //Normal button UIImage *button30 = [[UIImage imageNamed:@"EMSBarButtonItemNormal"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 5, 0, 5)]; UIImage *buttonHighlighted30 = [[UIImage imageNamed:@"EMSBarButtonItemPressed"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 5, 0, 5)]; [[UIBarButtonItem appearance] setBackgroundImage:button30 forState:UIControlStateNormal barMetrics:UIBarMetricsDefault]; [[UIBarButtonItem appearance] setBackgroundImage:buttonHighlighted30 forState:UIControlStateHighlighted barMetrics:UIBarMetricsDefault]; [[UIBarButtonItem appearance] setBackgroundVerticalPositionAdjustment:-3.f forBarMetrics:UIBarMetricsDefault]; //Back button UIImage *buttonBack30 = [[UIImage imageNamed:@"EMSBarButtonItemBackNormal"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 13, 0, 5)]; UIImage *buttonBackHighlighted30 = [[UIImage imageNamed:@"EMSBarButtonItemBackPressed"] resizableImageWithCapInsets:UIEdgeInsetsMake(0, 13, 0, 5)]; [[UIBarButtonItem appearance] setBackButtonBackgroundImage:buttonBack30 forState:UIControlStateNormal barMetrics:UIBarMetricsDefault]; [[UIBarButtonItem appearance] setBackButtonBackgroundImage:buttonBackHighlighted30 forState:UIControlStateHighlighted barMetrics:UIBarMetricsDefault]; [[UIBarButtonItem appearance] setBackButtonBackgroundVerticalPositionAdjustment:-3.f forBarMetrics:UIBarMetricsDefault]; return YES; } </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload