{ "id": "163162", "key": "TIMOB-23894", "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": "18253", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" }, { "id": "18324", "name": "ioslib 0.15.2", "archived": false, "released": true, "releaseDate": "2016-09-12" }, { "id": "18325", "name": "ioslib 0.15.3", "archived": false, "released": true, "releaseDate": "2016-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-09-13T03:34:44.000+0000", "created": "2016-09-12T06:09:04.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [], "issuelinks": [ { "id": "52712", "type": { "id": "10122", "name": "Gantt: start-finish", "inward": "is triggered by", "outward": "is triggering" }, "inwardIssue": { "id": "163004", "key": "TIMOB-23865", "fields": { "summary": "iOS: iOS 10 sim with WatchOS 2 sim doesn't work", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "52723", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "163215", "key": "TIMOB-23905", "fields": { "summary": "iOS: Build fails when selecting iOS 9.0 and watchOS 2.0 using iOS SDK 9.3 or 9.2", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "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": "2016-09-14T22:39:53.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" }, { "id": "10207", "name": "Tooling" } ], "description": "\r\nThe current situation will cause issues if we do {{appc run -p ios -W 3E12A7A9-2E07-454B-8E18-07AE56E48507 -C A92248F9-1588-4CC7-809A-88DDA16096C9 -I 10.0 --launch-watch-app}} whereby we use iOS 9.3 simulator and watchOS 2.2 simulator built with iOS 10 SDK / Xcode 8, resulting in a swift error. \r\n{code}\r\n[ERROR] ** BUILD FAILED **\r\n[ERROR] The following build commands failed:\r\n[ERROR] CompileSwift normal i386 /Users/kiat/titaniumTestWatch/SGWatch3/build/iphone/extensions/SGWatch3/SGWatch3 WatchKit Extension/NotificationController.swift\r\n[ERROR] CompileSwift normal i386 /Users/kiat/titaniumTestWatch/SGWatch3/build/iphone/extensions/SGWatch3/SGWatch3 WatchKit Extension/ExtensionDelegate.swift\r\n[ERROR] CompileSwift normal i386 /Users/kiat/titaniumTestWatch/SGWatch3/build/iphone/extensions/SGWatch3/SGWatch3 WatchKit Extension/InterfaceController.swift\r\n[ERROR] CompileSwiftSources normal i386 com.apple.xcode.tools.swift.compiler\r\n[ERROR] (4 failures)\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "iOS: -I flag not acknowledged when selecting iOS9 and watchos2.2 using iOS sdk 10.0", "creator": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 708, "state": "closed", "name": "2016 Sprint 19 Tooling", "startDate": "2016-09-10T00:25:31.005Z", "endDate": "2016-09-24T00:25:00.000Z", "completeDate": "2016-09-26T05:33:10.846Z", "originBoardId": 199 } ], "comment": { "comments": [ { "id": "395875", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "ioslib selects a wrong Xcode Version when you preselect iOS 9.3 and watchOS 2.2 sims and the iOS SDK version set to 10, which will cause the build to fail. So this is not caused by a wrong template. [~cbarber] is already working on a fix for that.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-12T09:24:37.000+0000", "updated": "2016-09-12T09:24:37.000+0000" }, { "id": "395927", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "ioslib PR: https://github.com/appcelerator/ioslib/pull/46", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-09-12T18:56:24.000+0000", "updated": "2016-09-12T18:56:24.000+0000" }, { "id": "395974", "author": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "body": "TiSDK master PR: https://github.com/appcelerator/titanium_mobile/pull/8359\r\nTiSDK 6_0_X PR: https://github.com/appcelerator/titanium_mobile/pull/8360\r\nTiSDK 5_5_X PR: https://github.com/appcelerator/titanium_mobile/pull/8361", "updateAuthor": { "name": "cbarber", "key": "cbarber", "displayName": "Chris Barber", "active": true, "timeZone": "America/Chicago" }, "created": "2016-09-13T02:51:19.000+0000", "updated": "2016-09-13T02:51:19.000+0000" }, { "id": "395977", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "PRs merged.", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-13T03:34:28.000+0000", "updated": "2016-09-13T03:34:28.000+0000" }, { "id": "395983", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I do not encounter this issue when using the {{-I 10.0}} option with the following sim combinations: {{iOS 10/WatchOS 3.0}}, {{iOS 10/WatchOS 2.2}}, {{iOS 9.3/WatchOS 3.0}}, {{iOS 9.3/WatchOS 2.2}}, {{iOS 9.0/WatchOS 2.0}}.\r\n\r\nI *do* encounter this issue when using the {{-I 9.3}} option. Xcode 7.3.1 is automatically selected on build. Here is the command from Studio when building for sims {{iOS 9.3/WatchOS 2.2}} and selecting {{iOS SDK 9.3}}:\r\n{code}\r\n /usr/local/bin/node /Users/Eric/.appcelerator/install/5.5.0-6/package/node_modules/titanium/lib/titanium.js build run --platform ios --log-level trace --sdk 5.5.0.v20160912200427 --project-dir /Users/Eric/Documents/Appcelerator_Studio_Workspace/ClassicWatch3 --target simulator --ios-version 9.3 --device-family universal --deploy-type development --sim-type iphone --sim-version 9.3 --watch-device-id FF879C84-1C67-42E7-A971-32165993D5AE --launch-watch-app --device-id 5D0E5EA5-E8C6-4C3D-A569-3C94957A3AE6 --skip-js-minify --no-colors --no-progress-bars --no-prompt --prompt-type socket-bundle --prompt-port 57524 --config-file /var/folders/l6/5xvw88dx3zg3mqm0t080tt040000gn/T/build-1473747034969.json --no-banner --project-dir /Users/Eric/Documents/Appcelerator_Studio_Workspace/ClassicWatch3\r\n{code}\r\n\r\n{code}\r\n[TRACE] : [ioslib] Selected iOS Simulator: iPhone 6\r\n[TRACE] : [ioslib] UDID = 5D0E5EA5-E8C6-4C3D-A569-3C94957A3AE6\r\n[TRACE] : [ioslib] iOS = 9.3\r\n[TRACE] : [ioslib] Selected WatchOS Simulator: Apple Watch - 38mm\r\n[TRACE] : [ioslib] UDID = FF879C84-1C67-42E7-A971-32165993D5AE\r\n[TRACE] : [ioslib] WatchOS = 2.2\r\n[TRACE] : [ioslib] Autoselected Xcode: 7.3.1\r\n{code}", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-13T06:12:31.000+0000", "updated": "2016-09-13T06:12:31.000+0000" }, { "id": "395998", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Ran this in Studio (9.3 with 2.2).\r\n\r\nCommand in Studio:\r\n{code}\r\n /usr/local/bin/node /Users/msamah/.appcelerator/install/5.5.0-6/package/node_modules/titanium/lib/titanium.js build run --platform ios --log-level trace --sdk 5.5.0.v20160913000746 --project-dir /Users/msamah/Documents/Appcelerator_Studio_Workspace/testestme --target simulator --ios-version 9.3 --device-family universal --deploy-type development --sim-type iphone --sim-version 9.3 --watch-device-id BD4EB193-E164-4506-81D5-4B6B968521BB --launch-watch-app --device-id 5D78919B-5DC7-459B-AD81-D6D0E79C0877 --skip-js-minify --no-colors --no-progress-bars --no-prompt --prompt-type socket-bundle --prompt-port 55707 --config-file /var/folders/b8/h4wq2hlx2511m55c623vny980000gp/T/build-1473760722332.json --no-banner --project-dir /Users/msamah/Documents/Appcelerator_Studio_Workspace/testestme\r\n{code}\r\n\r\nError:\r\n{code}\r\n[ERROR] : ** BUILD FAILED **\r\n[ERROR] : The following build commands failed:\r\n[ERROR] : \tCompileSwift normal i386 /Users/msamah/Documents/Appcelerator_Studio_Workspace/testestme/build/iphone/extensions/deteleteest/deteleteest WatchKit Extension/NotificationController.swift\r\n[ERROR] : \tCompileSwift normal i386 /Users/msamah/Documents/Appcelerator_Studio_Workspace/testestme/build/iphone/extensions/deteleteest/deteleteest WatchKit Extension/ExtensionDelegate.swift\r\n[ERROR] : \tCompileSwift normal i386 /Users/msamah/Documents/Appcelerator_Studio_Workspace/testestme/build/iphone/extensions/deteleteest/deteleteest WatchKit Extension/InterfaceController.swift\r\n[ERROR] : \tCompileSwiftSources normal i386 com.apple.xcode.tools.swift.compiler\r\n[ERROR] : (4 failures)\r\n{code}\r\n\r\nAble to reproduce error.\r\n\r\n\r\n**NOTE**: Using iOS SDK 9.3 requires Xcode 7 to build which includes Swift 2.3. The watchOS templates in TI SDK 5.5.0 are targeted for Swift 3 resulting in the above error.", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-13T10:01:07.000+0000", "updated": "2016-09-13T10:24:09.000+0000" }, { "id": "396000", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Tried with 10.0 with 2.2 (in Studio)\r\nError:\r\n{code}\r\n[ERROR] : An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=161):\r\nThe operation couldn’t be completed. Invalid argument\r\nInvalid argument\r\n{code}\r\n\r\nLogs:\r\n{code}\r\nCommand\r\n /usr/local/bin/node /Users/msamah/.appcelerator/install/5.5.0-6/package/node_modules/titanium/lib/titanium.js build run --platform ios --log-level trace --sdk 5.5.0.v20160913000746 --project-dir /Users/msamah/Documents/Appcelerator_Studio_Workspace/testestme --target simulator --ios-version 10.0 --device-family universal --deploy-type development --sim-type iphone --sim-version 10.0 --watch-device-id BD4EB193-E164-4506-81D5-4B6B968521BB --launch-watch-app --device-id 705358B4-395E-4A1B-9150-D6D24847C6F0 --skip-js-minify --no-colors --no-progress-bars --no-prompt --prompt-type socket-bundle --prompt-port 51852 --config-file /var/folders/b8/h4wq2hlx2511m55c623vny980000gp/T/build-1473761312867.json --no-banner --project-dir /Users/msamah/Documents/Appcelerator_Studio_Workspace/testestme\r\n[INFO] : Found Titanium plugin id=ti.alloy version=1.0 \r\n[INFO] : Deploy type: development\r\n[INFO] : Building for target: simulator\r\n[INFO] : Building using iOS SDK: 10.0\r\n[INFO] : Building for iOS Simulator: iPhone 5\r\n[INFO] : Building for device family: universal\r\n[INFO] : Minimum iOS version: 8.0\r\n[INFO] : Debugging disabled\r\n[INFO] : Profiler disabled\r\n[INFO] : Set to copy files instead of symlinking\r\n[INFO] : Forcing clean build: /Users/msamah/Documents/Appcelerator_Studio_Workspace/testestme/build/iphone/build-manifest.json does not exist\r\n[INFO] : Initializing the build directory\r\n[INFO] : Found Alloy app in /Users/msamah/Documents/Appcelerator_Studio_Workspace/testestme/app\r\n[INFO] : Executing Alloy compile: /usr/local/bin/node /Users/msamah/.appcelerator/install/5.5.0-6/package/node_modules/alloy/bin/alloy compile /Users/msamah/Documents/Appcelerator_Studio_Workspace/testestme/app --config platform=ios,version=0,simtype=none,devicefamily=universal,deploytype=development,target=simulator --no-colors\r\n[WARN] : Generated \"/i18n\" directory is not ignored by Git, please add it to your .gitignore\r\n[WARN] : Generated \"/platform\" directory is not ignored by Git, please add it to your .gitignore\r\n[INFO] : [config.json] config.json unchanged, using cached config.json...\r\n[INFO] : ----- MVC GENERATION -----\r\n[INFO] : [global style] loading from cache...\r\n[INFO] : [index.xml] view processing...\r\n[INFO] : style: \"index.tss\"\r\n[INFO] : view: \"index.xml\"\r\n[INFO] : controller: \"index.js\"\r\n[INFO] : created: \"Resources/iphone/alloy/controllers/index.js\"\r\n[INFO] : created: \"Resources/iphone/alloy/styles/index.js\"\r\n[INFO] : \r\n[INFO] : [app.js] using cached app.js...\r\n[INFO] : \r\n[INFO] : ----- OPTIMIZING -----\r\n[INFO] : - iphone/alloy.js\r\n[INFO] : - iphone/alloy/sync/localStorage.js\r\n[INFO] : - iphone/alloy/sync/properties.js\r\n[INFO] : - iphone/alloy/sync/sql.js\r\n[INFO] : \r\n[INFO] : Alloy compiled in 1.6102s\r\n[INFO] : Alloy compiler completed successfully\r\n[INFO] : Creating Xcode project\r\n[WARN] : WatchKit App detected, changing minimum iOS deployment target from 8.0 to 9.0\r\n[INFO] : Creating Entitlements.plist\r\n[INFO] : Creating Info.plist\r\n[INFO] : Disabling ATS\r\n[INFO] : Creating main.m\r\n[INFO] : Creating Xcode config files\r\n[INFO] : Copying Titanium libraries\r\n[INFO] : Copying Titanium iOS files\r\n[INFO] : Installing default LaunchScreen.storyboard\r\n[INFO] : Copying iOS extensions\r\n[WARN] : WatchKit App's CFBundleVersion \"1\" does not match the app's CFBundleVersion \"1.0\".\r\n[WARN] : Setting the WatchKit App's CFBundleVersion to \"1.0\"\r\n[INFO] : Cleaning Xcode derived data\r\n[INFO] : Creating debugger and profiler plists\r\n[INFO] : Analyzing Resources directory\r\n[INFO] : Analyzing platform files\r\n[INFO] : Analyzing module files\r\n[INFO] : Analyzing localized launch images\r\n[INFO] : Analyzing CommonJS modules\r\n[INFO] : Creating asset catalog\r\n[INFO] : Creating app icon set\r\n[INFO] : Creating launch logo image set\r\n[INFO] : Missing 5 launch logos, generating missing launch logos from DefaultIcon.png\r\n[WARN] : If this app has been previously installed on this simulator, you may need restart it to see the latest launch logo\r\n[WARN] : iOS renders and caches the launch screen to a PNG image that seems to only be invalidated by restarting iOS\r\n[INFO] : Missing 16 app icons, generating missing icons\r\n[INFO] : appicon-Small.png - Used for iPad - size: 29x29\r\n[INFO] : appicon-Small@2x.png - Used for iPhone, iPad - size: 58x58\r\n[INFO] : appicon-Small@3x.png - Used for iPhone - size: 87x87\r\n[INFO] : appicon-Small-40.png - Used for iPad - size: 40x40\r\n[INFO] : appicon-Small-40@2x.png - Used for iPhone, iPad - size: 80x80\r\n[INFO] : appicon-Small-40@3x.png - Used for iPhone - size: 120x120\r\n[INFO] : appicon-60@2x.png - Used for iPhone - size: 120x120\r\n[INFO] : appicon-60@3x.png - Used for iPhone - size: 180x180\r\n[INFO] : appicon-76.png - Used for iPad - size: 76x76\r\n[INFO] : appicon-76@2x.png - Used for iPad - size: 152x152\r\n[INFO] : appicon-83.5@2x.png - Used for iPad - size: 167x167\r\n[INFO] : LaunchLogo~iphone - Used for iphone - size: 320x320 - size: 320x320\r\n[INFO] : LaunchLogo@2x~iphone - Used for iphone - size: 374x374 - size: 374x374\r\n[INFO] : LaunchLogo@3x~iphone - Used for iphone - size: 621x621 - size: 621x621\r\n[INFO] : LaunchLogo~ipad - Used for ipad - size: 384x384 - size: 384x384\r\n[INFO] : LaunchLogo@2x~ipad - Used for ipad - size: 1024x1024 - size: 1024x1024\r\n[INFO] : Creating launch image set\r\n[INFO] : Creating assets image set\r\n[INFO] : Processing JavaScript files\r\n[INFO] : Writing app properties\r\n[INFO] : Writing i18n files\r\n[INFO] : Processing Titanium symbols\r\n[INFO] : Removing files\r\n[INFO] : Invoking xcodebuild\r\n[INFO] : Finished building the application in 3m 7s 977ms\r\n[INFO] : Launching iOS Simulator\r\n[ERROR] : An error was encountered processing the command (domain=com.apple.CoreSimulator.SimError, code=161):\r\nThe operation couldn’t be completed. Invalid argument\r\nInvalid argument\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-09-13T10:13:01.000+0000", "updated": "2016-09-13T10:13:01.000+0000" }, { "id": "396006", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I also appear to encounter this with sims {{iOS 9.0/WatchOS 2.0}}. When I build with that pair in Studio, I get the below error:\r\n{code}\r\n[TRACE] : [ioslib] Waiting for Watch App to install...\r\n[ERROR] : Watch App installation failure: __96-[SPCompanionAppInstaller sendInstallationDataWithPath:dataType:name:info:installer:completion:]_block_invoke337, fileHandle == nil for com.appc.classic.watchkitapp, path: /Users/Eric/Library/Developer/CoreSimulator/Devices/F1F70A5E-331E-4051-86BA-0B550180CFEF/data/Library/Caches/com.apple.companionappd/com.appc.classic.watchkitapp.zip\r\n{code}\r\nHowever, if I take the build command from Studio console and run it in the CLI, then I get the error from this ticket. Command for reference:\r\n{code}\r\n/usr/local/bin/node /Users/Eric/.appcelerator/install/5.5.0-6/package/node_modules/titanium/lib/titanium.js build run --platform ios --log-level trace --sdk 5.5.0.v20160912200427 --project-dir /Users/Eric/Documents/Appcelerator_Studio_Workspace/ClassicWatch3 --target simulator --ios-version 9.3 --device-family universal --deploy-type development --sim-type iphone --sim-version 9.0 --watch-device-id E5CE2E3B-84AB-453B-B3FE-0BDD4BBBCBE4 --launch-watch-app --device-id F1F70A5E-331E-4051-86BA-0B550180CFEF --skip-js-minify --no-colors --no-progress-bars --no-prompt --prompt-type socket-bundle --prompt-port 57524 --config-file /var/folders/l6/5xvw88dx3zg3mqm0t080tt040000gn/T/build-1473771967982.json --no-banner --project-dir /Users/Eric/Documents/Appcelerator_Studio_Workspace/ClassicWatch3\r\n{code}", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-13T13:12:42.000+0000", "updated": "2016-09-13T13:12:42.000+0000" }, { "id": "396172", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified that the issue in the main body of the ticket is fixed, using:\r\n\r\nMacOS 10.12 (16A313a)\r\nStudio 4.7.1.201609100950\r\nTi SDK 5.5.0.GA\r\nAppc NPM 4.2.7\r\nAppc CLI 5.5.0\r\nAlloy 1.9.2\r\nXcode 8.0 (8A218a)\r\n\r\nThe issue still occurs with iOS 9.0 and WatchOS 2.0 sims with the iOS SDK 9.3 or 9.2. Created TIMOB-23905 to track the related issue.\r\nTested by creating new watchOS apps and building them for the mentioned simulators with the iOS SDK 10.0. No error was encountered.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-14T22:39:53.000+0000", "updated": "2016-09-14T22:39:53.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }