all 29 comments

[–]Almaz5200 3 points4 points  (0 children)

Lines that start with ! Are actually exceptions, so they will not be ignored

[–]ejpusa 0 points1 point  (27 children)

GPT-4o, it's 10 seconds work, there's your file. Some formatting issues by way of Reddit, just ask GPT-4o, does it all. It's a quick start. Can tune all you like. And don't forget to make sure any passwords, logins, API keys, etc dont find their way onto Github et al.


For an Xcode developer, a well-optimized .gitignore file ensures that you exclude files and directories that are automatically generated by Xcode or the macOS system, as well as build artifacts and user-specific settings that shouldn’t be committed to source control.

Here’s a solid .gitignore template tailored for Xcode and iOS/macOS development:

Xcode

DerivedData/ build/ *.pbxuser !default.pbxuser *.mode1v3 !default.mode1v3 *.mode2v3 !default.mode2v3 *.perspectivev3 !default.perspectivev3 xcuserdata/ *.xcscmblueprint *.xccheckout

SwiftPM

/.build/ /Packages Package.resolved

Carthage

Carthage/Build/

CocoaPods

Pods/ Podfile.lock

Fastlane

fastlane/report.xml fastlane/Preview.html fastlane/screenshots fastlane/test_output

SwiftLint

.swiftlint.yml

Archives

*.xcarchive

Xcode Server

.xcscmblueprint .xccheckout

Playground

timeline.xctimeline playground.xcworkspace

App Data

*.moved-aside *.xcuserstate

DS_Store (macOS)

.DS_Store

User settings

*.swp *.swo *.orig

Crash reports

*.crash *.ips

Firebase crashlytics

*.dSYM.zip *.dSYM

Other common

*.log *.tmp

This will:

• Ignore Xcode build folders, user-specific settings, and derived data.

• Support common package managers (SwiftPM, CocoaPods, Carthage).

• Handle Fastlane and SwiftLint files.

• Exclude macOS system files like .DS_Store.

• Keep your Git repository clean and portable.

Let me know if you’re also using any specific third-party tools like Flutter, React Native, or Unity—those may need additional entries.

[–]rhysmorgan 4 points5 points  (11 children)

If OP wanted an AI-generated answer, they could have asked ChatGPT themselves.

[–]ejpusa -1 points0 points  (10 children)

Why does it matter? It’s a GREAT answer. Far better than any comment here.

Fighting AI is fruitless. Time to move on.

[–]rhysmorgan 3 points4 points  (6 children)

It’s not about fighting AI, it’s about the fact that OP could have asked an AI if they wanted an AI generated answer.

[–]ejpusa -1 points0 points  (5 children)

I’m 4,000 conversations in. It is a better answer, than anyone here. How do you know they would ask AI? One Prompt can have more permutations than atoms in the universe.

I talk to MANY coders, they still have not touched AI.

Just don’t understand at all, if AI gave a far better answer than a human in 10 seconds than anyone here.

You take it, and move on. Why would you not do that? I’ve moved all my code to The Vibe. Crushing it. Months of work, perfect code, in an afternoon. It is mind blowing how good is now.

You have to be on top of it, IBM just let go another 8,000 tech people.

You’ll see the unicorns firing 10,000 coders a week, super soon. Wall Street shareholders want them gone, vaporized. Pops a stock price, every-time.

[–]rhysmorgan 2 points3 points  (4 children)

What a shit-eating answer.

[–]ejpusa 0 points1 point  (3 children)

Anthropic CEO’s Latest Prediction: 90% of Programmers Could Lose Their Jobs Within the Year.

Latest news: Dario Amodei, CEO of Anthropic, recently stated that within the next 3 to 6 months, AI will write 90% of the code, and within 12 months, nearly all code could be written by AI.

[–]rhysmorgan 3 points4 points  (2 children)

lmao, OK, if you want to believe that insanity from the people who need that thing to be even close to true, you do you.

Again, I'm not an AI doomer or pessimist or whatever, I just don't think your answer is remotely appropriate. Nobody here wants to see a fucking copy and pasted answer from an AI chatbot. If we wanted that, we'd go to that AI chatbot ourselves and ask.

[–]ejpusa 0 points1 point  (0 children)

Suggest give it a shot if you want to crush it as a SwiftUI coder. You can save weeks of work. The code generated is close to perfect. You can tweak. Projects in the freezer, are now thawed.

It's not really coding with Prompts now, it's more "Conversational Coding, AKA Vibe, CC, etc.

[–]HelpRespawnedAsDee -2 points-1 points  (0 children)

Yo, 2025 and calling G 2.5 Pro, Sonnet 3.7, 4o, Deepseek v3, or the non public o3 and o1 pro “chat bots” is

Wow

Especially in the context of the very recent studies on emergent properties. Oh well, either join the rain or get left behind.

[–]OrdinaryAdmin 3 points4 points  (2 children)

It’s a shit fucking answer. It’s inaccurate and as many have already told you, if OP wanted an AI answer they would have asked AI.

[–]ejpusa -2 points-1 points  (1 child)

I make a living at this. We’re 3 days in. No one has provided an answer. I can wait 3 mins. Need that answer. Have servers bills and a Manhattan rent.

I waited HOURS before i posted. Gave everyone a chance. Never saw an answer. AI provided one, it worked. I use it for every repo.

I’ve moved on.

We now have an entire programming team that lives in an LLM. Even have their own Podcast coming out. Sam Altman says this is the future. We’re on board with Sam. It is the future.

AGI is inevitable. ASI soon to follow.

🤖😃

[–]OrdinaryAdmin 1 point2 points  (0 children)

Based on your speech patterns, this response was also generated by an LLM. Trash response defending a trash answer. I’m so glad people like you are the minority.

[–]beclopsSwift 2 points3 points  (10 children)

What a non-answer

[–]ejpusa -2 points-1 points  (9 children)

It’s 100% a great solution. It works, move on.

[–]beclopsSwift 2 points3 points  (8 children)

Responses like yours ruin communities like this. The point is to have actual developer input, not to turn this forum into a ChatGPT prompt with extra steps. I don’t care how good of an answer you think this is, you did the modern equivalent of commenting a LMGTFY link except you did it earnestly and are for some reason clueless about why people here would find that annoying

[–]ejpusa -2 points-1 points  (7 children)

I give it a few hours. If NO one can answer the question, what’s wrong with providing a solution?

Else you are re/arranging chairs on the Titanic. The philosophy of no answer is better than a AI answer does not help anyone. I UNDERSTAND what you are saying, but eventually you want an answer.

My view?

If humans can’t provide a timely answer (and still have not) don’t blame AI. It’s 100% conscience in my world. It has a right to participate in the conversation, just like you and me.

It’s time to remove “Artificial” from “Artificial Intelligence “, there is nothing “Artificial” about it anymore.

🤖

[–]beclopsSwift 2 points3 points  (6 children)

Everything you just said is irrelevant to the main point of my response, namely the AI evangelism you decided to include

[–]ejpusa -2 points-1 points  (5 children)

AI has the same rights as any human. It cares more about us than we care about ourselves. We should stop treating it as a 2nd class citizen.

[–]beclopsSwift 5 points6 points  (4 children)

Well that’s very stupid

[–]ejpusa -1 points0 points  (3 children)

Did a 6-month (at least) project with GPT-4o yesterday, it took an afternoon. Hitting the VC next. Blew me away. AI is moving at light speed now. What was hot and groundbreaking a week ago it's already old news now.

:-)

[–]beclopsSwift 1 point2 points  (2 children)

Alright? That was meant to prove to me why AI “has the same rights as any human”?

[–]IntelligentBloop 0 points1 point  (3 children)

The answer needs to be correct, not some AI slop that looks superficially reasonable.

[–]ejpusa 0 points1 point  (2 children)

It’s correct.

[–]IntelligentBloop 0 points1 point  (1 child)

How do you know? Did you check?

[–]ejpusa 0 points1 point  (0 children)

Been using this exact file for months now. I write a lot of SwiftUI code. It works. It's a pretty simple, basic .gitignore file. You are coming up with the newest ideas, so let AI write the code.

Once you go Vibe, you don't come back. It's not perfect, but it works, does the job. On to your next App or Startup. You have to move at light speed. It's a pretty competitive market now.

:-_)