<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Apple intelligence &#8211; 隨心所欲</title>
	<atom:link href="https://doeverythingiwant.com/tag/apple-intelligence/feed/" rel="self" type="application/rss+xml" />
	<link>https://doeverythingiwant.com</link>
	<description>iOS Developer 的隨筆記錄</description>
	<lastBuildDate>Sun, 08 Mar 2026 09:39:52 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://doeverythingiwant.com/wp-content/uploads/2025/08/cropped-0802.png</url>
	<title>Apple intelligence &#8211; 隨心所欲</title>
	<link>https://doeverythingiwant.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>[AI] Xcode 26 與 AI</title>
		<link>https://doeverythingiwant.com/ai-xcode-26-and-ai/</link>
					<comments>https://doeverythingiwant.com/ai-xcode-26-and-ai/#respond</comments>
		
		<dc:creator><![CDATA[艾普利]]></dc:creator>
		<pubDate>Sun, 08 Mar 2026 09:39:49 +0000</pubDate>
				<category><![CDATA[寫程式]]></category>
		<category><![CDATA[AI]]></category>
		<category><![CDATA[Apple intelligence]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[Xcode]]></category>
		<guid isPermaLink="false">https://doeverythingiwant.com/?p=2512</guid>

					<description><![CDATA[Photo by Immo Wegmann on Unspl&#8230;]]></description>
										<content:encoded><![CDATA[
<p class="has-text-align-center">Photo by <a href="https://unsplash.com/@tinkerman?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText" target="_blank" rel="noopener">Immo Wegmann</a> on <a href="https://unsplash.com/photos/a-piece-of-cardboard-with-a-keyboard-appearing-through-it-vi1HXPw6hyw?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText" target="_blank" rel="noopener">Unsplash</a></p>



<p>Xcode 26 終於可以使用 AI 啦~~雖然去年的發表了，我因為公司在趕專案累到爆，回家就不想開電腦，前一陣子才開始使用，覺得很好玩(?)</p>



<p>不過，相信很多人應該都有用 Claude code 這位神奇的夥伴，和在 Xcode 裡直接使用體驗不太一樣。 </p>



<p>這篇簡單寫一下要怎麼使用，最後加上我個人的小心得</p>



<span id="more-2512"></span>



<h2 class="wp-block-heading">前置作業</h2>



<ul class="wp-block-list">
<li>需要有 Xcode 26</li>



<li>macOS 需要升到Tahoe</li>



<li>ChatGPT 帳號或 Claude 的付費帳號<br></li>
</ul>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Xcode 26</h2>



<p>設定 AI Tool 的方式，先點開 Xcode 的 Setting </p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img fetchpriority="high" decoding="async" width="470" height="578" src="https://doeverythingiwant.com/wp-content/uploads/2026/03/AI01.png" alt="" class="wp-image-2514" style="width:446px;height:auto" srcset="https://doeverythingiwant.com/wp-content/uploads/2026/03/AI01.png 470w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI01-244x300.png 244w" sizes="(max-width: 470px) 100vw, 470px" /></figure>
</div>


<p>在左側選單上可以看到 Intelligence 的選項，Xcode 內建 ChatGPT 與 Claude ，只要點下去登入就可以了，ChatGPT 免費帳號就可以使用，但 Claude 必須要是付費帳號才可以使用 。</p>


<div class="wp-block-image">
<figure class="aligncenter size-large is-resized"><img decoding="async" width="1024" height="822" src="https://doeverythingiwant.com/wp-content/uploads/2026/03/AI02-1024x822.png" alt="" class="wp-image-2515" style="aspect-ratio:1.2457363416976752;width:730px;height:auto" srcset="https://doeverythingiwant.com/wp-content/uploads/2026/03/AI02-1024x822.png 1024w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI02-300x241.png 300w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI02-768x617.png 768w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI02-1536x1233.png 1536w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI02-1170x939.png 1170w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI02-585x470.png 585w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI02.png 1724w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>
</div>


<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">使用方式</h2>


<div class="wp-block-image is-style-default">
<figure class="alignleft size-full is-resized"><img decoding="async" width="784" height="2140" src="https://doeverythingiwant.com/wp-content/uploads/2026/03/AI03.png" alt="" class="wp-image-2518" style="aspect-ratio:0.3663558394999438;width:240px;height:auto" srcset="https://doeverythingiwant.com/wp-content/uploads/2026/03/AI03.png 784w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI03-110x300.png 110w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI03-375x1024.png 375w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI03-768x2096.png 768w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI03-563x1536.png 563w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI03-750x2048.png 750w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI03-585x1597.png 585w" sizes="(max-width: 784px) 100vw, 784px" /></figure>
</div>


<p>首先，要切到 AI 功能，可以由圖示中的 (1) 的按鈕作切換</p>



<p>(2) 的按鈕可以選擇想要使用的AI 模型是哪一種</p>



<p>(3) 可以選擇對話串</p>



<p>(4) 是歷史記錄，不過，不知道是不是因為我使用的是免費帳號，只要重開Xcode 後，歷史記錄就會消失了</p>



<p>(5) 就是下Prompt 的地方</p>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<p></p>



<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">Coding</h2>



<p>在範例圖中，我下了「在頂部加上搜尋列」，它就會自動幫我修改程式，會先告訴你會怎麼調整，然後就會直接調整了。</p>



<p>AI 調整的部分會用彩色Highlight 標示，一般有使用 Git 的話，也會用單一顏色來表示調整過的地方，說不定Apple 就是為了特別區別自己調整的與 AI 調整的才用彩色Highlight。</p>



<p>手機使用 AI 的時候也會有彩色Highlight出現，Apple 就是這一點我覺得做得很不錯，統一提示，只要在Apple 的產品看到彩色Highlight就會知道是AI 的東西</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="2334" height="1390" src="https://doeverythingiwant.com/wp-content/uploads/2026/03/AI04.png" alt="" class="wp-image-2519" srcset="https://doeverythingiwant.com/wp-content/uploads/2026/03/AI04.png 2334w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI04-300x179.png 300w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI04-1024x610.png 1024w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI04-768x457.png 768w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI04-1536x915.png 1536w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI04-2048x1220.png 2048w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI04-1920x1143.png 1920w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI04-1170x697.png 1170w, https://doeverythingiwant.com/wp-content/uploads/2026/03/AI04-585x348.png 585w" sizes="(max-width: 2334px) 100vw, 2334px" /></figure>
</div>


<hr class="wp-block-separator has-alpha-channel-opacity"/>



<h2 class="wp-block-heading">心得</h2>



<p>在 Xcode 使用 AI 就是這麼簡單，我個人覺得比 Claude code 的入門簡單一點，不過，Claude code 能做的事情很多，多學一點完全沒有問題。</p>



<p>在上面的範例中，下完指令之後它就會自動修改程式，實際上，若使用在即有專案它遇到問題的時候也是會先詢問，例如「這會影響到某個檔案是否需要一起調整」、「這需要看某個檔案是否可以檢視它」之類的。</p>



<p>若是請它調整即有的程式，我會先要求提出調整計畫，確認它會修改什麼、怎麼修改，才讓它執行，不會一下子就讓它調整。</p>



<p>當把AI 做為小幫手的時候，比較需要學習的是Prompt 要怎麼下，它寫出來的東西也要Review 。 我個人這陣子的使用心得是覺得很有趣，當然也會有覺得害怕的部分，但有趣佔大多數，它會寫出一些我從來沒有想過的方式，也可以學習，就是和過去一樣「把好的東西學起來」。</p>



<p>最後祝大家 Coding 愉快</p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://doeverythingiwant.com/ai-xcode-26-and-ai/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
