{"id":227,"date":"2016-02-17T06:53:36","date_gmt":"2016-02-17T06:53:36","guid":{"rendered":"http:\/\/fluentreports.com\/blog\/?p=227"},"modified":"2019-06-23T21:17:34","modified_gmt":"2019-06-23T21:17:34","slug":"nativescript-ios-tip-see-the-metadata-d-ts-files-generated-for-your-cocoapod-plugin","status":"publish","type":"post","link":"https:\/\/fluentreports.com\/blog\/?p=227","title":{"rendered":"NativeScript: iOS Tip - See the Metadata &#038; typings .d.ts files generated for your Cocoapod Plugin"},"content":{"rendered":"<p>One of my debugging tools when something doesn't seem to work as expected on iOS is to tell NativeScript to output the metadata while it is building the application.&nbsp; The easiest way to do it is:<br \/>\n<pre>TNS_DEBUG_METADATA_PATH=&quot;$(pwd)\/metadata&quot; tns build ios<\/pre><br \/>\nThis will create a metadata-xxxx folder (where xxx is the platform) in the root of your project.&nbsp;&nbsp; This folder will contain an XML file for EACH item it generated meta data for inside your project.&nbsp; Please note this DOES slow down the build time as it has to create each file.&nbsp;&nbsp; But it is worth it for the diagnostics it provides.<\/p>\n<p>Then I just look at the meta data and I can see if it first created a file for the plugin I'm working on, and if so, what is the exact exposed methods.<\/p>\n<p>&nbsp;<\/p>\n<p>The second tip is for those people using TypeScript; if you would like the .d.ts file for your plugin you can do:<br \/>\n<pre>TNS_TYPESCRIPT_DECLARATIONS_PATH=&quot;$(pwd)\/tsc&quot; tns build ios<\/pre><br \/>\nAnd it will create a tsc folder with the .d.ts files for each of the items it built metadata for.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>One of my debugging tools when something doesn't seem to work as expected on iOS is to tell NativeScript to output the metadata while it is building the application.&nbsp; The easiest way to do it is: TNS_DEBUG_METADATA_PATH=&quot;$(pwd)\/metadata&quot; tns build ios This will create a metadata-xxxx folder (where xxx is the platform) in the root of&hellip; <a class=\"more-link\" href=\"https:\/\/fluentreports.com\/blog\/?p=227\">Continue reading <span class=\"screen-reader-text\">NativeScript: iOS Tip - See the Metadata &#038; typings .d.ts files generated for your Cocoapod Plugin<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[15,51,39,68],"tags":[52,53,16,34,136],"class_list":["post-227","post","type-post","status-publish","format-standard","hentry","category-nativescript","category-plugins","category-tips","category-typescript","tag-ios","tag-metadata","tag-nativescript","tag-plugins","tag-typings","entry"],"_links":{"self":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=227"}],"version-history":[{"count":3,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/227\/revisions"}],"predecessor-version":[{"id":961,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/227\/revisions\/961"}],"wp:attachment":[{"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}