Cannot run on device with AppCode 1.5.2 (XCode 4.3.2)

After the AppCode 1.5.2 update I can no longer run my project on the device from AppCode. It works fine in XCode 4.3.2.

The error I get is:

Unknown device error <directory of app>
Execution finished
Process finished with exit code 0




2012-03-25 16:05:19,461 [ 940250]   INFO -            #com.jetbrains.cidr - /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -workspace /Users/linchear/devel/rider/rider.xcodeproj/project.xcworkspace -scheme rider -configuration Debug -sdk iphoneos5.1 SYMROOT=/Users/linchear/Library/Caches/appCode10/DerivedData/rider-4671d8ae/Build/Products OBJROOT=/Users/linchear/Library/Caches/appCode10/DerivedData/rider-4671d8ae/Build/Intermediates ARCHS=armv7 ONLY_ACTIVE_ARCH=NO TEST_AFTER_BUILD=NO build
2012-03-25 16:05:35,720 [ 956509]   WARN - brains.cidr.execution.debugger - Unknown device error
com.intellij.execution.ExecutionException: Unknown device error
     at com.jetbrains.cidr.execution.ExecutionResult.get(ExecutionResult.java:37)
     at com.jetbrains.cidr.execution.debugger.IPhoneDebugProcess$5.run(IPhoneDebugProcess.java:207)
     at com.jetbrains.cidr.execution.debugger.OCDebugProcess$MyCommandProcessor.consume(OCDebugProcess.java:564)
     at com.jetbrains.cidr.execution.debugger.OCDebugProcess$MyCommandProcessor.consume(OCDebugProcess.java:561)
     at com.intellij.util.concurrency.QueueProcessor$1.consume(QueueProcessor.java:82)
     at com.intellij.util.concurrency.QueueProcessor$1.consume(QueueProcessor.java:78)
     at com.intellij.util.concurrency.QueueProcessor$3.run(QueueProcessor.java:204)
     at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:434)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:680)
     at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:145)
Caused by: com.jetbrains.cidr.execution.deviceSupport.AMDeviceException: Unknown device error
     at com.jetbrains.cidr.execution.deviceSupport.AMDeviceUtil.doInstallAndStartDebugserver(AMDeviceUtil.java:69)
     at com.jetbrains.cidr.execution.deviceSupport.AMDeviceUtil.installAppBundleAndStartDebugserver(AMDeviceUtil.java:41)
     at com.jetbrains.cidr.execution.deviceSupport.AMDeviceUtil$2.run(AMDeviceUtil.java:88)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$TaskRunnable.run(ProgressManagerImpl.java:457)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:178)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:206)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:169)
     at com.intellij.openapi.progress.impl.ProgressManagerImpl$7.run(ProgressManagerImpl.java:366)
     ... 8 more
2012-03-25 16:05:35,809 [ 956598]   INFO - brains.cidr.execution.debugger - Execution finished
com.jetbrains.cidr.execution.ipcUtils.ProtobufFailedToSendRequestException: Execution finished
     at com.jetbrains.cidr.execution.ipcUtils.ProtobufClient.sendMessageAndWaitForReply(ProtobufClient.java:366)
     at com.jetbrains.cidr.execution.ipcUtils.ProtobufClient.sendMessageAndWaitForReply(ProtobufClient.java:375)
     at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.addSymbolicBreakpoint(LLDBDriver.java:496)
     at com.jetbrains.cidr.execution.debugger.OCDebugProcess$OCExceptionBreakpointHandler.doAddCodepoints(OCDebugProcess.java:1084)
     at com.jetbrains.cidr.execution.debugger.OCDebugProcess$OCCodePointHandlerBase.doRegisterBreakpoint(OCDebugProcess.java:824)
     at com.jetbrains.cidr.execution.debugger.OCDebugProcess$OCCodePointHandlerBase$1.run(OCDebugProcess.java:816)
     at com.jetbrains.cidr.execution.debugger.OCDebugProcess$MyCommandProcessor.consume(OCDebugProcess.java:564)
     at com.jetbrains.cidr.execution.debugger.OCDebugProcess$MyCommandProcessor.consume(OCDebugProcess.java:561)
     at com.intellij.util.concurrency.QueueProcessor$1.consume(QueueProcessor.java:82)
     at com.intellij.util.concurrency.QueueProcessor$1.consume(QueueProcessor.java:78)
     at com.intellij.util.concurrency.QueueProcessor$3.run(QueueProcessor.java:204)
     at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:434)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:680)
     at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:145)
2012-03-25 16:05:35,810 [ 956599]  ERROR - brains.cidr.execution.debugger - Assertion failed:  
java.lang.Throwable
     at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:98)
     at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:105)
     at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.launch(LLDBDriver.java:302)
     at com.jetbrains.cidr.execution.debugger.OCDebugProcess$9.run(OCDebugProcess.java:354)
     at com.jetbrains.cidr.execution.debugger.OCDebugProcess$MyCommandProcessor.consume(OCDebugProcess.java:564)
     at com.jetbrains.cidr.execution.debugger.OCDebugProcess$MyCommandProcessor.consume(OCDebugProcess.java:561)
     at com.intellij.util.concurrency.QueueProcessor$1.consume(QueueProcessor.java:82)
     at com.intellij.util.concurrency.QueueProcessor$1.consume(QueueProcessor.java:78)
     at com.intellij.util.concurrency.QueueProcessor$3.run(QueueProcessor.java:204)
     at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:434)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:680)
     at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:145)
2012-03-25 16:05:35,811 [ 956600]  ERROR - brains.cidr.execution.debugger - JetBrains AppCode 1.5.2  Build #OC-115.48
2012-03-25 16:05:35,811 [ 956600]  ERROR - brains.cidr.execution.debugger - JDK: 1.6.0_29
2012-03-25 16:05:35,811 [ 956600]  ERROR - brains.cidr.execution.debugger - VM: Java HotSpot(TM) 64-Bit Server VM
2012-03-25 16:05:35,811 [ 956600]  ERROR - brains.cidr.execution.debugger - Vendor: Apple Inc.
2012-03-25 16:05:35,811 [ 956600]  ERROR - brains.cidr.execution.debugger - OS: Mac OS X
2012-03-25 16:05:35,811 [ 956600]  ERROR - brains.cidr.execution.debugger - Last Action: Debug
2012-03-25 16:05:35,814 [ 956603]   WARN - brains.cidr.execution.debugger - Execution finished
com.jetbrains.cidr.execution.ipcUtils.ProtobufFailedToSendRequestException: Execution finished
     at com.jetbrains.cidr.execution.ipcUtils.ProtobufClient.sendMessageAndWaitForReply(ProtobufClient.java:366)
     at com.jetbrains.cidr.execution.ipcUtils.ProtobufClient.sendMessageAndWaitForReply(ProtobufClient.java:375)
     at com.jetbrains.cidr.execution.debugger.backend.lldb.LLDBDriver.launch(LLDBDriver.java:315)
     at com.jetbrains.cidr.execution.debugger.OCDebugProcess$9.run(OCDebugProcess.java:354)
     at com.jetbrains.cidr.execution.debugger.OCDebugProcess$MyCommandProcessor.consume(OCDebugProcess.java:564)
     at com.jetbrains.cidr.execution.debugger.OCDebugProcess$MyCommandProcessor.consume(OCDebugProcess.java:561)
     at com.intellij.util.concurrency.QueueProcessor$1.consume(QueueProcessor.java:82)
     at com.intellij.util.concurrency.QueueProcessor$1.consume(QueueProcessor.java:78)
     at com.intellij.util.concurrency.QueueProcessor$3.run(QueueProcessor.java:204)
     at com.intellij.openapi.application.impl.ApplicationImpl$6.run(ApplicationImpl.java:434)
     at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
     at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
     at java.lang.Thread.run(Thread.java:680)
     at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:145)
2012-03-25 16:05:43,852 [ 964641]   INFO - s.impl.stores.FileBasedStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/fileColors.xml file is null
2012-03-25 16:05:43,852 [ 964641]   INFO - .impl.stores.XmlElementStorage - Document was not loaded for $PROJECT_CONFIG_DIR$/fileColors.xml

2 comments
Comment actions Permalink

Please follow http://youtrack.jetbrains.com/issue/OC-3370, it describes the similar problem.
There is a workaround given, let us know if it helps you or not.

0
Comment actions Permalink

I think it fixed itself. The order of which I installed the updates seemed to matter.

AppCode updated itself to 1.5.2, but still had xcode 4.3.1

The Mac App Store prompted me to install Xcode 4.3.2, so I did and that's when things seemed to break.

I reinstalled AppCode 1.5.2 from scratch overwriting the previous install. That didn't seem to work until today, when I retried debugging on a whim.

Somehow, it worked today and I don't know why. So far so good though.

0

Please sign in to leave a comment.