<?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>Apfelsaft &#187; Script</title>
	<atom:link href="http://www.deelen.de/tag/script/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deelen.de</link>
	<description>Yet another Mac developer blog</description>
	<lastBuildDate>Sun, 03 Mar 2024 08:13:55 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Building OpenSSL for iOS with a Run-Script action from within Xcode</title>
		<link>http://www.deelen.de/2014/06/building-openssl-for-ios-with-a-run-script-action-from-within-xcode/</link>
		<comments>http://www.deelen.de/2014/06/building-openssl-for-ios-with-a-run-script-action-from-within-xcode/#comments</comments>
		<pubDate>Fri, 06 Jun 2014 10:21:10 +0000</pubDate>
		<dc:creator>Joachim</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[iOS]]></category>
		<category><![CDATA[OpenSSL]]></category>
		<category><![CDATA[Run]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Xcode]]></category>

		<guid isPermaLink="false">http://www.deelen.de/?p=169</guid>
		<description><![CDATA[There are many scripts out there in the Web that help building OpenSSL for iOS and iOS-Simulator for different architectures. For instance https://github.com/x2on/OpenSSL-for-iPhone  and https://gist.github.com/foozmeat/5154962. All of these scripts work fine when invoked from the command line. But as soon as you put them into a run-script action of Xcode, the make process will [...]]]></description>
			<content:encoded><![CDATA[<p>There are many scripts out there in the Web that help building OpenSSL for iOS and iOS-Simulator for different architectures. For instance <a href="https://github.com/x2on/OpenSSL-for-iPhone">https://github.com/x2on/OpenSSL-for-iPhone </a> and <a href="https://gist.github.com/foozmeat/5154962">https://gist.github.com/foozmeat/5154962</a>. All of these scripts work fine when invoked from the command line. But as soon as you put them into a run-script action of Xcode, the make process will fail with different, unspecified errors. Most of the Time  you&#8217;ll get something like:<br />
<code><br />
Undefined symbols for architecture i386:<br />
  "_ENGINE_load_gost", referenced from:<br />
      _ENGINE_load_builtin_engines in libcrypto.a(eng_all.o)<br />
ld: symbol(s) not found for architecture i386<br />
clang: error: linker command failed with exit code 1 (use -v to see invocation)<br />
make[2]: *** [link_app.] Error 1<br />
make[1]: *** [openssl] Error 2<br />
make: *** [build_apps] Error 1<br />
</code><br />
It took me a long time to figure out the problem, but the solution is easier than you would imagine! Just add the following line to the script before &#8220;Configure&#8221; or &#8220;make&#8221; is called:<br />
<code><br />
export COMMAND_MODE=unix2003<br />
</code></p>
<p>That&#8217;s all! Building OpenSSL from within Xcode should now work as expected.</p>
<p>Have fun!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deelen.de/2014/06/building-openssl-for-ios-with-a-run-script-action-from-within-xcode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
