<?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/"
	xmlns:media="http://search.yahoo.com/mrss/"
>

<channel>
	<title>modulemap &#8211; Wade Tregaskis</title>
	<atom:link href="https://wadetregaskis.com/tags/modulemap/feed/" rel="self" type="application/rss+xml" />
	<link>https://wadetregaskis.com</link>
	<description></description>
	<lastBuildDate>Mon, 05 Feb 2024 00:48:13 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://wadetregaskis.com/wp-content/uploads/2016/03/Stitch-512x512-1-256x256.png</url>
	<title>modulemap &#8211; Wade Tregaskis</title>
	<link>https://wadetregaskis.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">226351702</site>	<item>
		<title>Module verification must be enabled in order for Swift to use the module</title>
		<link>https://wadetregaskis.com/module-verification-must-be-enabled-in-order-for-swift-to-use-the-module/</link>
					<comments>https://wadetregaskis.com/module-verification-must-be-enabled-in-order-for-swift-to-use-the-module/#respond</comments>
		
		<dc:creator><![CDATA[]]></dc:creator>
		<pubDate>Mon, 05 Feb 2024 00:48:07 +0000</pubDate>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[modulemap]]></category>
		<category><![CDATA[Swift]]></category>
		<category><![CDATA[Undocumented]]></category>
		<guid isPermaLink="false">https://wadetregaskis.com/?p=7652</guid>

					<description><![CDATA[Ugh. This was annoying to figure out. If you have a framework target in Xcode with a modulemap &#8211; e.g. because you&#8217;re wrapping a C or C++ library for use in Swift &#8211; you must keep the module verifier enabled (the ENABLE_MODULE_VERIFIER build setting) for that framework, otherwise any Swift targets using that framework won&#8217;t&#8230; <a class="read-more-link" href="https://wadetregaskis.com/module-verification-must-be-enabled-in-order-for-swift-to-use-the-module/" data-wpel-link="internal">Read more</a>]]></description>
										<content:encoded><![CDATA[
<p>Ugh.  This was annoying to figure out.</p>



<p>If you have a framework target in Xcode with a <a href="https://www.swift.org/documentation/cxx-interop/#creating-a-clang-module" data-wpel-link="external" target="_blank" rel="external noopener">modulemap</a> &#8211; e.g. because you&#8217;re wrapping a C or C++ library for use in Swift &#8211; you <em>must</em> keep the module verifier enabled (the <code><a href="https://developer.apple.com/documentation/xcode/build-settings-reference#Enable-Module-Verifier" data-wpel-link="external" target="_blank" rel="external noopener">ENABLE_MODULE_VERIFIER</a></code> build setting) for that framework, otherwise any Swift targets using that framework won&#8217;t see the module (attempts to <code>import</code> the module will fail with the compiler claiming the module doesn&#8217;t exist).</p>



<p>Clearly the &#8220;verifier&#8221; does more than just verify the module.  Or, perhaps Xcode is being obnoxious and silently ignoring the module if it doesn&#8217;t detect an explicit pass from the verifier.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://wadetregaskis.com/module-verification-must-be-enabled-in-order-for-swift-to-use-the-module/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">7652</post-id>	</item>
	</channel>
</rss>
