<?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>Coding Day &#187; iPhone</title>
	<atom:link href="http://www.codingday.com/category/iphone/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codingday.com</link>
	<description>Adventures in Computing, Can Erten's blog</description>
	<lastBuildDate>Tue, 13 Jul 2010 12:52:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>TouchJSON conflicts with AdMob and Cocos2d</title>
		<link>http://www.codingday.com/touchjson-conflicts-with-admob-and-cocos2d/</link>
		<comments>http://www.codingday.com/touchjson-conflicts-with-admob-and-cocos2d/#comments</comments>
		<pubDate>Wed, 02 Dec 2009 23:49:16 +0000</pubDate>
		<dc:creator>Can</dc:creator>
				<category><![CDATA[iPhone]]></category>
		<category><![CDATA[admob]]></category>
		<category><![CDATA[cocos2d]]></category>
		<category><![CDATA[objective c]]></category>
		<category><![CDATA[touchjson]]></category>

		<guid isPermaLink="false">http://www.codingday.com/?p=405</guid>
		<description><![CDATA[If you happen to use Admob and cocos2d in the same project, the compilation will fail with some linking errors. Although it is not mentioned on Admod SDK documentation, apparently Admob borrows TouchJSON from touch code, so does Cocos2d. ld: duplicate symbol .objc_category_name_NSCharacterSet_NSCharacterSet_Extensions in /AdMob/libAdMobSimulator.a(NSCharacterSet_Extensions.o) and Debug-iphonesimulator/ptap.build/Objects-normal/i386/NSCharacterSet_Extensions.o The duplicated links could be resolved by removing [...]]]></description>
			<content:encoded><![CDATA[<p>If you happen to use <a href="http://www.admob.com">Admob</a> and <a href="http://www.cocos2d-iphone.org/">cocos2d</a> in the same project, the compilation will fail with some linking errors. Although it is not mentioned on Admod SDK documentation, apparently Admob borrows TouchJSON from <a href="http://code.google.com/p/touchcode/wiki/TouchJSON">touch code</a>, so does Cocos2d.</p>
<div class="dos">
ld: duplicate symbol .objc_category_name_NSCharacterSet_NSCharacterSet_Extensions in /AdMob/libAdMobSimulator.a(NSCharacterSet_Extensions.o) and Debug-iphonesimulator/ptap.build/Objects-normal/i386/NSCharacterSet_Extensions.o
</div>
<p>
The duplicated links could be resolved by removing it from one of the sources. Since we don’t have Admob source code, the workaround is actually to remove the TouchJSON directories from your project which are located in the cocos2d source code.
</p>
<p>
Directory and Files to be Removed as they are statically linked through admob<br />
+TouchJSON<br />
-CDataScanner.h<br />
-CDataScanner.m<br />
+Extensions<br />
-CDataScanner_Extensions.h<br />
-CDataScanner_Extensions.m<br />
-NSCharacterSet_Extensions.h<br />
-NSCharacterSet_Extensions.m<br />
-NSDictionary_JSONExtensions.h<br />
-NSDictionary_JSONExtensions.m<br />
-NSScanner_Extensions.h<br />
-NSScanner_Extensions.m<br />
+JSON<br />
-CJSONDeserializer.h<br />
-CJSONDeserializer.m<br />
-CJSONScanner.h<br />
-CJSONScanner.m<br />
-CJSONSerializer.h<br />
-CJSONSerializer.m</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codingday.com/touchjson-conflicts-with-admob-and-cocos2d/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
