{"id":17732,"date":"2017-04-14T15:07:18","date_gmt":"2017-04-14T19:07:18","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=17732"},"modified":"2017-04-14T15:33:13","modified_gmt":"2017-04-14T19:33:13","slug":"debugging-swift-code-in-an-embedded-framework","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2017\/04\/14\/debugging-swift-code-in-an-embedded-framework\/","title":{"rendered":"Debugging Swift Code in an Embedded Framework"},"content":{"rendered":"<p><a href=\"http:\/\/indiestack.com\/2017\/04\/debugging-swift-error-in-auto-import\/\">Daniel Jalkut<\/a>:<\/p>\n<blockquote cite=\"http:\/\/indiestack.com\/2017\/04\/debugging-swift-error-in-auto-import\/\">\n<p>After hours of trying to unravel this mystery, I discovered the root cause: the framework that is embedded in my app does not, in fact, contain any headers. They were stripped by Xcode when it copied the framework into the app.<\/p>\n<p>[&#8230;]<\/p>\n<p>In the mean time, you can work around the problem by setting the <span style=\"-webkit-hyphens:manual; -moz-hyphens:manual; hyphens:manual;\">&ldquo;<a href=\"https:\/\/developer.apple.com\/library\/content\/releasenotes\/DeveloperTools\/RN-Xcode\/Chapters\/Introduction.html#\/\/apple_ref\/doc\/uid\/TP40001051-CH1-SW364\">REMOVE_HEADERS_FROM_EMBEDDED_BUNDLES<\/a>&rdquo;<\/span> build setting to NO in the app that embeds the framework[&#8230;]<\/p>\n<\/blockquote>\n<p>Previously: <a href=\"https:\/\/mjtsai.com\/blog\/2016\/08\/14\/xcode-frameworks-and-embedded-frameworks\/\">Xcode, Frameworks, and Embedded Frameworks<\/a>.<\/p>","protected":false},"excerpt":{"rendered":"<p>Daniel Jalkut: After hours of trying to unravel this mystery, I discovered the root cause: the framework that is embedded in my app does not, in fact, contain any headers. They were stripped by Xcode when it copied the framework into the app. [&#8230;] In the mean time, you can work around the problem by [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"","apple_news_api_id":"","apple_news_api_modified_at":"","apple_news_api_revision":"","apple_news_api_share_url":"","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[4],"tags":[31,317,30,54,71,901,226],"class_list":["post-17732","post","type-post","status-publish","format-standard","hentry","category-programming-category","tag-ios","tag-lldb","tag-mac","tag-objective-c","tag-programming","tag-swift-programming-language","tag-xcode"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17732","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=17732"}],"version-history":[{"count":2,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17732\/revisions"}],"predecessor-version":[{"id":17742,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/17732\/revisions\/17742"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=17732"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=17732"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=17732"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}