Select to view content in your preferred language

missing files when breakpoints are present

1989
12
08-29-2011 12:33 AM
PaulLohr
Frequent Contributor
iOS SDK version 2.0.
OS X Lion version 10.7.1.
Xcode 4.2 (in use).
Xcode 3.2 (also installed).
iOS SDK 5.0 (deployment target is 4.3).
Compiler is LLVM gcc 4.2 (no automatic reference counting).

After placing a breakpoint in an implementation file and running the program in the simulator, I receive a message about a missing file related to the AGS object that was referenced near that breakpoint. The program cannot continue at this point - the same error message displays if I press the "step into" button.

Running the program on the simulator or device produces the same error messages.

If I place a breakpoint near AGSGraphic and run the program, this message is displayed:
Can't show file for current stack frame

The file /build/iosbuildbot/build/iOS/ArcGIS/Classes/Core/Models/AGSGraphic.m does not exist on the file system.


If I place a breakpoint near AGSTiledMapServiceLayer, this message is displayed:
Can't show file for current stack frame

The file /build/iosbuildbot/build/iOS/ArcGIS/Classes/Core/Models/Layers/ArcGISServer/AGSTiledMapServiceLayer.m does not exist on the file system.


I found that the error messages only appear if breakpoints are present and I am stepping through the code. Using "continue" with breakpoints does not produce an error message. Without any breakpoints, the map loads just fine.

I believe I have checked all the obvious settings. I reinstalled the SDK. Still the same error messages appear. Then, as a test, I started a new project (still using Xcode 4.2) from an ArcGIS iOS template.  The implementation and xib files were created as empty files (xib can't even be edited). Obviously something is not right. It seems that something may be incorrect about the installation...?

Interestingly enough, if I create a new ArcGIS project with Xcode 3.2, the implementation files and xib file contain the expected content - the project can be built and run without problems.

Thank you for any help,
Paul Lohr
0 Kudos
12 Replies
PaulLohr
Frequent Contributor
Hello Nimesh,

Thanks for stepping in to help me with this again. I have attached a few screen shots - a breakpoint and an error message. Keep in mind that this type of error will come up with a breakpoint set near any call to any AGS class. If you need anything else to make this easy, just let me know. Much appreciated.

Paul Lohr
0 Kudos
NimeshJarecha
Esri Regular Contributor
Paul,

It's not logical for you to "Step Into" code of AGS classes. You should do "Step Over" at these places. If code is your's and you can debug then only you should "Step Into".

Please do a google search for the error and you'll get to know it's a common thing, not specific to our library.

Hope this helps!

Regards,
Nimesh
0 Kudos
PaulLohr
Frequent Contributor
Thanks for taking your time to work on this, Nimesh.

Your solution is good...I can see the values for each variable using Step Over which was definitely a concern. This had me hung up for a while but now I'm glad there is a solution.

On my part I should have done more experimenting with Xcode so that maybe I could have figured this out and would not have needed to bother you. But I sure appreciate the help.

Thanks again,
Paul Lohr
0 Kudos