{"id":612,"date":"2013-04-25T10:00:21","date_gmt":"2013-04-25T15:00:21","guid":{"rendered":"https:\/\/keithcchan.com\/?p=612"},"modified":"2013-10-29T16:25:08","modified_gmt":"2013-10-29T21:25:08","slug":"another-night-of-coding-issues","status":"publish","type":"post","link":"https:\/\/www.keithcchan.com\/wordpress\/2013\/04\/another-night-of-coding-issues.html","title":{"rendered":"Another Night of Coding Issues"},"content":{"rendered":"<p>I thought my Anthropomotron update troubles were over when I finally got it running the latest Phonegap, but as I tried to archive the app to upload to the App Store, it failed with an error message: <\/p>\n<blockquote><p>&#8220;&#8216;Cordova\/CDVViewController.h&#8217; file not found.&#8221; <\/p><\/blockquote>\n<p>Looking around on the internet, it appears that this is another bug caused by starting from a 1.x version of Phonegap. The solution that finally worked for me was four-fold.<\/p>\n<p>First, I made super sure that the CordovaLib.xcodeproj file was in my Anthropomotron.xcodeproj file. Confused? <a href=\"http:\/\/outof.me\/embedding-cordovalib-in-your-iosphonegap-app-project\/\">These instructions sum up the process<\/a>. I found that even after following the instructions, Xcode thinks that CordovaLib exists elsewhere on my computer. I had to click on CordovaLib.xcodeproj in my own project&#8217;s left sidebar in Xcode, check the <em>right<\/em> sidebar that says &#8220;Identity,&#8221; and make the &#8220;Location&#8221; &#8220;Relative to CORDOVALIB.&#8221; Phew. But I still got an error. Rats.<\/p>\n<p>Second, I followed <a href=\"https:\/\/issues.apache.org\/jira\/browse\/CB-1360\">these instructions<\/a> that involve digging into the CordovaLib.xcodeproj file in the Finder via &#8220;Show Package Contents,&#8221; open the necessary file in TextEdit, and add a few lines of code where necessary. There are multiple &#8220;ARCHS&#8221; sections so I had to add the lines several times in the file, using the Find function to look for instances of &#8220;ARCHS.&#8221;<\/p>\n<p>Third, I followed Approaches 1 and 4 of <a href=\"http:\/\/stackoverflow.com\/questions\/13883471\/phonegap-cdvviewcontroller-h-not-found-when-archiving-for-distribution\">these instructions<\/a> to get Xcode to look in the right places when building my app and not overthink the building process. (Approach 2 is my first step listed here).<\/p>\n<p>I know the first step is critical for the app archiving process to work. I&#8217;m actually not sure whether the second, third, or some combination of steps did the trick, but they didn&#8217;t hurt so that&#8217;s good I guess.<\/p>\n<p>After that, I was finally successful in packaging Anthropomotron 1.5 and uploading it to the App Store. Review should take a few days and modern body mass estimation can be unleashed on the world!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I thought my Anthropomotron update troubles were over when I finally got it running the latest Phonegap, but as I tried to archive the app to upload to the App Store, it failed with an error message: &#8220;&#8216;Cordova\/CDVViewController.h&#8217; file not found.&#8221; Looking around on the internet, it appears that this&#8230; <a href=\"https:\/\/www.keithcchan.com\/wordpress\/2013\/04\/another-night-of-coding-issues.html\" class=\"readmore\">Read more<span class=\"screen-reader-text\">&#8220;Another Night of Coding Issues&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[20],"tags":[141,153,142],"class_list":["post-612","post","type-post","status-publish","format-standard","hentry","category-anthropology","tag-anthropomotron","tag-phonegap","tag-programming"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.keithcchan.com\/wordpress\/wp-json\/wp\/v2\/posts\/612","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.keithcchan.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.keithcchan.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.keithcchan.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.keithcchan.com\/wordpress\/wp-json\/wp\/v2\/comments?post=612"}],"version-history":[{"count":0,"href":"https:\/\/www.keithcchan.com\/wordpress\/wp-json\/wp\/v2\/posts\/612\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.keithcchan.com\/wordpress\/wp-json\/wp\/v2\/media?parent=612"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.keithcchan.com\/wordpress\/wp-json\/wp\/v2\/categories?post=612"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.keithcchan.com\/wordpress\/wp-json\/wp\/v2\/tags?post=612"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}