first of all, i already searched for an answer but with no luck.. i am new in xcode!
i created a project and found out at a later moment that i needed to enable core data, so since i didnt work too much on it i decided to start new. ideleted the project folder and set up a new project with the same name. BUT this project does not run. it hit s a breakpoint and throws error after error. project is empty.. if i make the exact same thing with a project that has another name then it works fine. is there sort of a cache somewhere that is interfering with my project? how can i have my new project with the same name?
thanks
Igor
If you create project with same name with having use of core data, then your model for core data should be exactly the same. Otherwise it will not read will get crashed.
Try cleaning the targets by ⌥⇧⌘K Cmd+Shift+K.
Related
While developing Azure functions, I started to get the error the function.json file couldn't be found on
"C:...\FunctionApp1\bin\Debug\netcoreapp2.1\bin\function.json".
I realized the function.json file is generated but on a different location
"C:...\FunctionApp1\bin\Debug\netcoreapp2.1\Function1\function.json"
This started to happen long after I was developing azure functions with no trouble!
Any idea why this started to happen and how to fix it?
Thank you in advance
Actually, the default azure function project will output the function.json on the bin\Debug\netcoreapp2.1\Function1\function.json folder as you said rather than bin\Debug\netcoreapp2.1\bin\function.json.
In my side, the function.json will not appear under bin\Debug\netcoreapp2.1\bin\function.json and I wonder why your project search on that location rather than the Function1 folder. It is quite normal and I did not get the same issue on my Azure Function project. I wonder whether you have done any changes to your project.
Suggestion
1) close VS Instance, delete the .vs hidden folder under the solution folder, bin and obj folder. Then, restart your project to test again.
2) try to create a new azure function project and then test whether it happens on the new project.
==============
If the new project also gets the same error, you should check whether you have installed any third party extensions that caused that situation
disable any third party extensions under Extensions menu.
do a repair in Vs or update VS to the latest version
If your new project did not get this error, the issue is related to your project itself. You should check every file carefully to prevent changes to function.json file and try step 1. Besides, you can also migrate your old project into the new project.
In addition, any feedback and detailed description about your issue will be expected and if I misunderstand your issue, it can help me locate the issue in the right direction.
Trying to lean Xamarin in vs2017
Doing the Quickstart
https://learn.microsoft.com/en-us/xamarin/xamarin-forms/xaml/xaml-basics/get-started-with-xaml?tabs=windows
After the project is created, you have to update the nugget packages, to fix the errors on "System"
This left me in a non compiling state. So I manually uninstalled and reinstalled the Xamarin.Forms and NetStandard Nuget package via the command line tool.
It then compiled and failed to deploy complaining about .netstandard. So I manually installed the .NetStandardLibrary nutget package.
It then compiled and deployed exactly once.
Now I'm getting a
Severity Code Description Project File Line Suppression State
Error MSB4064 The "References" parameter is not supported by the "XamlGTask" task. Verify the parameter exists on the task, and it is a settable public instance property. XQuickStart C:\Users\Brown.ericw.nuget\packages\xamarin.forms\3.6.0.264807\build\Xamarin.Forms.targets 90
Error.
How do I fix this?
Is Xamarin always this flakey? I mean this is a Hello world quick start, it shouldn't' be rocket science to get it working.
Seems you did a lot of things that might have corrupted your project.
Try to clean solution & delete Obj and Bin folder & restart visual studio.
If you still have the prob, you should check if you don't have a reference in your Standard Class Library that has nothing to do here (like a ref to your droid project or whatever).
VS somtimes have this kind of flakey issue. When you Make sure the code is ok, but VS is still promote some errors. You could refer to the following ways.
Clean your project, then re-build your project.
If you still get this error, close your VS, then open the project, delete all bin and obj folders in this project, Note:If you write a forms project, you should delete three times (drod,ios, PCL), open the prject, re-build your project in the end.
If above steps.it is not work, please delete the bin and obj folder in this project firstly, copy this project to another PC that installed VS, run this code.
There seems to be an issue with Xamarin Android projects (at least on my machine) with references.
This is just the default project code that comes already written when you create a new Xamarin Android project, so I didn't change anything. I checked what two different files it's references and it's grabbing the code from the obj folder in addition to the original code. I already tried restarting VS, cleaning and rebuilding the solution, and creating another project in a different folder but still getting the same reference errors.
Robert's answer (from a different post) is correct. I simply updated ReSharper and everything went back to normal.
You can find his answer here.
I am using RealmSwift in my project. I followed all the instructions while setting up Realm for my project, like dragging the frameworks into the embedded binaries section, setting up the framework search path and including the required Run script in Build Settings. The project works fine after that. Then while committing the changes, I committed the header files and bcsymbol files etc of the included Realm frameworks.
After that, I took a checkout of my project. After the checkout, on opening the project, I am getting this error: 'No such module RealmSwift'.
I tried deleting the frameworks and adding them again, and cleaning the project. The project just won't compile. It keeps giving the same error. What am I doing wrong?
Hmm, there's no real good answer for solving this sort of problem, as it can happen for a variety of reasons.
More often than not, like in this SO question, it can be caused by the Framework Header Search not being set up correctly, and so the project isn't able to see the framework correctly.
If worse comes to worse, make sure to absolutely delete every reference of RealmSwift in your project (Including in the build settings) and try installing it from scratch again. Good luck!
I'm trying to deploy my app to a device and i get the following error
Error 27 An attempt was made to load a program with an incorrect format.
the odd thing is that the file and project this error relates to are both blank.
It was a WP7 app but i tried converting it to WP8 app in hope of fixing it but that didn't help. Anyone got any ideas how to figure out what's wrong?
the only thing i could find for this error talks about a specific assembly being compiled for the wrong platform. but this is not an option in the Windows Phone project settings
Check the files in your project. Files that are not part of the project should be marked as "Buid Action = none" and "Copy to Output Directory = Do not copy". Some examples are file files "text". Try this, worked for me.
Did you get any conversion warnings when you converted the project? I've worked around problems like this in the past by creating a new Windows Phone solution, re-creating the same projects in the new solution, creating any needed sub-folders into those projects, and then copying over the code and content files. This is usually quick if there aren't a lot of projects & folders.
Not sure if this is the case with you, or if you've already solved the issue (since it is an old thread), but this happens sometimes when you target the wrong CPU type. For example, your project targets x86 while you have a 64-bit machine.
Follow these steps to (hopefully) fix the issue:
Go to project properties
Go to Build tab
Select Any CPU from Platform dropdown
Save and recompile