{"id":214,"date":"2016-02-11T22:43:42","date_gmt":"2016-02-11T22:43:42","guid":{"rendered":"http:\/\/fluentreports.com\/blog\/?p=214"},"modified":"2016-02-11T23:23:36","modified_gmt":"2016-02-11T23:23:36","slug":"nativescript-ios-xcode-7-2-code-signing-fix","status":"publish","type":"post","link":"http:\/\/fluentreports.com\/blog\/?p=214","title":{"rendered":"NativeScript: iOS xCode 7.2+  Code signing fix!"},"content":{"rendered":"<p>For the last couple months since xCode 7.2 was released, those poor iOS developers who upgraded to 7.2 have felt much pain if they installed any Cocoapods. If you didn't use any PODs you were fine.\u00a0 But the minute you used a plugin that has a POD; you were in for a world of hurt.\u00a0 And this error: <em>CodeSign error: entitlements are required for product type 'Application' in SDK 'Simulator - iOS 9.2'. Your Xcode installation may be damaged.\u00a0 <\/em>Was our only clue to what was wrong, not very helpful since Simulator apps aren't supposed to be signed.<\/p>\n<p>The solutions that I handed out was to either to de-install and downgrade to 7.1 or to\u00a0 build the app inside of the xCode environment.\u00a0 Neither were great solutions.<\/p>\n<p>I saw the <a href=\"https:\/\/github.com\/NativeScript\/ios-runtime\/pull\/501\">solution<\/a> appear a couple days ago in the <a href=\"https:\/\/github.com\/NativeScript\/ios-runtime\/pull\/501\">issues<\/a>; and finally had time to upgrade my environment back up to 7.2.1 to test and verify before I spread the good news.<\/p>\n<p>I can't take credit for the fix, that goes to Ivan &amp; Dimitar at Telerik who figured out why those using xCode 7.2+ could no longer use the TNS command line to build our applications.\u00a0\u00a0 The fixes will be showing up in the new v1.6 which should be released any day now; but in the meantime I figured I would document the fix so that you can apply it to your projects now.\u00a0 And unless you are planning on uninstalling the iOS runtimes and install them again in v1.6; you will still have to manually apply this fix to any existing projects.<\/p>\n<p><a href=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-1.png\" rel=\"attachment wp-att-215\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-215 size-full\" src=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-1.png\" alt=\"xcode-Fix-1\" width=\"771\" height=\"436\" srcset=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-1.png 771w, http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-1-300x170.png 300w, http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-1-768x434.png 768w, http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-1-624x353.png 624w\" sizes=\"auto, (max-width: 771px) 100vw, 771px\" \/><\/a>So lets say your app is named: <em>MyAwesomeApp<\/em>.\u00a0\u00a0 You need to navigate to your <strong>MyAwesomeApp\/ platforms \/ ios \/ MyAwesomeApp \/<\/strong> folder and then edit the <strong>build.xcconfig<\/strong> file. In the picture above the app is called <em>crossCommunicator<\/em>; so you will see that the path for the file for my app is <strong>crossCommunicator \/ platforms \/ ios \/ crossCommunicator \/ build.xcconfig.<\/strong><\/p>\n<p>Open that file up and then you should see something like this:<\/p>\n<p><a href=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-2.png\" rel=\"attachment wp-att-216\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-216 size-full\" src=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-2.png\" alt=\"xcode-Fix-2\" width=\"850\" height=\"215\" srcset=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-2.png 850w, http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-2-300x76.png 300w, http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-2-768x194.png 768w, http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-2-624x158.png 624w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/a>You see that line that says:<br \/>\n<strong>CODE_SIGN_IDENTITY = iPhone Developer<\/strong>?<br \/>\nComment it out, so that it now says:<br \/>\n<strong>\/\/ CODE_SIGN_IDENTITY = iPhone Developer<\/strong><\/p>\n<p><a href=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-3.png\" rel=\"attachment wp-att-217\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-217\" src=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-3.png\" alt=\"xcode-Fix-3\" width=\"848\" height=\"214\" srcset=\"http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-3.png 848w, http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-3-300x76.png 300w, http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-3-768x194.png 768w, http:\/\/fluentreports.com\/blog\/wp-content\/uploads\/2016\/02\/xcode-Fix-3-624x157.png 624w\" sizes=\"auto, (max-width: 848px) 100vw, 848px\" \/><\/a><\/p>\n<p>Save the file, and you are all set to go!\u00a0\u00a0 You can now use xCode 7.2+ and Cocoapods fine!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For the last couple months since xCode 7.2 was released, those poor iOS developers who upgraded to 7.2 have felt much pain if they installed any Cocoapods. If you didn't use any PODs you were fine.\u00a0 But the minute you used a plugin that has a POD; you were in for a world of hurt.\u00a0&hellip; <a class=\"more-link\" href=\"http:\/\/fluentreports.com\/blog\/?p=214\">Continue reading <span class=\"screen-reader-text\">NativeScript: iOS xCode 7.2+  Code signing fix!<\/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,39],"tags":[44,46,16,45,43],"class_list":["post-214","post","type-post","status-publish","format-standard","hentry","category-nativescript","category-tips","tag-code-signing","tag-entitlements","tag-nativescript","tag-signing","tag-xcode","entry"],"_links":{"self":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/214","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=214"}],"version-history":[{"count":3,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/214\/revisions"}],"predecessor-version":[{"id":220,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/214\/revisions\/220"}],"wp:attachment":[{"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=214"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=214"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/fluentreports.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=214"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}