{ "id": "171923", "key": "TIMOB-26209", "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": "20115", "name": "Release 7.3.0", "archived": false, "released": true, "releaseDate": "2018-08-17" }, { "id": "20221", "name": "ioslib 1.7.3", "archived": false, "released": true, "releaseDate": "2018-07-24" }, { "id": "20234", "name": "ioslib 1.7.5", "archived": false, "released": true, "releaseDate": "2018-08-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2018-08-14T20:25:40.000+0000", "created": "2018-07-12T15:23:04.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "ioslib" ], "versions": [ { "id": "20200", "name": "ioslib 1.7.2", "archived": false, "released": true, "releaseDate": "2018-06-11" } ], "issuelinks": [], "assignee": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "updated": "2018-08-14T21:53:51.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": "13103", "name": "CLI", "description": "Node-based command line interface" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "On our CI build machines we have Xcode 8.1, 9, and 10 beta 3 installed. It seems that accepting the license for 10 beta 3 and 8.1 are mutually exclusive (i.e. if I accept 10 beta 3's license using xcodebuild -license accept, it causes Xcode 8.1 xcodebuild -checkFistLaunchStatus to return a non-zero exit code; and vice versa).\r\n\r\nWhen doing ti info or a ti build, this ends up complaining with an error about the Xcode EULA not being accepted - even though in this particular case we have Xcode 10 beta 3 selected and what we are going to use for the build set up properly.\r\n\r\nThe CLI should be able to determine if the Xcode version we're using is ok and mark the other Xcode EULA acceptance as a warning instead of an error that stops the build.", "attachment": [], "flagged": false, "summary": "CLI: If any Xcode installs don't have EULA accepted (even one not being used), build won't work", "creator": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "environment": null, "closedSprints": [ { "id": 1065, "state": "closed", "name": "2016 Sprint 17 SDK", "startDate": "2018-08-13T17:39:36.846Z", "endDate": "2018-08-27T17:39:00.000Z", "completeDate": "2018-08-29T16:10:57.013Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "439236", "author": { "name": "Ugi", "key": "ugi", "displayName": "Uglješa Erceg", "active": true, "timeZone": "Europe/Berlin" }, "body": "+1 Same issue in here. I had Xcode 7, 8, 9 (current one) and 10 (beta). I was unable to accept EULA on older versions for some reason (7 and 8) and until I have removed them (have successfully accepted licenses on 9 and 10), build didn't work even though I have Xcode 9 selected as main one.", "updateAuthor": { "name": "Ugi", "key": "ugi", "displayName": "Uglješa Erceg", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-07-16T11:36:36.000+0000", "updated": "2018-07-16T11:36:36.000+0000" }, { "id": "439450", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "ioslib 1.7.x PR: https://github.com/appcelerator/ioslib/pull/81\r\n\r\nSDK master: https://github.com/appcelerator/titanium_mobile/pull/10205\r\nSDK 7_3_X: https://github.com/appcelerator/titanium_mobile/pull/10204", "updateAuthor": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "created": "2018-07-24T21:34:43.000+0000", "updated": "2018-07-24T21:57:12.000+0000" }, { "id": "439452", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Published ioslib@1.7.3.", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2018-07-24T21:37:36.000+0000", "updated": "2018-07-24T21:37:36.000+0000" }, { "id": "440521", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "When trying to build with the fix in place on SDK 7.3.0, Xcodes 8.1, 8.3, 9.4, and 10 present, and with the EULA accepted on either of the Xcode 8.Xs, I get the following error:\r\nbq. [ERROR] Agreeing to the Xcode/iOS license requires admin privileges, please run “sudo xcodebuild -license” and then retry this command.\r\nThis error is encountered where I used to get the error about needing to accept the EULA. Running 'sudo xcodebuild -license accept' before and after the error is encountered resulted in no change.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-08-06T19:50:29.000+0000", "updated": "2018-08-06T19:50:29.000+0000" }, { "id": "440698", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "Here's take two.\r\n\r\nReverted the change to ioslib@1.7 where we only check the EULA for the selected Xcode and improved EULA issue detection. This fixes {{ti info}} issues.\r\n\r\nMoved the Xcode EULA acceptance assertion from the pre-validate to the validate after the Xcode version has been determined.\r\n\r\nti info issues now reports:\r\n\r\n{code}\r\niOS Issues\r\n ! Multiple Xcode versions have not had their EULA accepted:\r\n 9.3.1 (/Applications/Xcode-9.3.1.app)\r\n 9.4.1 (/Applications/Xcode.app)\r\n Launch each Xcode and accept the license.\r\n{code}\r\n\r\nBuilding with an Xcode that does not have an accepted EULA errors with the following:\r\n\r\n{code}\r\n[ERROR] Xcode 9.4.1 end-user license agreement has not been accepted.\r\n[ERROR] Please launch \"/Applications/Xcode.app\" or run \"sudo xcodebuild -license\" and accept the license.\r\n{code}\r\n\r\nioslib 1_7_X: https://github.com/appcelerator/ioslib/pull/83\r\n\r\nTiSDK master: https://github.com/appcelerator/titanium_mobile/pull/10249\r\nTiSDK 7_3_X: https://github.com/appcelerator/titanium_mobile/pull/10250", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2018-08-13T15:44:58.000+0000", "updated": "2018-08-13T17:37:03.000+0000" }, { "id": "440778", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the changes are included in 7.3.0.v20180814130026. Xcode EULA acceptance is improved and I am able to build with multiple Xcode's of varying levels of EULA acceptance.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-08-14T21:53:51.000+0000", "updated": "2018-08-14T21:53:51.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }