Please note: This is a pure Xcode question at heart, the fact that I mention ARKit, SceneKit and DAE files is only incidental. Anyone who knows how to deal with Xcode crashing should be able to answer this, regardless of their level of knowledge of ARKit/SceneKit/DAE files!
I'm playing around with ARKit and SceneKit and used Blender to export a 3D model to Collada/DAE format. I then opened my Augmented Reality project in Xcode 9, and dragged-n-dropped the folder containing my DAE file under the Resources/Models.scnassets folder in my project. Hence the contents of my project's Resources/Models.scnassets folder were now:
Resources/
Models.scnassets/
dog/
cat/
myblenderdaemodel/
myblenderdaemodel.dae
Where myblenderdaemodel/myblenderdaemodel.dae is the folder + file I just dragged and dropped into my project.
I then attempted to open the myblenderdaemodel.dae file by clicking it, and Xcode immediately crashed.
I re-opened Xcode and it automatically opened my project and then automatically tried opening my DAE file (since that was the last file that was opened before the crash), and it crashed again.
So I tried opening a different project in Xcode, which I am able to do. But anytime I attempt to open my "unhealthy project" in Xcode it attempts to first open my DAE file and crashes.
I open Xcode by opening an .xcodeproj file of another project
I then close that other project and attempt to open my sick/unhealthy project that is crashing
It attempts to open/load my DAE file in the DAE editor (since it was the last file opened)
It immediately crashes
Although I am interested in understanding why my DAE file is crashing Xcode, I don't really care about this file, I just wanted to play around wth it. I do care about my project however!
So on the terminal I removed the myblenderdaemodel folder from its Resources/Models.scnassets parent directory, and also used grep to confirm there weren't any other references to the phrase myblenderdaemodel inside my project folder. I am convinced it has been completely removed, as well as any references to it have been removed...
But I am still unable to open Xcode...the 4 steps above keep happening, Xcode is convinced there is still a file in my project called myblenderdaemodel.dae and it is attempting to open it.
My theory is that perhaps Xcode stores project information inside its own directory somewhere, and when you load that project, it pulls data from this cache and loads the project with that data, and perhaps that data still contains references to my (now deleted) DAE file.
Either way, what's the fix here? How do I open Xcode in such a way
I'm working with XNA 4 in VS2010. Recently a crash corrupted a .contentproj file of mine. So I deleted the content project inside VS, created a new one and repopulated it with the contents of the old one. However the new content project did not properly hook up to the rest of the program, whenever I build the program its contents aren't translated to .xnb-s and placed inside the content folder of the game as when I built the program with the original content project.
I'm sure I'm missing a step in reconnecting the new content project, I just can't seem to be able to find out what that step is. Any ideas?
Thank you.
Take a look at the properties of the imported files in Visual Studio and check they are correct. Check the Build Action specifically. It should be set to Compile.
I found a way to make it work. More a workaround than a solution, I created a new VS solution, imported everything other than the content project from the old one and used the content project that came with the new solution.
Win 8.1
JAVA-ADT ver 22.3 first installed last week with updates
Android SDK Manager used to get needed files for JellyBean
I followed the instructions for creating MyFirstApp.
It worked just fine until I "Close all" then "delete" project from Package Explorer.
When Importing or New-project-Android project from existing code-root directory-Copy project into workspace using MyFirstApp the "Androidmanifest.xml" and ".project" files contents are completely erased. It loads with major manifest errors once then never again with no way getting the MyFirstApp reloaded.
I have only one Workspace folder for projects and tried creating several versions like MySecondApp, MyThirdApp and so on. All get manifest.xml contents erased.
I'm unable to get a project reloaded into JAVA-ADT without it erasing contents in androidmanifest.xml and .project. This is my first try at JAVA-ADT.
I tried "project" "Clean" before closing out the original MyFirstApp with no success either.
I have read and read posts but can't figure it out. Lots of hours on developer.android.com training too.
What am I doing wrong?
I'm getting this error message on my PC when I try to build my Windows Phone app:
Xap packaging failed. Object reference not set to an instance of an object
I'm using Dropbox. On my laptop, It works perfectly fine and I can debug etc...On my PC however, I can't.
I tried many things such as:
Delete obj/Debug Folder
Check for files which are missing on the Solution Explorer
So far, nothing has helped.
Any idea how I can fix this?
You should check, in every folder of your project, for missing files or wrong references.
You can get this problem just with a single missing image, if its Build Action property is set to Content or similar...
Check your files and then Rebuild your project!
This can happen if a file is removed from the disk itself, but not from the Solution through Visual Studio. Delete the file through Visual Studio (it should be marked with a little yellow hazard icon) and Rebuild.
Credit to Andreas Hammar via http://blog.jayway.com/2011/06/03/wp7-build-error-xap-packaging-failed/ - his solution worked for me.
I am adding this reply because although the problem with app icons is covered in brief in some of the answers above, I wanted to give exact steps since it just happened to me. I got this error and then found this web page:
Xap Packaging Error
It turned out that my App icon file name was wrong due to a rename. I double-clicked on WMAppManifest.xml, found in the Properties folder, to open the editor for that file. I simply used the button to update the App Icon, re-found the file and selected it, and the error went away after rebuilding the project.
The problem lies in your startup object in your Application. I have met this error to many times.
It usually happens when I change the name of my class/namespace Application class. Or it might even be conflicting with your dropbox locations.
To Fix this.
Right click your main project or Alt+Enter
Go to the silverlight tab and set your startup object
Try the following:
Have Visual Studio closed
Download all your files to your computer
Delete Bin and obj folders completely.
Open the .sln
Rebuild
If if fails expand the References in te Solution explorer and make sure all your dll's are found. If a dll have a yellow exclamation point that means its not found. I'm thinking that one of your references are set to an absolute path on your laptop and that's missing on your PC.
If someone comes across this post and still has the issue I had where XAP packaging failed and that VS2012 can not find the file then check for spaces in the file name.
I had the issue where my tiles were "tilename 99.png" and it keep giving me the XAP packaging failed message. So I finally changed the file name to "tilename_99.png" and it worked.
Hope this helps someone in the same predicament.
In my case, I'd accidentally moved Background.png to a resource folder. Moved it back and it worked!
In my case, this error didn't go away even after trying all the above methods. Actually I had renamed the ApplicationIcon.png to "xyz.png". And reverting this, fixed the issue.
One more possibility is that you have a wrong path to an image in the project/options/Application dialog (icon, bg image, etc).
I had this error message, after some frustration I look in the obj folder, is was no part of the solution(but visual studio need it) but I had some conflicts files with dropbox. I deleted the obj folder rebuild, visual studio recreates the folder and the content of it and problem solved.
Ahh finally found my problem.
I'm using Visual Studio 2012, which doesn't always point out the "missing" file and makes it a little harder to fix.
MY SHORT SOLUTION
Relink the "linked" configuration file in the main project. It is a linked file because the original file remains in a referenced assembly, not in the current assembly. The file wasn't marked YELLOW so it wasn't obvious that it would be the problem, but when I double clicked on it, it failed to open, so I knew this was the problem file.
The silverlight application itself had a "linked" file called "ServiceReferences.ClientConfig" which contains information needed by a referenced project to make a web service call.
So the main project didn't have the web service reference itself, but it referenced a project which did, which is why it linked the "ServiceReferences.ClientConfig" file.
MY LONG SOLUTION
Keep rebuilding the main project file, and commenting out, and excluding project by project, file by file, until you CAN build the main project again. At that point it should be clear(er) which part of the solution is causing the problem.
I have a couple of projects that I had started under Xcode 3.2.x some time ago. I switched to Xcode 4 a few days ago and want to make use of the Workspace feature as both projects. Basically, my plan is to extract some common features out of the two projects and make them a common library that both projects depend on. However, before I even get to the tricky bit of dependencies I get stuck just adding my two projects to the workspace.
I tried creating a new workspace and selecting "Adding files to " from the context menu; I then select the .xcodeproj file from my first project and it appears in the left-hand side tree browser in my workspace. However, it's just the file, not the project that I get. That is, rather than getting a two-line entry in the tree browser where the first line states the project name and the second line says something like "1 target, iOS SDK 4.3" like in the Apple documentation, I get a single line simply stating the name of the .xcodeproj file including the extension. There is also no triangle on the left to expand the node. It's like I just dragged some file in the workspace, not a project. The same goes for the second project.
I have also created a new Project "Foo" from scratch in Xcode 4 and added it to my workspace, with the same result. I looked at Apple documentation and watched the 16 second video about a dozen times now, but cannot work out what I am doing wrong (if the problem is indeed in the chair and not in the computer).
I had this exact same problem. I think it stems from having another workspace already open referencing the project you want to add. I got it working by:
shutdown xcode completely
double-click the workspace to launch Xcode and open just that workspace
drag and drop the project file from the Finder
Worked fine. I have many workspaces all referencing an openssl project, and it seems to work OK when you only have one workspace open at a time in Xcode.
Actually, I made it work without exiting Xcode.
All you have to do is make sure the projects you want to add are closed, since Xcode is having trouble adding open projects to a workspace.
So:
Close the projects you want to add
In the Workspace window, choose "Add Files to MyWorkspace"
Add the .xcodeproj file of the project you want to add
I had the same problem. SO I just exit xcode, restart it. Then I can see the files under the project.
Exiting Xcode completely and then double-clicking the .xcodeproj file to open the project.
It works but when you add an activity to the project than r.java file is automatically removed and errors are coming.