AppCode & iPad3 : How to avoid "Unknown device error" - appcode

How to build & run for iPad3 with AppCode (v1.5)
Xcode works fine with iPad3. Appcode gives "Unknown device error".
Appcode works fine with the same project for iPad1.
Am i missing anything or is AppCode not yet able to do this ?

The very simple solution that worked for me (With input from another user from the AppCode Issue Tracker):
detach USB
Shutdown/Restart iPad
Attach USB.
Restart AppCode (might not be needed)
Build/Run again.
Many thanks to the great AppCode Devs for exceptional responsive and helpful support (Not only in this case).
Update:
Some people still have this (or a related) issue. Also it could be that my own solution is not permanent. (I am not building on my iPad3 a lot at the moment) For reference: the Jetbrains Issue Tracker for AppCode: http://youtrack.jetbrains.com/issue/OC-3370

Related

No debuggable process: Android studio 3.4.1

I'm more of a newbie into the world of programming but my journey has been a good one with the knowledge I have gathered thus far. However, I'm experiencing quite a problem that no one seems to have a solution to (considering I have been browsing the internet for 2 hours without luck). Android studio shows "No debuggable process" in the logcat and then shows some code running endlessly and the emulator doesn't run. I have updated the drivers of my Samsung phone (A20 - API 28) from the internet but this seems not to work. I am using Android version 3.4.1. I doubt I am that specific but if anyone can help I can provide more details.
Have You enabled adb integration? (to do that just go to Tools-->Android-->Check Enable ADB Integration). Maybe this process can resolve the issue.
Enable ADB Integration is removed from 3.+ versions. It gets active automatically. Still if you want to reset-set it.
You can check Preferences->Build,Execution,Deployment -> Debugger -> Use libusb backend(check/uncheck) it.
Just have the same problem after download Android Studio version 4.1 and checked to Preferences -> Build, Execution, Deployment -> Debugger -> Use libusb backend I found out that Use libusb backend is unchecked by default. Try to check it solve the issue for me

XCode 6.1crash on run project

I upgraded XCode to versin 6.1 (6A1052d) and now my project crash when i try to run it on simulator.
Doesn't happen all times. The pattern seams to be after i made code changes.
No exception is throw, the XCode just restart as nothing happened.
It's running on Yosemite 10.10.
I already try:
change the computer language to english U.S and region to U.S, which was recommended to fix a similar problem in a early version.
recreated the project. Project has both Swift and objective-c, shouldn't matter but anyway...
find info on xcode logs. No logs are generated at library\logs when this happens. Any place where i can find xcode logs?
This is odd, i don't believe that xCode release its so buggy that don't run properly, so must be something less usual in settings or in project that testers missed, but have no clue of what.
fwiw, I found that this issue doesn't happen if I use the cmd-R hotkey instead of clicking the Play button.
I can also verify that this isn't a crash. It's as if the Close Workspace command is being invoked at the wrong time. Definitely a defect though.
I'm on Yosemite 10.10.1 running the latest Xcode 6.1.1. The project was upgraded from Xcode 5.1.1 where it continues to work fine. Not using Swift. US English. Pretty standard install.

Strange application behavior when building a project with the latest xcode/OSX version

I have an OSX application written in Objective-C/Cocoa using xcode. The application is quite finished, tested and sold on the App Store.
I haven't worked on this application for some time and recently, I rebuilt it using xcode 4.3.3 on my OSX 10.7.4 and I noticed that while it builds just fine, there are some very strange visual glitches when running the application that were never seen before and occasionally, I get EXC_BAD_ACCESS when closing the application. All these seem to be related to the PDFKit framework I am using. I am unable to debug these problems since the glitches are just visual (nothing I can check in code) and EXC_BAD_ACCESS exception comes from internally allocated objects not related to my code.
The code itself haven't changed, I tried previous revisions of the code and they all exhibit the same strange behavior now. I tried running an old binary I have of the application (compiled couple of months ago) and it works just fine. Then I tried building it with previous versions of xcode, down to 4.2.1 (which I know was ok when I submitted the app to the app store) and the problems still occur.
Then I suspected this may be something specific to my environment so I built the project on different machine also with xcode 4.3.2 and OSX 10.7.4. Same results, the problems are still there.
So now I suspect that it has something to do with the OSX 10.7.4 update since this is the last thing that was changed between now and when I was able to produce a good build of the application. I am pretty puzzled to what to do next and how to identify the cause of this problem. I have an old binary that is working fine and I have a newly compiled binary of the same code revision that has problems.
Is there any useful information I can get from the difference of these binaries? What can I do to determine the cause of these problems? What can I try next?
Thanks!
NOTE (update): I stated it above but I want to make sure it is clear. This is a Mac OSX Cocoa application, not iOS.
just reset your simulator then try.
I hope you check the ARC information
go to your project Target set build settings --> Search Paths-->Always Search User Paths Set Yes.
And check your all class variables different from one another.
Xcode--> preferences-->Documentation check installed core Libraries (or) install it
like that
Xcode--> preferences-->Components check required component installed or not
check these things in your project.
Are you sure your customers are not having the same problem? Since you have tested the application on a different machine you probably do not have corrupt libraries installed (unless you did not install from scratch but used some migration tool?), so that is probably not the problem.
Most logical explanation to me would be that your customers also have this problem but they haven't reported it yet. In that case, you probably have a memory problem and there are techniques to attack that.
In any case, eliminate all the parameters that you can eliminate to simplify the problem. Deconstruct the application until the problem does not occur anymore or reconstruct the application in a different project until the problem occurs again.
It sounds like a nasty one, but you'll get there in the end, with patience and perseverance :)
First of all, you need check and verify the build log for suspicious compiler warnings.
For EXC_BAD_ACCESS, XCode analysis will give useful information.
You could try 10.6 or 10.5 (need manual installation) SDK. Or restrict the deployment target to 10.5 or 10.6.
I will answer my own question (since none of the above answers really answer it) so anyone with a similar problem might have a hint. I was not able to understand why exactly this happens but I'm pretty sure this is not a problem with my code but rather some glitch on Apple's side. And there is a workaround.
First, I compiled Apple's sample "PDF Annotation Editor" project on my Lion 10.7.4 and while the functionality is obviously different from my project, it also exhibited similar glitches with the PDFView display that my project does when compiled with 10.7.4
Then I proceeded to building a fresh clean system on new hard disk. Intalled Snow Leopard and upgraded to 10.6.8 and ONLY installed xcode. Compiled my project (the source code always stays exactly the same) and everything works fine. No problems seen in the compiled project.
Updated my OSX to Lion 10.7.4 and xcode 4.3.3, same source code. The problem is there after I compile it. I am pretty sure that if I tried 10.7.3 first, I would not see the problem as I remember it only starts with 10.7.4 but Apple doesn't provide any reasonable way to update to 10.7.3 first or downgrade to it after 10.7.4 is installed (shame on them, not very developer friendly!).
So, the problem appears in 10.7.4.
Then I installed the pre-release version of 10.7.5. This was the only thing that was changed, same source, same xcode. To my surprise, the compiled code works flawlessly now and the problems seen with 10.7.4 are now gone!
So my workaround - wait for 10.7.5 release before working on the project further. Hopefully Apple won't screw it in the future with Mountain Lion. I don't think I am going to try and debug it further or submit a ticket to Apple, going to be a tough case to explain.
Thanks for the responses.

Xcode Internal error and no project opens

Im on 10.6 and using xcode 3.2.6. On xcode launch (however i launch) i get an xcode "internal error' popup telling me:
File: /SourceCache/DevToolsBase/DevToolsBase-1809/XcodeFoundation/Specifications/XCSpecification.m
Line: 448
Object:
Method: registerSpecificationProxiesFromPropertyListsInDirectory:recursively:inDomain:inBundle:
path should be a string, but it is nil
I can 'quit' or 'continue'. Continue launches xcode. The problem is that once open if i double click an .xcodeproj - nothing happens within xcode. To open a project I have to manually go file->open and navigate to the file.
Google gives a couple of similar issues - including this one
http://lists.apple.com/archives/mac-games-dev/2011/Mar/threads.html#00001
And i've tried everything i can think of with no joy, (Including down grading to the xcode on the OS DVD).
It looks like it can be an issue with whatever particular version of Xcode that you have running. It might be a good idea to get the latest and greatest to see if it's an issue with the Xcode software itself.
I was just hitting this and fixed it by removing a dead symlink at:
~/Library/Application Support/Developer/Shared/Xcode/Plug-ins
This thread tipped me off (although it wasn't Airplay in my case).

Refactoring Problem XCode 4.0.1

So i was trying to refactor the name of a class in XCode following the steps in my text book. I'm sure I'm doing everything right and I downloaded XCode off the App Store. Basically, whenever I right-click -> refactor -> name -> preview, xcode crashes. Here's the error:
ASSERTION FAILURE in /SourceCache/DVTFoundation/DVTFoundation-227/Framework/Classes/Utilities/DVTTask.m:208
Details: The launch path must be set before launching.
Object:
Method: -launchRunningTerminationHandlerOnQueue:error:terminationHandler:
Thread: {name = (null), num = 15}
Hints: None
Any Ideas?
Thanks
P.S., sorry, i dont know how to using the quotes
EDIT: Fixed. I reinstalled with the package in side resources under "Show Package Contents" -> Resources -> XCODE and IOS SDK
If Xcode itself crashes, that's a bug in Xcode and you should report it. Using the Refactor command to rename a class definitely works at least some of the time -- I just tried it twice with Xcode 4.0.1 and the preview comes up with no problem.
I'd suggest creating a new project and trying the Refactor command there. If it works and doesn't crash, then your existing project may have something to do with the problem. If it doesn't work, that might suggest that the problem is related to your Xcode installation or machine configuration. This is just an attempt to help you find a way to work around the issue, though... Again, if Xcode is crashing, then there's a problem in Xcode.
Workaround:
Quit and restart Xcode before every attempt to use 'Refactor'.
For me on Lion running Xcode 4.4.1, a Refactor causes a crash every time if I've been doing any work. Even the simplest 'Rename' operation results in a crash.
If I restart Xcode, and make my first operation a 'Refactor', it works every time.
Further tip: It's a good time to make a backup, while quit before running a Refactor.