I only wanted to see how my app behaves on first launch, so I deleted it from my iPhone(iOS 4.3), now XCode would show "iOS device" as the active scheme, and when I manually select my iPhone from the list, I get an error (scrolling from the top of the screen) saying Could not launch “project1” No such file or directory (/Users/portal/Library/Developer/Xcode/DerivedData/project1-cfjhjgezzcapwoadaivpptyywptu/Build/Products/Debug-iphoneos/project1.app/project
What might have happened?
I CAN install the app on my iPod (iOS 6) though.
Delete your derived data directory for this project, by doing the following steps:
Close the project, but keep Xcode opened. Go to "Organizer" -> Projects. On the left side, select your project and then click the "Delete" button for the derived data.
Once it's gone, open up the project, run a Product -> Clean and try to redeploy.
If the 'delete' button is greyed out, click on the little arrow to the right of the derived directory path (this will open up Finder). Shut down Xcode, and then send that directory to the trash. Restart Xcode, run a Product -> Clean on the project and try to redeploy.
Related
I have tried the the following https://www.jetbrains.com/webstorm/help/safe-delete.html?search=dele but the safe delete options does not get enabled on the ide.
please try the following:
in WebStorm, close the project
delete it from Recent projects list (in Welcome screen, focus the
project and hit Delete)
shut down WebStorm
delete the project folder completely from your disk
To remove project from Webstorm, go to menu and click on File -> Open Recent -> Manage Projects (at the bottom)
In popop which opens highlight the project you want to delete and click on X beside it
I'm using xcode 6. Its fine to clean but it fails when I choose clean build folders.
Seems like you are restricted to create a build folder in your system root.
In XCode Menu --> Preferences --> Locations Tab --> Locations sub-tab, Change Derived Data to Relative and give any name in text box.
Have a look here which is also a permission problem in Xcode.
It could be due to Xcode bug (at least for me in Xcode 6.3.1). Toggling the location for derived data folder will fix it.
Go to Xcode > Preferences > Locations and change Derived Data to Relative, then back to Default.
Clean build folder again.
I just clean that folder in Finder, then all fine.
In Xcode 14 I clicked "Clean" command which had popped up in the 3rd row from the top and that fixed it.
I am getting very frequent crashes on XCode 6.01 especially when ever I try go to Source Control. I am using SVN.
Is there a workaround I could use ? Is this a known issue ?
It is probably related to the .xccheckout file.
If the project is a xcworkspace, it is located in the xcshareddata folder inside the xcworkspace bundle.
If the project is a xcodeproj, it is located in the project.xcworkspace folder in the xcodeproj bundle.
(The following trick seems to have fixed it for me:
quit Xcode
locate the .xccheckout file
revert this file to what is was when last saved with Xcode 5
reopen the Xcode project. If Xcode prompts for checking out the project from svn, do not press the ignore or cancel button, instead press the next button. In my case, it checked out another copy of my project from svn and the crash does not occur anymore.)
Step 1: Open terminal
Step 2: cd to your project's home directory
Step 3: Use commands below
http://www.linuxfromscratch.org/blfs/edguide/chapter03.html
I have created an app for sphero.
The problem is that i started by opening the sphero sample program ButtonDrive and worked with that as a base. Now i want to change the name of the project and the apk.
I have tried right-clicking the project and renaming it that way, and for the main project that works, however when i run the project as an application unto my nexus 7 is just comes up and says:
" Unfortunately, Button Drive has stopped"
So why doesn't this work?
The tablet clearly thinks the project is still called Button Drive but where in the code do i have to change this to make it work?
or is it just not possible to change the name ?
When you right-clicked on the project in the project navigator did you click rename in the main dropdown, or did you click on "Rename Application Package" within the android tools sub-menu? You should be using the later option.
Also verify that the AndroidManifest.xml Label field is correct, or if it is pointing to a value in strings.xml within res/values verify that the application name is correct.
I where working with a project and I closed because my computer was geting slow. When I tried to open my solution again xcode quitted. So everytime I try to open my project I get this error:
I am not able to open my solution. IS THERE A WAY I CAN RECOVER MY PROJECT!?
Nothing mentioned above/below worked for me. Here's what I did instead:
Right click on the .xcodeproj file and select Show Package Contents. Then delete the project.xcworkspace file. Open the project in Xcode and voilà.
There are a couple of things you can try, first make sure Xcode is not running ,trash the ~/Library/Cache/ folder contents, and trash the contents of the ~/Library/Developer/Xcode/DerivedData/ folder, if you what to can just find the stuff for your project in ~/Library/Developer/Xcode/DerivedData/ and trash just that. Then restart your computer.
If that doesn't work, rename your faulty projects folder to so method like ' old', create a new project of the same name, and then move all of the source files from ' old' to you new project and add them. Its a bit painful I known but I have had to do this once to get a project working again.
Double click the actual file! NOT the recent item!
Turns out that double-clicking on the actual file instead of selecting it from the Welcome to Xcode window will help open the project as expected!
Also, after the first time open it with double-clicking the file, the window will be fixed by itself 🤷🏻♂️
In my case, the project was moved to my iCloud Drive without me noticing it.
If it happens to you too, just go to your Finder, locate the project and check if there is a cloud next to it. Just right click it and "Download now". Try again once the download is finished.
I was having this issue with Xcode 12. Opening Xcode, and selecting my project from 'Recent projects' list was causing Xcode to crash
My solution: I navigated to the folder and opened ProjectName.xcworkspace file, then it worked
If you're working with git, right click the project-name.xcodeproj > Show Package Contents, open the file project.pbxproj and check for conflict and resolve it.
Quit Xcode, then make a copy of the xcworkspace file (just in case). In finder, right-click the xcworkspace file and choose Show File Contents.
In that directory, open the xcuserdata directory and delete any contents. Start Xcode again and open the project.
In my case there was something wrong with the saved project state, so doing this resets the state and it opened normally.
I had the same error and none of the above helped me.
Solution that helped me: Create a new project, then without closing it, go to
File -> Open
and select your .xcworkspace file.