<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>using a cocoapod that is in a library that is in an app?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/21716/using-a-cocoapod-that-is-in-a-library-that-is-in-an-app</link><description>I am trying to use your swift iOSDFULibrary cocoapod. What I am doing is the following. I have a library written in swift. That library is where I have your iOSDFULibrary. I have a class object that imports your iOSDFULibrary. I can build my library just</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 May 2017 07:10:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/21716/using-a-cocoapod-that-is-in-a-library-that-is-in-an-app" /><item><title>RE: using a cocoapod that is in a library that is in an app?</title><link>https://devzone.nordicsemi.com/thread/85303?ContentTypeID=1</link><pubDate>Mon, 08 May 2017 07:10:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:314b22ac-73f3-4509-a060-f88b78b74036</guid><dc:creator>Mostafa Berg</dc:creator><description>&lt;p&gt;@robmonti, it&amp;#39;s a much better route for you that&amp;#39;s true, you need to decouple your code and it&amp;#39;ll be easier to use it with other libraries as well, also remember that you can have private cocoapods that are not published to the cocoapods trunk if you are not planning to release this to the public&lt;/p&gt;
&lt;p&gt;Please remember to the mark the question as answered to make the solution visible to future search visitors :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using a cocoapod that is in a library that is in an app?</title><link>https://devzone.nordicsemi.com/thread/85302?ContentTypeID=1</link><pubDate>Fri, 05 May 2017 15:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a596b10b-d426-4f15-87a4-40737e8b9d13</guid><dc:creator>robmonti</dc:creator><description>&lt;p&gt;Thanks for the reply. While I was not originally using our library as a cocoapod (we were adding the library directly into our app), it looks like this may be the route I have to take.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: using a cocoapod that is in a library that is in an app?</title><link>https://devzone.nordicsemi.com/thread/85301?ContentTypeID=1</link><pubDate>Tue, 02 May 2017 09:40:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8aa600d4-7866-49cc-b63e-6e03a8949a02</guid><dc:creator>Mostafa Berg</dc:creator><description>&lt;p&gt;Hi robmonti!&lt;/p&gt;
&lt;p&gt;This is a good question, to use the library as a dependency you simply need to add it as a dependency to your own cocoapod&amp;#39;s &lt;code&gt;podspec&lt;/code&gt; file, to do that, simply remove all the references to &lt;code&gt;iOSDFULibrary&lt;/code&gt; from your &lt;code&gt;podfile&lt;/code&gt;, then open up your &lt;code&gt;myLibrary.podspec&lt;/code&gt; file and add a &lt;code&gt;dependency&lt;/code&gt; field, it should look like the way we added &lt;code&gt;zip&lt;/code&gt; as a denpendency to our &lt;code&gt;podspec&lt;/code&gt;, you may see that &lt;a href="https://github.com/NordicSemiconductor/IOS-Pods-DFU-Library/blob/master/iOSDFULibrary.podspec"&gt;here&lt;/a&gt; for reference.&lt;/p&gt;
&lt;p&gt;Simply, replace&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;s.dependency &amp;#39;Zip&amp;#39;, &amp;#39;~&amp;gt; 0.7&amp;#39;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to be&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;s.dependency &amp;#39;iOSDFULibrary&amp;#39;, &amp;#39;~&amp;gt; 3.0&amp;#39;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: You do not need to add Zip as a dependency, since our library already has that built in.&lt;/p&gt;
&lt;p&gt;after doing that you should go to your app and run&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pod install
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and you should be set to go, next time you run&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;pod trunk push
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;to release your cocoapod, your dependencies should be ready out of the box.&lt;/p&gt;
&lt;p&gt;hope this helps, if you encounter issues just let us know.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>