Why is Xcode 4 not running my latest build? - ios

I was originally working from my desktop on a project. I then decide to continue working on the same project over at a friend's house. I come home and decide to use the newest project (on a different folder even) open the project I run it and it shows the same thing I had before... for some reason it appears nothing got updated.
Any ideas why this is occurring?

You might try cleaning the project (Command-Shift-K) to see if that helps. I usually have to do this when I don't change code and only change a resource such as a xib or image file.

Related

old Ios App Icon Is availlabe even after changing

I have an app where I recently replaced the app icons, I removed all of the old assets from everywhere in the project.i removed cache and also uninstalled the app from mobile. After installing and running I am getting the deleted App Icon again in the App
Completely delete the binand obj folders in your project folders (all projects from solution).
This might help on top of what you've already tried.
Other possibility is, you have forgotten a resource ;)
Often times, the problem is between the keyboard and the chair.
Try this solution :
Use "Build > Clean all Targets" and then build and run. Xcode doesn't always see that images have been updated, and leaves them out of incremental builds. Cleaning before building makes Xcode build the app file from scratch, and will pick up any images it's failing to get
Clean and build your project.most of the case it works. :)

Fix duplicate working copies in Xcode with SVN

I have an Xcode project I am working on with several other people. Everything has been going fine until recently source control (SVN) has shown up with two working copies on my computer. One of them is the actually project (what I want) but the other one has become the Asset Catalog somehow. How do I fix this?
Check in all your changes, and try to clean up working copy if still it doesn't work delete the working copy and check fresh repo code.

changes in MainStoryboard doesn't effect the app

I've made a few changes in my app, the changes are in the MainStoryboard.
When I click run, the changes doesn't appear in the application. What is the problem?
Example: I add a label in the main screen and when I click run I can't see this label.
I had this issue after I started internationalizing my project. I had one storyboard and two strings files. However, when I hoked around in the project using Terminal, I found that the old version of the storyboard was still there, so I moved it out.
All that said, to fix the issue I had to physically delete the app from the device/simulator and run it again. Performing a clean build didn't work for me.
If performing a clean build and deleting the app from the device/simulator doesn't work, then have a look inside your project directory for any rouge storyboard files.
clean your build folder. Complete remove all the build that are already install in your device or simulator.
I have also the same problem, actually I have two build install in the simulator with different identifier that is causing the problem

How does Xcode compile files when changes are made in a project?

I am new to iOS programming and Xcode. Please help me understand how does Xcode compile and run the code.
Ideally an IDE knows the changes made in the progranm and the next time when we compile or run it, it knows which files need to be compiled again. But while I was trying to add storyboards in a project which was working fine with a few ViewControllers and XIB files,
I moved the view from an existing xib file to a ViewController in the storyboard and changed the name of the class to its respective ViewController in the Identity Inspector and I deleted the XIB file. When I ran the program, I didn't see anything different happening. Out of curiosity I deleted all the XIB files and then again ran the program but the still the project ran perfectly.
Then finally I deleted all the files present in my project and when prompted to either "Send to Trash" or "Remove References" I chose remove references and again built and ran the application, but there was no problem and again it ran perfectly.
After that I closed the project and again opened the project from the 'Finder' and ran it this time finally I got more than 30 errors which were not resolved even after I added all the files back to the project in Xcode.
Please help me understand how Xcode compiles the projects and also that what I may be doing wrong to move the views in the XIB files to "Storyboard" in a project.
You are right in your understanding that XCode should detect changes and know when to rebuild things, however, XCode is not perfect, and is sometimes buggy. You can "Clean" the project under the Product menu to get it to rebuild.
You did not say if you were running on the simulator or not. I often have problems when adding or removing resources and running on a device. To fix these issues, you can delete the app on the device.
Restarting XCode also often fixes issues.
Also, ensure you have the latest version of XCode.
If you get to the point where you can recreate issues, consider submitting a bug report.

Phonegap/Cordova 2.0 - Not populating within app

I have created one project successfully with Cordova2.0 on iOS. That was the first project that I created in cordova2.0 and everything went well.
The issue comes when I attempted to create another new project with cordova2.0 in IOS and the project is nearly fully created except that the cordovaLib.xcodeporj package is empty and the app will not even run its initial build.
Has anyone else had this issue? If so, what was your solution?
Make sure you don't have the first project open. You cannot have the cordova sub-project open in two projects at the same time.
Have you copied the bin directory to your home and ran the command from there? This issue happened to me when I ran with bin directory from the mounted installer.

Resources