{ "id": "170480", "key": "TIMOB-25576", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [ { "id": "20060", "description": "", "name": "Release 7.0.2", "archived": false, "released": true, "releaseDate": "2018-02-09" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-12-15T21:08:06.000+0000", "created": "2017-11-28T17:39:55.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "18322", "name": "Release 5.5.1", "archived": false, "released": true, "releaseDate": "2016-09-28" }, { "id": "19906", "description": "", "name": "Release 6.3.0", "archived": false, "released": true, "releaseDate": "2017-11-01" } ], "issuelinks": [], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2018-01-20T11:14:25.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Either running from CLI ('appc run -p ios -T dist-appstore') or from Studio, building an xcarchive using the build scripts delivers a sort of corrupted build. \r\nThe problem is that all assets are copied from the ArchiveStaging build directory into a directory of the same name in the xcarchive directory.\r\n\r\n{noformat}\r\nDEBUG] Copying /Users/richard/Code/Inzdr/inzdr_app/src/Inzdr/build/iphone/iNZDR.xcarchive/Products/Applications/iNZDR.app/ArchiveStaging/progress => /Users/richard/Library/Developer/Xcode/Archives/2017-11-28/iNZDR 2017-11-28 18-02-52.xcarchive/Products/\r\n{noformat}\r\nAs a result all the assets are copied to the incorrect directory , 'ArchiveStaging' instead of the root of the xcarchive directory. \r\nThe problem only happens on AppStore or Ad Hoc builds, but not on device builds. The computer in question has a relatively recent clean installation of High Sierra.", "attachment": [], "flagged": false, "summary": "Ensuring usage of macros bundled core utilities and shells when adding to iOS buildPhases", "creator": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.13.1\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 25769803776\r\n\r\nNode.js\r\n Node.js Version = 6.10.3\r\n npm Version = 3.10.10\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\nTitanium SDK\r\n SDK Version = 6.3.0.GA\r\n SDK Path = /Users/richard/Library/Application Support/Titanium/mobilesdk/osx/6.3.0.GA\r\n Target Platform = iphone\r\nXcode\r\n 9.1 (build 9B55) - Xcode default\r\n Install Location = /Applications/Xcode.app/Contents/Developer\r\n iOS SDKs = 11.1\r\n iOS Simulators = 11.1\r\n Watch SDKs = 4.1\r\n Watch Simulators = 4.1\r\n Supported by TiSDK 6.3.0.GA = yes\r\n EULA Accepted = yes\r\n Teams = none", "comment": { "comments": [ { "id": "431440", "author": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "body": "It looks like the build phase 'Copy resources to archive' is not executed.\r\nIt should run `cp -rf \"$PROJECT_DIR/ArchiveStaging\"/ \"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/\"` but it doesn't seem to be executed.", "updateAuthor": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-29T11:36:16.000+0000", "updated": "2017-11-29T11:36:16.000+0000" }, { "id": "431443", "author": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "body": "I found the cause. I had the homebrew package 'coreutils' installed, which has a different version of cp, which will copy the whole directory recursively , including itself.\r\nThe macos bundled version has a different behaviour, which is copying the directory contents recursively , but not itself.\r\nShall I send a pr?\r\nModifying\r\n\r\n{code:java}\r\n//line 3149 of _build.js\r\nxobjs.PBXShellScriptBuildPhase[buildPhaseUuid] = {\r\n\t\t\tisa: 'PBXShellScriptBuildPhase',\r\n\t\t\tbuildActionMask: 2147483647,\r\n\t\t\tfiles: [],\r\n\t\t\tinputPaths: [],\r\n\t\t\tname: '\"' + name + '\"',\r\n\t\t\toutputPaths: [],\r\n\t\t\trunOnlyForDeploymentPostprocessing: 0,\r\n\t\t\tshellPath: '/bin/sh',\r\n\t\t\tshellScript: '\"cp -rf \\\\\"$PROJECT_DIR/ArchiveStaging\\\\\"/ \\\\\"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/\\\\\"\"',\r\n\t\t\tshowEnvVarsInLog: 0\r\n\t\t};\r\n}\r\n// to\r\nxobjs.PBXShellScriptBuildPhase[buildPhaseUuid] = {\r\n\t\t\tisa: 'PBXShellScriptBuildPhase',\r\n\t\t\tbuildActionMask: 2147483647,\r\n\t\t\tfiles: [],\r\n\t\t\tinputPaths: [],\r\n\t\t\tname: '\"' + name + '\"',\r\n\t\t\toutputPaths: [],\r\n\t\t\trunOnlyForDeploymentPostprocessing: 0,\r\n\t\t\tshellPath: '/bin/sh',\r\n\t\t\tshellScript: '\"/bin/cp -rf \\\\\"$PROJECT_DIR/ArchiveStaging\\\\\"/ \\\\\"$TARGET_BUILD_DIR/$PRODUCT_NAME.app/\\\\\"\"',\r\n\t\t\tshowEnvVarsInLog: 0\r\n\t\t};\r\n{code}", "updateAuthor": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-29T13:10:13.000+0000", "updated": "2017-11-29T13:10:13.000+0000" }, { "id": "431477", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Please create a PR and assign in here. Our engineers will look into it. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-11-29T20:46:00.000+0000", "updated": "2017-11-29T20:46:00.000+0000" }, { "id": "431517", "author": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "body": "Here is the PR,\r\n[https://github.com/appcelerator/titanium_mobile/pull/9639|https://github.com/appcelerator/titanium_mobile/pull/9639]", "updateAuthor": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-11-30T11:21:09.000+0000", "updated": "2017-11-30T11:21:09.000+0000" }, { "id": "431842", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Backport for 7_0_X: https://github.com/appcelerator/titanium_mobile/pull/9663", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-12-07T15:03:14.000+0000", "updated": "2017-12-07T15:03:14.000+0000" }, { "id": "432191", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~jvennemann] Can you please provide guidance on how to validate the fix?", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-14T22:57:39.000+0000", "updated": "2017-12-14T22:57:39.000+0000" }, { "id": "432224", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-12-15T18:23:05.000+0000", "updated": "2017-12-15T18:23:05.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }