Titanium JIRA Archive
Appcelerator Daemon (DAEMON)

[DAEMON-259] iOS: Not able to select 11.4 simulator from studio

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2018-08-07T16:51:55.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsappcd-plugin-ios
Labelsn/a
ReporterShuo Liang
AssigneeChris Barber
Created2018-06-21T04:26:39.000+0000
Updated2018-09-12T16:23:31.000+0000

Description

After upgrade Xcode 9.4.1, we can see there are version 11.4 simulators shows up in Xcode. But we can not see if from studio's run configure.

Reproduce

1. Upgrade Xcode to 9.4.1 2. Create/Use a default app. 3. Open run configuration, you can see iOS version is 11.4, Simulator version is 11.4, but still not able to select 11.4 simulator in the dropdown list. All simulators are still version 11.3 (attach screen shot) 4. But if you select 11.3 simulator, it always run into 11.4 simulator directly. (attach screen shot)

Note:

1. Run "appc info", the output looks all right. We can see both 11.3 and 11.4 simulators. (attached) 2. If we create app directly from Xcode, we can select target simulator as 11.4 or 11.3

Attachments

FileDateSize
appc info.txt2018-06-21T04:25:16.000+000020774
gistfile1.txt2018-06-25T03:28:11.000+0000246898
Screen Shot 2018-06-21 at 11.25.22 AM.png2018-06-21T04:24:18.000+0000196862
Screen Shot 2018-06-21 at 12.16.47 PM.png2018-06-21T04:24:18.000+0000214740
tiinfo_ios.txt2018-06-25T03:37:56.000+0000411071

Comments

  1. Kondal Kolipaka 2018-06-25

    Looks like there is a discrepancy between *runtimeName* and *version* which studio fetches from the Appc Daemon iOS info. As you can see in the below content, runtimeName shown as "iOS 11.4" and "version" shown as "11.3"
       "11.3": [
       {
       
       "deviceDir": "/Users/kkolipaka/Library/Developer/CoreSimulator/Devices/BB9DFC87-10A6-466A-8D47-C854C872AAF8",
       
       "deviceType": "com.apple.CoreSimulator.SimDeviceType.iPad-Air",
       
       "name": "iPad Air",
       
       "runtime": "com.apple.CoreSimulator.SimRuntime.iOS-11-4",
       
       "udid": "BB9DFC87-10A6-466A-8D47-C854C872AAF8",
       
       "type": "ios",
       
       "deviceName": "iPad Air",
       
       "family": "ipad",
       
       "model": "iPad4,2",
       
       "runtimeName": "iOS 11.4",
       
       "version": "11.3",
       
       "supportsWatch": {
       
       "9.4:9F1027a": false
       
       },
       
       "supportsXcode": {
       
       "9.4:9F1027a": true
       
       },
       
       "watchCompanion": {}
       
       },
       
  2. Kondal Kolipaka 2018-06-25

    Please find the attached Appc Daemon output for appc appcd exec /ios/1.x/info [^gistfile1.txt] Which is having only 11.3 iOS simulators. Please also find the output for ti info iOS command appc ti info -o json -t ios > tiinfo_ios.txt [^tiinfo_ios.txt] Interestingly, ti info is having both the 11.3 and 11.4 simulators
  3. Kondal Kolipaka 2018-06-25

    Please also find the output for $instruments -s devices which doesn't have any simulators with *11.3* version
       
       item-ax40113:titanium_studio kkolipaka$ instruments -s devices
       Known Devices:
       ITEM-AX40113 [E11162F4-6FBF-54B3-977B-8479E12B9730]
       Apple TV (11.4) [E66B4208-CE14-49E1-8874-D7B7DF04A837] (Simulator)
       Apple TV 4K (11.4) [307572E1-A57B-4E99-BC56-0B6E127DDCC6] (Simulator)
       Apple TV 4K (at 1080p) (11.4) [38F046B3-A463-45A5-AE9F-C484D7C9194E] (Simulator)
       Apple Watch - 38mm (4.3) [27118F94-07BF-41D9-B4CB-E02D30C18C79] (Simulator)
       Apple Watch - 42mm (4.3) [792BC9EA-0ACF-44DF-BEC9-E45B2E7751A6] (Simulator)
       iPad (5th generation) (11.0.1) [9C61027B-D31F-4BEB-A6C7-523BA1D15EBC] (Simulator)
       iPad (5th generation) (11.4) [566CFC92-1C0D-4B20-8924-3F254684B2E7] (Simulator)
       iPad 2 (9.0) [08F6CCC4-0772-4BFA-A9A2-ED70DAAE1E53] (Simulator)
       iPad 2 (9.3) [D87B72A4-99AE-42A7-A22A-B19B8C6EFE8D] (Simulator)
       iPad Air (11.0.1) [87913D06-E1A9-4D48-B0CF-E44568A95287] (Simulator)
       iPad Air (11.4) [BB9DFC87-10A6-466A-8D47-C854C872AAF8] (Simulator)
       iPad Air (9.0) [5251C64A-D7A7-4CF9-8442-E5D6D98A2D3B] (Simulator)
       iPad Air (9.3) [AC64E834-CDFD-409C-82C2-9BE7F79036B4] (Simulator)
       iPad Air 2 (11.0.1) [D6214505-B6BF-4A9D-A9A4-1158839A5E6F] (Simulator)
       iPad Air 2 (11.4) [C40EFCA4-9ABB-4F5B-AC1E-2E93F430776F] (Simulator)
       iPad Air 2 (9.0) [F2D55453-0BF1-4192-81B0-7598E8DBFD5D] (Simulator)
       iPad Air 2 (9.3) [5A79FF42-20CA-47CF-9B5E-BF540AAEA977] (Simulator)
       iPad Pro (10.5-inch) (11.0.1) [F811FB55-F6B1-4387-9475-4BB12F838E8D] (Simulator)
       iPad Pro (10.5-inch) (11.4) [B1D97EE0-0026-4B5B-8179-670C0D3A5FC0] (Simulator)
       iPad Pro (12.9-inch) (11.0.1) [0433654D-51E4-4466-AF7F-2F105CF40124] (Simulator)
       iPad Pro (12.9-inch) (11.4) [A80F7866-F849-42D2-86A6-10DB6FB3A447] (Simulator)
       iPad Pro (12.9-inch) (2nd generation) (11.0.1) [297B6CDA-CE72-499E-99A6-D6861F9279B9] (Simulator)
       iPad Pro (12.9-inch) (2nd generation) (11.4) [383A6CD1-6B25-42C4-82E2-60A3B157F321] (Simulator)
       iPad Pro (9.3) [C3ACFFAF-7EB2-45E0-82C1-0DF2967FF768] (Simulator)
       iPad Pro (9.7-inch) (11.0.1) [99D3E117-2DB5-4160-999C-86F0376A801D] (Simulator)
       iPad Pro (9.7-inch) (11.4) [559048F8-5CA4-4C40-8E63-655278787E33] (Simulator)
       iPad Retina (9.0) [DE757E78-4923-4347-88BE-9E1413BF1B27] (Simulator)
       iPad Retina (9.3) [18476139-CE68-4497-A808-F4CB0168CB0E] (Simulator)
       iPhone 4s (9.0) [3368D536-DAF8-43BA-93E9-54A893A8EC2A] (Simulator)
       iPhone 4s (9.3) [83D501D0-E7CE-4DC4-A165-4B9CCDE17B53] (Simulator)
       iPhone 5 (9.0) [B77F3B4D-E850-4FFA-9AAE-A813B165D3DC] (Simulator)
       iPhone 5 (9.0) + Apple Watch - 38mm (2.0) [F3F5BB7A-0BC5-4DB7-B2B7-26283AF0E31E] (Simulator)
       iPhone 5 (9.3) [869C1ACE-CF07-42DD-BF7F-0DD95793FDDF] (Simulator)
       iPhone 5s (11.0.1) [77844689-871E-4C5D-A9E1-9F8C41045F7A] (Simulator)
       iPhone 5s (11.4) [39CD438E-7A40-4795-8991-EB57ABF8D63B] (Simulator)
       iPhone 5s (9.0) [FD13789A-FD7A-4C9E-BE2B-AD5FE700A386] (Simulator)
       iPhone 5s (9.3) [4CE596C6-25A3-4913-9539-15FD22330286] (Simulator)
       iPhone 6 (11.0.1) [6EE3EFC2-C501-43A6-BE87-E36BB932C48D] (Simulator)
       iPhone 6 (11.4) [250632AF-9553-4CEC-9852-DDA20E790127] (Simulator)
       iPhone 6 (9.0) [BE85BC5E-ACD2-40D7-8599-68F41EF93B18] (Simulator)
       iPhone 6 (9.0) + Apple Watch - 42mm (2.0) [DD693E6D-D794-4F38-ACB5-58D233807E5F] (Simulator)
       iPhone 6 (9.3) [88854327-A729-4ED3-87C3-C5E9FCD71CEE] (Simulator)
       iPhone 6 Plus (11.0.1) [842D617F-9F30-4AF6-B850-DB65ABB64D64] (Simulator)
       iPhone 6 Plus (11.4) [B4F5C9B4-64F6-40D7-AAF1-8DEB7DF98FFB] (Simulator)
       iPhone 6 Plus (9.0) [51ECA9B5-A850-439F-8648-FC8D0D6E0FCE] (Simulator)
       iPhone 6 Plus (9.3) [DDB37D6A-1C47-49C7-BAD5-121F5CBF11CC] (Simulator)
       iPhone 6s (11.0.1) [57852C89-FF82-4B60-9419-423976642B0B] (Simulator)
       iPhone 6s (11.4) [0DB6D149-C6A8-4ACC-A751-FDD5BFDBFD68] (Simulator)
       iPhone 6s (9.0) [50994E10-2504-4114-BED3-7C48F1E3C670] (Simulator)
       iPhone 6s (9.3) [FB3CBA63-88D7-4BC2-91A3-59CB5E99590B] (Simulator)
       iPhone 6s Plus (11.0.1) [3C29CC0F-B157-4330-B08C-E82B7D40AEF9] (Simulator)
       iPhone 6s Plus (11.4) [7A044C81-03EE-4A50-A645-C271E7378A54] (Simulator)
       iPhone 6s Plus (9.0) [959148F8-C58F-40CE-B70A-96B85FFF7F23] (Simulator)
       iPhone 6s Plus (9.3) [8381AFF4-FC15-47D4-8F2F-6046964006CD] (Simulator)
       iPhone 7 (11.0.1) [83560B3D-E21F-480D-8188-BFC23CACC047] (Simulator)
       iPhone 7 (11.4) [88CC35BC-05AC-405D-B505-F4CB8D4CC00A] (Simulator)
       iPhone 7 (11.4) + Apple Watch Series 2 - 38mm (4.3) [4E696C61-A2C3-4F1B-98DD-7D6CC46831E6] (Simulator)
       iPhone 7 Plus (11.0.1) [445DBB6D-189F-40BA-A4D9-3117C7244DBD] (Simulator)
       iPhone 7 Plus (11.4) [D3B44118-F1A4-4A80-991D-3E7D29D063B8] (Simulator)
       iPhone 7 Plus (11.4) + Apple Watch Series 2 - 42mm (4.3) [5B5C3E9F-2320-4146-B70C-6B3C18DEC2EB] (Simulator)
       iPhone 8 (11.0.1) [533F5F8B-2737-4CF9-8519-A4BF3C04EE75] (Simulator)
       iPhone 8 (11.4) [44553494-08AC-47AE-A66C-972B94A7CAC0] (Simulator)
       iPhone 8 (11.4) + Apple Watch Series 3 - 38mm (4.3) [64AF7FB5-1DA4-4B06-8379-B94D8191E1CD] (Simulator)
       iPhone 8 Plus (11.0.1) [AFB7B83A-65F5-4D24-A8EE-DCC9A25451CB] (Simulator)
       iPhone 8 Plus (11.4) [ED33D2A0-2B68-459C-A613-E9C22AE5E6C2] (Simulator)
       iPhone 8 Plus (11.4) + Apple Watch Series 3 - 42mm (4.3) [CBB270AB-92CB-4232-A743-C4A67AB7C4AC] (Simulator)
       iPhone SE (11.0.1) [ED2BDCF0-95D1-44E8-9725-7B0BE6F11D0C] (Simulator)
       iPhone SE (11.4) [0EEEA69F-2F07-45CF-9734-0E68E2C6EAA0] (Simulator)
       iPhone X (11.0.1) [BE5EACEB-381D-4F70-B5AF-4A2D7B2278B6] (Simulator)
       iPhone X (11.4) [19252754-2828-441D-A8B8-2D68F1A3C5BA] (Simulator)
       
  4. Kondal Kolipaka 2018-06-25

    [~cbarber] [~eharris] FYI
  5. Mark Henderson 2018-07-28

    Are you guys also seeing that you cannot debug when using XCode 9.4.1? Everything else appears to work but I cannot get the debugger to even attempt to connect, it just says disabled in the logs.
  6. Chris Barber 2018-08-06

    The problem is Apple botched the Xcode 9.4.1 release. It includes a iOS 11.4 sim runtime with an incorrect 11.3 version in the profile.plist. The sim runtime's Info.plist does not contain the version number and furthermore, the profile.plist will contain any "patch" version number segments. As a workaround, we now parse the version from the bundle name (e.g. iOS 11.4), then use that. If the profile.plist's version contains a version that starts with the parsed version, we use that instead. ioslib v2.2.3 https://github.com/appcelerator/ioslib/commit/4285b07e0529ac19f62426a0787f9d87a981f3a7 ioslib v1.7.4 https://github.com/appcelerator/ioslib/pull/82 appcd-plugin-ios PR: https://github.com/appcelerator/appcd-plugin-ios/pull/12 TiSDK master PR: https://github.com/appcelerator/titanium_mobile/pull/10237
  7. Christopher Williams 2018-08-07

    Merged to 7_3_X and master branches of titanium_mobile. Looks like this also needs to be integrated into the appc-cli. cc [~amukherjee]
  8. Eric Wieber 2018-08-08

    Verified fixed using SDK 7.3.0.v20180807095741 and CLI 7.0.5-master.3. I am able to build for and launch apps on iOS 11.3 and 11.4 simulators from Studio, when selecting the corresponding option from the run drop-down. Also checked past sim versions and watch sims.

JSON Source