0

Cocos2d apps crash on device but run on simulator just fine.

I get

"error: failed to launch '/Users/user/Library/Developer/Xcode/DerivedData/
appname-erbohpyunldppdeoivvobopinufc/Build/Products/Debug-iphoneos/
appname.app/ appname -- failed to get the task for process 3259"

After reading older posts I tried to:

  • change the app name on Xcode
  • delete app from iphone's springboard
  • change the bundle identifier
  • delete DerivedData folder content
  • in xcode did product->clean
  • restart iphone
  • restart xcode

Nothing worked, I'm using xcode 4.3.2 with iphone 4 ios 5.1. I don't have a developer account yet so I had to disabled code singing (hope it's not the cause), when I run Xcode apps they crush with the same error but when I close and reopen them its work just fine. Only with cocos2d apss they keep crashing. One more thing, any cocos2d code is acting the same when I build it, even the build-in cocos2d examples.

Thanks.

cfedermann
  • 3,286
  • 19
  • 24
ItayAmza
  • 819
  • 9
  • 21
  • If you go to manage schemes and edit the scheme to not use a debugger, does that fix the problem? – ChrisP Apr 14 '12 at 16:00
  • Take a look at my answer to similar question [here](http://stackoverflow.com/a/9142133/1146089)!!! – Giuseppe Garassino Apr 14 '12 at 18:28
  • Thanks for answers, but still I can't find a solution. I'm using cocos2d, and I'm only in first stages of the code, so I haven't access any files yet except the helloWorldLayer. The error is showing in every app I'm running on device, only cocos2d apps keep crushing after I close and reopen. Will it help if I post the crash log? – ItayAmza Apr 14 '12 at 21:29
  • Well, I just noticed that you have disabled code signing... That is probably your issue. – Giuseppe Garassino Apr 14 '12 at 21:38
  • really?! so threre is no way to launch cocos2d apps without dev account? – ItayAmza Apr 14 '12 at 22:59
  • The official way to test an app on a real device is having a dev account, maybe there is some workaround, but I really can't help with that. Have you tried to post on cocos2d forum? – Giuseppe Garassino Apr 14 '12 at 23:17
  • i thought that xcode causing the problem because i get the same error with none-cocos2d apps, that work eventually. i'll try asking in cocos2d forum. thanks – ItayAmza Apr 15 '12 at 19:50

0 Answers0