<?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>#iOS &#8211; 隨心所欲</title>
	<atom:link href="https://doeverythingiwant.com/tag/ios/feed/" rel="self" type="application/rss+xml" />
	<link>https://doeverythingiwant.com</link>
	<description>iOS Developer 的隨筆記錄</description>
	<lastBuildDate>Tue, 20 Sep 2022 15:46:24 +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>#iOS &#8211; 隨心所欲</title>
	<link>https://doeverythingiwant.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>[iOS][UITEST]  Run destination – is not valid for you have chosen to perform</title>
		<link>https://doeverythingiwant.com/iosuitest-run-destination-is-not-valid/</link>
					<comments>https://doeverythingiwant.com/iosuitest-run-destination-is-not-valid/#respond</comments>
		
		<dc:creator><![CDATA[艾普利]]></dc:creator>
		<pubDate>Sat, 27 Aug 2022 07:18:00 +0000</pubDate>
				<category><![CDATA[寫程式]]></category>
		<category><![CDATA[#iOS]]></category>
		<category><![CDATA[UI Test]]></category>
		<category><![CDATA[Xcode]]></category>
		<guid isPermaLink="false">https://doeverythingiwant.com/?p=119</guid>

					<description><![CDATA[在跑 UI Test時候出現了一個警示，是說 iPhone &#8230;]]></description>
										<content:encoded><![CDATA[
<p>在跑 UI Test時候出現了一個警示，是說 iPhone XS 無法執行Tests，當下只是覺得奇怪明明前一陣子都跑的好好的，怎麼現在不行了</p>



<p>這個UI Test 是跑在基於 UI Kit 所建立的App ， SwiftUI 的情況是否一樣並無法保証</p>



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



<p>仔細看了內容，其實是告知你需選擇有支援的 iOS 版本</p>



<p>要解決這個問題的方式，在 Build Settings -&gt; Deployment -&gt; iOS Deployment Target</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="407" src="https://doeverythingiwant.com/wp-content/uploads/2022/09/001-1024x407.png" alt="" class="wp-image-176" srcset="https://doeverythingiwant.com/wp-content/uploads/2022/09/001-1024x407.png 1024w, https://doeverythingiwant.com/wp-content/uploads/2022/09/001-300x119.png 300w, https://doeverythingiwant.com/wp-content/uploads/2022/09/001-768x305.png 768w, https://doeverythingiwant.com/wp-content/uploads/2022/09/001-1536x610.png 1536w, https://doeverythingiwant.com/wp-content/uploads/2022/09/001-2048x813.png 2048w, https://doeverythingiwant.com/wp-content/uploads/2022/09/001-600x238.png 600w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>選一下比現在或更早的OS版本，再重新跑一次 UI Test 就可以</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="702" src="https://doeverythingiwant.com/wp-content/uploads/2022/09/002-1024x702.png" alt="" class="wp-image-177" srcset="https://doeverythingiwant.com/wp-content/uploads/2022/09/002-1024x702.png 1024w, https://doeverythingiwant.com/wp-content/uploads/2022/09/002-300x206.png 300w, https://doeverythingiwant.com/wp-content/uploads/2022/09/002-768x526.png 768w, https://doeverythingiwant.com/wp-content/uploads/2022/09/002-1536x1052.png 1536w, https://doeverythingiwant.com/wp-content/uploads/2022/09/002-2048x1403.png 2048w, https://doeverythingiwant.com/wp-content/uploads/2022/09/002-600x411.png 600w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<p>這個問題看起來並不會在Unit Test 發生，也許是因為UI Text 是必需把App 跑起來的關係吧?</p>



<p>Reference在這裡 <img src="https://s.w.org/images/core/emoji/17.0.2/72x72/2b07.png" alt="⬇" class="wp-smiley" style="height: 1em; max-height: 1em;" /></p>



<p><a href="https://stackoverflow.com/questions/58078991/unable-to-run-unit-tests-in-xcode-11-the-run-destination-is-not-valid-for-tes" rel="noreferrer noopener" target="_blank">Unable To Run Unit Tests in Xcode 11: The run destination * is not valid for tests you have chosen to perform</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://doeverythingiwant.com/iosuitest-run-destination-is-not-valid/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
