{"action":"created","issue":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/2158","repository_url":"https://api.github.com/repos/NativeScript/nativescript-cli","labels_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/2158/labels{/name}","comments_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/2158/comments","events_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/2158/events","html_url":"https://github.com/NativeScript/nativescript-cli/issues/2158","id":185367378,"number":2158,"title":"The publish ios command fails","user":{"login":"vchimev","id":12251337,"avatar_url":"https://avatars.githubusercontent.com/u/12251337?v=3","gravatar_id":"","url":"https://api.github.com/users/vchimev","html_url":"https://github.com/vchimev","followers_url":"https://api.github.com/users/vchimev/followers","following_url":"https://api.github.com/users/vchimev/following{/other_user}","gists_url":"https://api.github.com/users/vchimev/gists{/gist_id}","starred_url":"https://api.github.com/users/vchimev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vchimev/subscriptions","organizations_url":"https://api.github.com/users/vchimev/orgs","repos_url":"https://api.github.com/users/vchimev/repos","events_url":"https://api.github.com/users/vchimev/events{/privacy}","received_events_url":"https://api.github.com/users/vchimev/received_events","type":"User","site_admin":false},"labels":[{"id":110536375,"url":"https://api.github.com/repos/NativeScript/nativescript-cli/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":{"login":"tzraikov","id":3244426,"avatar_url":"https://avatars.githubusercontent.com/u/3244426?v=3","gravatar_id":"","url":"https://api.github.com/users/tzraikov","html_url":"https://github.com/tzraikov","followers_url":"https://api.github.com/users/tzraikov/followers","following_url":"https://api.github.com/users/tzraikov/following{/other_user}","gists_url":"https://api.github.com/users/tzraikov/gists{/gist_id}","starred_url":"https://api.github.com/users/tzraikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzraikov/subscriptions","organizations_url":"https://api.github.com/users/tzraikov/orgs","repos_url":"https://api.github.com/users/tzraikov/repos","events_url":"https://api.github.com/users/tzraikov/events{/privacy}","received_events_url":"https://api.github.com/users/tzraikov/received_events","type":"User","site_admin":false},"assignees":[{"login":"tzraikov","id":3244426,"avatar_url":"https://avatars.githubusercontent.com/u/3244426?v=3","gravatar_id":"","url":"https://api.github.com/users/tzraikov","html_url":"https://github.com/tzraikov","followers_url":"https://api.github.com/users/tzraikov/followers","following_url":"https://api.github.com/users/tzraikov/following{/other_user}","gists_url":"https://api.github.com/users/tzraikov/gists{/gist_id}","starred_url":"https://api.github.com/users/tzraikov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tzraikov/subscriptions","organizations_url":"https://api.github.com/users/tzraikov/orgs","repos_url":"https://api.github.com/users/tzraikov/repos","events_url":"https://api.github.com/users/tzraikov/events{/privacy}","received_events_url":"https://api.github.com/users/tzraikov/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-10-26T11:29:58Z","updated_at":"2016-12-04T20:58:23Z","closed_at":"2016-10-28T13:45:50Z","body":"Command:\n\n```\nnode_modules/.bin/tns publish ios <user> <pass> --path TNSAppTest --log trace\n```\n\nIt seems there is `plugins-debug.xcconfig`, but no `plugins-release.xcconfig`:\n\n```\nmcsofnsbuild02:ios nsbuilduser$ pwd\n/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/TNSAppTest/platforms/ios\nmcsofnsbuild02:ios nsbuilduser$ ls -al\ntotal 16\ndrwxr-xr-x   7 nsbuilduser  wheel  238 Oct 26 14:24 .\ndrwxr-xr-x   3 nsbuilduser  wheel  102 Oct 26 14:08 ..\n-rw-r--r--   1 nsbuilduser  wheel   92 Oct 26 14:24 .nsprepareinfo\ndrwxr-xr-x  10 nsbuilduser  wheel  340 Oct 26 14:24 TNSAppTest\ndrwxr-xr-x   4 nsbuilduser  wheel  136 Oct 26 14:09 TNSAppTest.xcodeproj\ndrwxr-xr-x  14 nsbuilduser  wheel  476 Oct 26 14:09 internal\n-rw-r--r--   1 nsbuilduser  wheel  131 Oct 26 14:24 plugins-debug.xcconfig\n```\n\nIf I add `plugins-release.xcconfig`, the command manages to publish successfully.\n\nXcode version:\n\n```\n$ xcodebuild -version\nXcode 8.0\nBuild version 8A218a\n```\n\nOutput:\n\n```\nProject successfully prepared (iOS)\nAfterHookName for command prepare is after-prepare\nspawn: xcodebuild \"archive\" \"-archivePath\" \"/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/TNSAppTest/platforms/ios/build/archive/TNSAppTest.xcarchive\" \"-project\" \"/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/TNSAppTest/platforms/ios/TNSAppTest.xcodeproj\" \"-scheme\" \"TNSAppTest\"\nUser defaults from command line:\n    IDEArchivePathOverride = /Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/TNSAppTest/platforms/ios/build/archive/TNSAppTest.xcarchive\n\n=== BUILD TARGET TNSAppTest OF PROJECT TNSAppTest WITH CONFIGURATION Release ===\n\nCheck dependencies\nbuild-release.xcconfig line 2: Unable to find included file \"../plugins-release.xcconfig\"\nSigning for \"TNSAppTest\" requires a development team. Select a development team in the project editor.\nCode signing is required for product type 'Application' in SDK 'iOS 10.0'\n\n** ARCHIVE FAILED **\n\n\nThe following build commands failed:\n    Check dependencies\n(1 failure)\nError: Command xcodebuild failed with exit code 65\n    at FiberFuture.wait (/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/fibers/future.js:566:15)\n    at /Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/nativescript/lib/common/errors.js:128:33\n    at Function.settle (/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/fibers/future.js:249:26)\n    at FiberFuture.wait (/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/fibers/future.js:565:10)\n    at /Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/nativescript/lib/common/services/commands-service.js:84:106\n    at Function.settle (/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/fibers/future.js:249:26)\n    at FiberFuture.wait (/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/fibers/future.js:565:10)\n    at /Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/nativescript/lib/common/yok.js:208:124\n    at Function.settle (/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/fibers/future.js:249:26)\n    at FiberFuture.wait (/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/fibers/future.js:565:10)\n    at /Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/nativescript/lib/common/services/commands-service.js:51:55\n    at Function.settle (/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/fibers/future.js:249:26)\n    at FiberFuture.wait (/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/fibers/future.js:565:10)\n    at /Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/nativescript/lib/common/errors.js:128:33\n    at Function.settle (/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/fibers/future.js:249:26)\n    at FiberFuture.wait (/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/fibers/future.js:565:10)\n    - - - - -\n    at ChildProcess.<anonymous> (/Users/nsbuilduser/workspace/tns-publish-iOS-AppStore-master/node_modules/nativescript/lib/common/child-process.js:91:38)\n    at emitTwo (events.js:106:13)\n    at ChildProcess.emit (events.js:191:7)\n    at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)\n```\n\nCC: @PanayotCankov, @tzraikov \n"},"comment":{"url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/comments/264730655","html_url":"https://github.com/NativeScript/nativescript-cli/issues/2158#issuecomment-264730655","issue_url":"https://api.github.com/repos/NativeScript/nativescript-cli/issues/2158","id":264730655,"user":{"login":"bradmartin","id":6006148,"avatar_url":"https://avatars.githubusercontent.com/u/6006148?v=3","gravatar_id":"","url":"https://api.github.com/users/bradmartin","html_url":"https://github.com/bradmartin","followers_url":"https://api.github.com/users/bradmartin/followers","following_url":"https://api.github.com/users/bradmartin/following{/other_user}","gists_url":"https://api.github.com/users/bradmartin/gists{/gist_id}","starred_url":"https://api.github.com/users/bradmartin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bradmartin/subscriptions","organizations_url":"https://api.github.com/users/bradmartin/orgs","repos_url":"https://api.github.com/users/bradmartin/repos","events_url":"https://api.github.com/users/bradmartin/events{/privacy}","received_events_url":"https://api.github.com/users/bradmartin/received_events","type":"User","site_admin":false},"created_at":"2016-12-04T20:58:23Z","updated_at":"2016-12-04T20:58:23Z","body":"I think I ran into this last week. I switched from the CLI publish to an xcode workflow and I have to manually set the `PODS_ROOT` for release in the build settings for the project to `${SRCROOT}/Pods` to get a successful build."}}
{"actor":{"display_login":"bradmartin"}}