{"id":246,"date":"2009-10-19T20:16:19","date_gmt":"2009-10-20T01:16:19","guid":{"rendered":"http:\/\/www.jaimerios.com\/?p=246"},"modified":"2009-10-19T20:16:19","modified_gmt":"2009-10-20T01:16:19","slug":"xcode-and-static-libs","status":"publish","type":"post","link":"https:\/\/jaimerios.com\/?p=246","title":{"rendered":"Xcode and static libs"},"content":{"rendered":"<p>I&#8217;m writing this blog entry just in case other people come across the same problem and can&#8217;t seem to figure out what&#8217;s going on.<\/p>\n<p>I found it in Xcode 2.5 that hasn&#8217;t been fixed in the latest version of Xcode that I have, version 3.1.3.<\/p>\n<p>The bug I&#8217;m referring to is when you create a target as a static lib output, then you change the target later to output a dylib. The problem is that everything looks fine&#8230; heck, it even puts a dylib in the file name extension, but the file is actually a static library.<\/p>\n<p>You have to go to Terminal.app and use the file command to see that the file is in fact, a static lib and not a dylib. You may not notice the problem at first until you go to debug the project and notice some weirdness.<\/p>\n<p>Hopefully, you haven&#8217;t gotten bit by this problem, but if you have, the only solution I found was to create a new target from scratch.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m writing this blog entry just in case other people come across the same problem and can&#8217;t seem to figure out what&#8217;s going on. I found it in Xcode 2.5 that hasn&#8217;t been fixed in the latest version of Xcode that I have, version 3.1.3. The bug I&#8217;m referring to is when you create a &#8230; <a title=\"Xcode and static libs\" class=\"read-more\" href=\"https:\/\/jaimerios.com\/?p=246\" aria-label=\"Read more about Xcode and static libs\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,20],"tags":[40,42,93,180,419,506],"class_list":["post-246","post","type-post","status-publish","format-standard","hentry","category-coding","category-not-so-funny","tag-2-5","tag-42","tag-bug","tag-dylib","tag-static-lib","tag-xcode"],"_links":{"self":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/246","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=246"}],"version-history":[{"count":0,"href":"https:\/\/jaimerios.com\/index.php?rest_route=\/wp\/v2\/posts\/246\/revisions"}],"wp:attachment":[{"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=246"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=246"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jaimerios.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=246"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}