Unity 3D Build error in XCode - xcode

I am trying to build my first Unity 3D app to Xcode ever. I have tried looking at multiple different sources trying to make sure that I have all my settings correct, but for whatever reason I keep getting these errors in my Xcode workspace.
I have tried following these instructions from the Unity page to no avail. I feel like my problem is a common one that people face when first starting out. If someone could enlighten me to what I am doing wrong I would really appreciate it. Here is what my player setting looks like. Please let me know if there is another picture needed to figure out the problem. Thanks!

Good news! Those are not errors, those are warnings! Errors are red circles with exclamation points. GTMSessionFetcher is a "pod" - basically a plugin - so you can pretty much ignore those warnings, since that's not your code. The only warning you might want to look at is the top one, which is just Xcode encouraging you to update your project settings. Double click on that warning to get some suggestions on how to fix it.
Edit: you know I just now realized that Xcode error icons are octagons, not circles, like stop signs.

Related

startup MAUI app loads packed with errors

I'm trying to start a dotnet MAUI app following the tutorial of MS in their official docs
I'm just opening the startup MAUI project(the built-in default one) and VS22 just won't have it. I get 40+ errors most of them about reference missing and duplication of classes/functions
glimps from the errors I get
now I have already seen a post here having somewhat of the same problem but the solutions(restarting and downloading workloads from the CLI using - dotnet workload intall) just didn't work for me.
I haven't done any changes to the code whatsoever so I really don't get what is the problem here.
any help would be appreciated.
Edit 1:
The app do seems to be working when I run the android simulator… which makes it even weirder
This is a bug in the tooling at the moment it seems. If you look at the errors, especially the ones in your screenshot you can see that these talk about Android. If you expand the Project column for a little you will see the list of target platforms that it's talking about.
Because everything is in 1 project now, it gives errors about platform-specific stuff because it is only looking at that one target that it's building. In this case, maybe you were building iOS and it gives errors about not being able to find Android types. This makes sense, however, we shouldn't see these errors in this case.
It's a bit hard to explain like this, I hope it makes any sense.
Long story short, it's a bug, it's being worked on. And you should be able to ignore them and it would still run as you've already discovered yourself. It gives a lot of noise however and if there is an actual error, you will have to find that in this list and fix that.

VSCode breakpoints grayed out

I have a single project in VSCode where breakpoints are not working and I can't figure out why. I'm new to VSCode but I've got them to work in other projects (Pascal) but there's something about this one it doesn't like.
Does anyone at least know what this means when the break points are gray like this? Is it a bug? In the 2nd screenshot you can see I can run LLDB from the terminal on the same executable so it's not LLDB messing up.
This might be an obvious answer, but it's what solved the issue for me when I encountered it.
Recompile the program and try again

Opening Storyboard fails with "An internal error occurred. Editing functionality may be limited"

Im running Xcode 9.2. My storyboards are completely useless now. Ive
experienced what this article shows and have tried everything the
article suggested.
My issue occurred when I tried to add a single swift file to an existing
objective C project with about 320 files in it already. I removed the
.swift file entirely from the project, then did everything in the article
link above and still nothing fixed it including removing/reloading XCode
several times trying different things.
I filed a bug with apple but haven't received any replies in a week (of course). Apple seems to be slammed with tons of bugs lately they keep
creating.
Now I cannot work on this project's storyboards at all and Im dead in the
water. Really not happy with Apple lately!
Is there anything more that anyone has had success in fixing this issue?
Im completely dead in the water on this application now.
Fixed this by setting the command line tools version to the correct one. Mine was blank in Preferences / Locations
For my case, whenever I open a storyboard from a workspace, this happens. So I got rid of cocoapods and workspace, then just use carthage for thirdparty libraries. Storyboards opens faster and without this error.
Note that the storyboard I am testing is empty.
This turned out to be stupidity on my part. I had a script that was killing certain processes on my Mac over and over and it turns out that was my issue. When I removed it everything worked as normal again.

Opening StoryBoard in XCode automatically adds ~100 auto layout warnings when I open a project and they won't go away when I click "Update Frames"

This might be hard to diagnose without seeing the project, but Xcode keeps adding tons of warnings to my storyboard. It is a source controlled project, and if a team member cleans up all the warnings, pushes, and I pull, the warnings go away but as soon as I open storyboard, they reappear and they do not go away when I do the standard Update Frames option.
A lot of them seem to have to do with Stackviews, but I'm just confused why my coworkers can get the warnings to disappear and I cannot.
Has anyone experienced anything like this, or have any tips on how to approach solving this?
I was using Xcode 7.3 but after updating to 7.3.1 the problem still persists. Running OS X 10.11.6
Edit: Just to add some specifics, when I look at the source code versus my local code, it basically adds a ton of "Misplaced" tags, and a lot of values are changed by 0.5 or 1 pixel.
I do have the exact same issue when working with others on the same storyboard. It will happen every time you open (or another colleague) the storyboard. Here are some advises to avoid this :
When I open the storyboard, I know it will provoke this warnings. So if I don't add anything, before pushing a new commit, I reset any changes on the storyboard
I've come up with another good solution : using storyboard references as much as I can. So what I do is basically creating a storyboard for every flows (sometimes you can even have one storyboard for one controller). That way, when I work on a part of a project, it won't generate warnings on the totality of the storyboard. It avoids epic merge with many conflicts, it is easier to maintain, and it's faster to work on a small storyboard than on a huge one (Xcode is powerful, but when you have big storyboard, at a certain point it will lag).
But to answer to your question, I think everyone have that same issue when working on big projects, hopefuly apple will solve that one day, but for the moment you have to set good practices with your team. This is the only way to avoid wasting time at every pull ;) (at least for me, maybe someone has a better solution).

adding libsdl to Xcode

I'm new to both Xcode and SDL so this may sound really NOOB!
I have tried to add sdl to Xcode but I'm not getting any good results, I found these two very good tutorials: 1st, 2nd
In both cases I do exactly as instructed in the tutorials linked above, but face the same problem: when I attempt to build the project, I get multiple errors listed the picture:
I'm really lost and don't know where to go from here... I'd be very grateful if someone would be kind enough to tell me what to do or to point me in the right direction...

Resources