Archive for the ‘XCode’ Category

Xcode Installation Failed


Installing xcode4 on Mac OS X 10.6.7 or 10.6.8 would sometimes failed

To resolve this issue, just set your system time to January 1, 2011 or earlier, as the certificate that signed the package has expired.

Xcode Installation Failed.

No Comments


Warning: Multiple build commands for output file /Users/


To solve this problem the following procedures will do it;

  1. Goto View->Navigators->Project
  2. Select the root node in the left treeview, then select the Project Name under TARGETS . see image below.
  3. Select Build Phases
  4. Delete the files in red under “Copy Bundle Resources”

XCode project tree

, ,

No Comments


How to Enable Zombie in XCode 4

To enable Zombie you have to add it in the Environment variables, in xcode 4, Environment variables are now part of the “scheme”. Scheme as stated from apple documentation “A scheme is a collection of settings that specify which targets to build, what build configuration to use, and the executable environment to use when the product specified by the target is launched.”

To add the NSZombieEnabled variable follow the steps below

  1. Navigate to Product->Edit Scheme
  2. Select Run “ProjectName” from the left pane
  3. On the right pane, click + under Environment Variables to add the NSZombieEnabled

,

No Comments


How to add photos to the Iphone Simulator

To add photo into the iphone simulator just follow the steps below:

  1. Run your xcode project or the iphone simulator
  2. Drag and drop the image from you mac onto the simulator, this will open a internet browser(safari as thee default) with your image
  3. Press the left mouse button and hold until the options appear (save image, copy and cancel)
  4. Select save image.

, ,

No Comments


[setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key label.


This is the result when you updated the variable/property name in the xcode script and it was already connected to a nib file. Let see you have declared as the following:

UILabel *label

next, you connect that into a nib file control. And then, go back to the xcode and rename it from “*label” to “*newLabel”.

To resolve this issue you need to disconnect/remove the link in the nib file and connect it again to the new name.

, ,

1 Comment


terminate called after throwing an instance of ‘NSException’ Error Xcode

I’m just newbie on iphone development and using xcode as their IDE.
When I ran a program that I copied from the book, the program did run appear. Then i saw the “terminate called after throwing an instance of ‘NSException’ error in the debug window.

One solution that I have done is that

  • Open the .xib file
  • Connect the “view” to the “File’s owner”
  • and it work.

    < ol>

    , , ,

    1 Comment


    How to delete installed applications in Iphone simulator

    1. Run the project
    2. Press and hold the mouse on any project apps icon in the simulator until it starts wiggling, you should see a delete icon(x)delete_apps_simulator
    3. Hit the X button to delete.
    4. Click the Home button to stop the deletion

    , ,

    No Comments


    Base SDK Missing


    Error:

    base sdk missing

    base sdk missing

    Solution:

    1. Goto Project menu
    2. Edit Active Target ‘Project Name’
    3. Under Build Tab, change the Base SDK

    , , ,

    No Comments



    SetPageWidth