{ "id": "149977", "key": "TIMOB-19283", "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": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2015-09-14T17:08:09.000+0000", "created": "2015-07-29T07:15:54.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-5.0.0" ], "versions": [ { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "issuelinks": [ { "id": "48510", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "150019", "key": "TIMOB-19291", "fields": { "summary": "iOS: Cannot install Adhoc builds on iOS 9 device", "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" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2015-09-14T17:08:14.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": "An error is shown while trying to build to a iOS 9 device\r\n\r\nSteps to reproduce:\r\n1. Create a new titanium project using \"appc new\"\r\n2. Go to the project folder and try to build the project to iOS 9 device using \"appc run\" or \"appc ti build\"\r\n\r\nActual Result:\r\nAn error is shown\r\n{code}\r\n[INFO] Installing app on device: AppC S iPhone6\r\n[ERROR] Failed to copy app to device (0xe8000005)\r\n[ERROR] An error occurred during build after 26s 626ms\r\n[ERROR] Failed to copy app to device (0xe8000005)\r\n \r\nTRACE | titanium exited with exit code 1\r\nERROR | Error: ti run exited with error code 1\r\n at ChildProcess. (/Users/ssekhri/.appcelerator/install/4.2.0-1/package/node_modules/appc-cli-titanium/plugins/run.js:89:66)\r\n at ChildProcess.emit (events.js:117:20)\r\n at Process.ChildProcess._handle.onexit (child_process.js:820:12)\r\n{code}", "attachment": [], "flagged": false, "summary": "Cannot build to iOS 9 device using appc run", "creator": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ssekhri", "key": "ssekhri", "displayName": "Satyam Sekhri", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Mac OS: 10.10.4\r\nTi SDK 4.2.0.v20150728205240\r\nAppc NPM 4.1.0 \r\nAppc CLI 4.2.0-1\r\nTi CLI: 4.1.2\r\nXcode 7 -beta4", "comment": { "comments": [ { "id": "358555", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I encounter this as well, using:\r\n\r\nMacOS 10.11\r\nStudio 4.1.1.201507141126\r\nTi SDK 4.2.0.v20150729134419\r\nAppc NPM 4.1.0\r\nAppc CLI 4.2.0-1\r\nTi CLI 4.1.2\r\nAlloy 1.6.2\r\nNode v0.10.37\r\nJava 1.7.0_45\r\npreproduction\r\nXcode 7b4\r\n\r\nBuilding for iOS 9 devices fails with the above error. iOS 9 simulator works as expected.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-07-29T22:00:33.000+0000", "updated": "2015-07-29T22:00:33.000+0000" }, { "id": "361949", "author": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "body": "Builds to device using the {{ti}} command likewise fail:\r\n\r\n{code}\r\n> ti build -p ios -T device\r\n....\r\n[INFO] Finished building the application in 1m 13s 188ms\r\n[INFO] Installing app on device: ACV's iPhone\r\n[ERROR] An error occurred during build after 1m 28s 625ms\r\n[ERROR] Failed to copy app to device (0xe8000005)\r\n{code}\r\n\r\nSDK 5.0.0.v20150829212027\r\nCLI 4.1.5\r\niPhone 5, iOS 9 beta\r\nXcode 7 beta 5\r\n\r\n", "updateAuthor": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "created": "2015-09-01T17:11:03.000+0000", "updated": "2015-09-01T17:11:03.000+0000" }, { "id": "361953", "author": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "body": "This worked for me once, but subsequent builds fail with the previously listed error.\r\n\r\n1. Connect your device to your Mac\r\n2. Open Xcode-beta (not Xcode, if you have both installed)\r\n3. Choose Window, Devices\r\n4. If necessary, select your iPhone/iPad\r\n5. Just wait until the \"processing symbol files\" process is complete. Then, you can {{ti build}} successfully. I haven't tried {{appc run}} but I suspect it's the same.\r\n\r\nEditing one last time -- builds to device work every other time for me. One builds fails, then I simply re-run the same command and it works fine. It makes no difference if the app is running on device or is closed when I build.", "updateAuthor": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "created": "2015-09-01T17:20:18.000+0000", "updated": "2015-09-01T17:59:14.000+0000" }, { "id": "361965", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Some ideas mentioned in the Titans flow:\n\n- https://www.npmjs.com/package/ios-deploy (said to work when Ti fails)\n- https://forums.xamarin.com/discussion/27430/error-on-debug-ios (similar problem)", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2015-09-01T18:34:03.000+0000", "updated": "2015-09-01T18:34:03.000+0000" }, { "id": "363552", "author": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "body": "I spotted the following the logs on one of the failed build/installs. It mentions symlinks being forbidden. Perhaps this is the reason for the failed install?\r\n\r\n{code}\r\nSep 10 17:39:20 ACVs-iPhone com.apple.StreamingUnzipService[172] : -[StreamingUnzipper _supplyBytes:length:withReply:]:1343: Invalid symlink: /private/var/mobile/Media/PublicStaging/DEMO.app/iTunesArtwork -> /Users/timpoulsen/repos/acvmobile_skypanther/iTunesArtwork (absolute symlinks are forbidden)\r\nSep 10 17:39:20 ACVs-iPhone streaming_zip_conduit[171] : __dispatch_source_read_socket_block_invoke_2167:297: Stream extractor got error: Error Domain=SZExtractorErrorDomain Code=2 \"Invalid symlink: /private/var/mobile/Media/PublicStaging/DEMO.app/iTunesArtwork -> /Users/timpoulsen/repos/acvmobile_skypanther/iTunesArtwork (absolute symlinks are forbidden)\" UserInfo={SZExtractorFunctionNameErrorKey=-[StreamingUnzipper _supplyBytes:length:withReply:], NSFilePath=/private/var/mobile/Media/PublicStaging/DEMO.app/iTunesArtwork, NSLocalizedDescription=Invalid symlink: /private/var/mobile/Media/PublicStaging/DEMO.app/iTunesArtwork -> /Users/timpoulsen/repos/acvmobile_skypanther/iTunesArtwork (absolute symlinks are forbidden), SZExtractorSourceFileLineErrorKey=1343}\r\n{code}", "updateAuthor": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "created": "2015-09-10T21:47:22.000+0000", "updated": "2015-09-10T21:47:22.000+0000" }, { "id": "363555", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "[~timpoulsen] The MobileDevice error 0xe8000005 is unknown. I have no idea what triggers this.\r\n\r\nLooking at your logs in your previous comment, I see the symlink reference. You can try to build with {{\\-\\-force\\-copy}} and see if that fixes it.\r\n\r\nRecently I \"fixed\" something where iTunes artwork was being copied for device and dist-appstore builds, but really only needed to be copied for dist-adhoc builds. I also remove iTunesArtwork from the symlink blacklist (https://github.com/appcelerator/titanium_mobile/commit/7639da56fdcbbb31c9188d15c70c0da363689cd0#diff-f430483233aa01af5b10df8390f9635dL3946). The reason why is the copyResources() build step copies from the Resources directory, not the project root, so you'll never copy an iTunesArtwork, so there's no reason to try to ignore it. The latest code does not symlink iTunesArtwork anyways.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-09-10T22:07:36.000+0000", "updated": "2015-09-10T22:07:36.000+0000" }, { "id": "363593", "author": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "body": "Adding {{--force-copy}} seems to have fixed this. I did about a dozen builds to device using this option, all worked, and I got icons and launch images every time.", "updateAuthor": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "created": "2015-09-11T14:38:01.000+0000", "updated": "2015-09-11T14:38:01.000+0000" }, { "id": "363623", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "I can't seam to reproduce your log message above. I have no clue what the StreamingUnzipService is, but device builds do not include a iTunesArtwork anymore.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2015-09-11T20:00:13.000+0000", "updated": "2015-09-11T20:00:13.000+0000" }, { "id": "363722", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~timpoulsen] Hi there!\r\n\r\nI was unable to reproduce with either multiple Kitchensink (from master, but with added DefaultIcon.png to avoid icon errors) or default alloy app installs using appc run. I used:\r\nMac OS 10.10.3\r\nAlloy: 1.7.7\r\nTitanium CLI: 5.0.3\r\nAppc CLI: 5.0.0-51\r\nAppc CLI NPM: 4.2.0-8\r\nTitanium SDK version 5.0.0.v20150911123911\r\nAppcelerator Studio, build: 4.3.0.201509031836\r\nXcode 7 GM Seed", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-09-14T01:27:52.000+0000", "updated": "2015-09-14T01:27:52.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }