Xcode4 debugging - iphone

Today I started xcode and opened my project and the code is different, it have lost its colors, for each variable, nsstring ect..
when i build my project into my iphone, i dont get the GUI im making.. no matter what changes im making in xcode, im getting the GUI as when i builded it here in the morning..
What chould have happend and what can i do?
Thanks.

Delete your build folder and retry.
If you don't know where to find your Build folder got to:
/Users/%USERNAME%/Library/Developer/Xcode/DerivedData/%projectname*/
That is the default folder for XCode 4 to place the projects buildfolders in.
Edit***
Sorry, forgot one folder.

Related

Unverified breakpoint in VSCode in Flutter

My debug mode does not work as I see the unverified breakpoint notice in VSCode in debug mode.
I already checked the Launch json file and it is fine, but something else is wrong which I do not see what it is. Maybe something related to paths, etc.
I tried to make a new project in VSCode using the command and the new default Flutter project is OK.
So it seems like, if I can make a fresh project from my current project then my problem could be solved. But how? I tried to move my files from my current project to the newly made Default Flutter project but I do not think this is the way. Because I guess some of the files in my project are the source of issues...
I already deleted .vs file but no help.
Do you have any good idea how to fix this issue?
First try cleaning the project files using flutter clean then flutter pub get, try running the app without debugging and if you are down for making a new one just move the lib and assets folders and copy the content of pubspec.yaml file.

Why doesn't Xcode recognize Main.storyboard?

I am running Xcode 9.2 on 10.13.3 and just today ran into a problem with Xcode not recognizing Main.storyboard on an app that I am building. It worked on Friday and then today when I opened the app to work on it I get the following error:
.../Base.lproj/Main.storyboard: Interface Builder could not open the
document Main.storyboard" because it does not exist.
Visually the file is there but does not respond. It is listed correctly in info.plist.
I tried pulling versions from Time Machine from last week and I still get the same error.
Is there anything short of rebuilding the storyboard that I can do to get Xcode to recognize it?
Did you try Removing the storyBoard and Re-Add it in Main Bundle ? Just make Copy of your Storyboard and Delete it from Xcode Project and Again Drag And drop the copy made in Xcode Project with check Copy items into destination group's folder (if needed)
And
Also check
Link - Interface Builder could not open the document ".storyboard" because it does not exist
Other options are Also Provided there
When you upload your file to google drive without zip, it appends the extension of .storyboard to .xml automatically and hence when you download it obviously the file won't exist. To solve this issue, go to the [project folder]>[Project folder]>[Base.lproj]. There would be a .storyboard.xml extension type of file which you would have to rename it to the .storyboard extension. And hence your work is done.
Story board error solving visual guide.
Delete derived data. The location is under xcode>preferences
Follow below steps:-
1.Save a copy of the affected file outside of the project
2.Delete the file from the project, selecting Move to Trash to completely
3.delete the file and reference from the project
4.Edit ProjectName.xcodeproj/project.pbxproj to remove all lines referencing the affected file Re-add the file, making sure to check
Copy items into destination group's folder (if needed)
5.Clean and build
Try opening Xcode and go to runner then double click on the main storyboard then uncheck runner , that worked for me.

Iphone app archive - No such file or directory

I am almost ready to release my iphone app. I use restkit for consuming my webservice. When I archive, it fails with this error:
cp: /Users/myusername/Library/Developer/Xcode/DerivedData/project-name-/ArchiveIntermediates/project-name/IntermediateBuildFilesPath/UninstalledProducts/include/RestKit: No such file or directory
I dragged & dropped restkit into the project. It builds and works fine in debug mode. I am guessing it is unable to locate restkit dir while archiving. But I am not sure why. Any thoughts?
I've had trouble linking with my own framework in the past, but I have a procedure that works. Even though I don't understand it, it works so I follow it like voodoo, and I don't risk angering the gods by asking too many questions.
Here's what I'd try on your project (again, partly voodoo here):
Navigate to the Frameworks folder in the project nav, select the RestKit and delete it with the delete key. Just delete references.
Using Finder, option-drag (copy) the framework from wherever you first got it
(~/Downloads, or another project or wherever) into your project directory, replacing files if prompted.
Back in your project, select the project, then the target, then build phases.
Open the link binary section, hit "+", then the "Add Other.." button on the bottom of the dialog
Browse to the framework you copied in in step 2.
See if you can clean, build, archive. Easy enough to try, and no livestock are harmed. Hope it works for you.

Adding assets to Xcode problem

I've an Xcode project which has been using svn, but we had to stop using it. Since then when ever I try and Add files to the project I get the error window below. The files actually get added to the file system (using Finder), but not to the project,so not displayed in the file system in XCode and therefore can't be accessed.
I found the answer myself.
Just make sure you delete all the hidden .svn files / folders

moving the source folder crashes my app

i have a weird problem .. maybe the solution is simple but i'm just a newbie in iPhone app development
the problem is:
i have created xcode iphone project , tested is and it was running well.
copied the project folder to my desktop . opened the project from the new location . tried to run the app, the simulator opens and the application crashes!!
any solution ? is there anything i need to clean in the project
files ?
Maybe you're using absolute paths in your code ?
Maybe something with additional resources you added before.
Try to look first for those kind of things.
In xcode, Go through every file in your project that resides within your project folder, right click on them in the hierarchy tree to the left, select get info, go to the general tab and change the Path Type to "Relative to Project"
What sort of project did you create?
I created a simple View-based application in my Documents folder. I built and ran it in the simulator successfully. I then quit Xcode, dragged the project folder to the desktop. I reopened the project and ran it successfully in the simulator again.
Did you make any changes at all to the project? I can't repeat what you've experienced. Is there anything different between what we did?
How about creating your project on the desktop in the first place? Does that work?
Are you running as an administrator account? Sometimes there are problems with Xcode if you run in an account where the user isn't a member of the Dev group.