{ "id": "172821", "key": "TIMOB-26697", "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": "20445", "description": "", "name": "Hyperloop 4.0.1", "archived": false, "released": true, "releaseDate": "2019-01-17" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-01-23T17:09:35.000+0000", "created": "2019-01-07T18:54:44.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [ { "id": "20270", "name": "Hyperloop 3.1.3", "archived": false, "released": true } ], "issuelinks": [ { "id": "57121", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "170559", "key": "TIMOB-25588", "fields": { "summary": "Hyperloop: iOS: Cannnot find class with name", "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": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2019-01-23T17:09:35.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": "13715", "name": "Hyperloop", "description": "Hyperloop project" }, { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "*Steps to reproduce the behavior*\r\n# Use the following pod to install {{MTCircularSlider}}\r\n{code}\r\ninstall! 'cocoapods',\r\n :integrate_targets => false\r\n\r\nuse_frameworks!\r\n\r\nplatform :ios, '10.0'\r\ntarget 'Hyperloop_Sample' do\r\n\tpod 'MTCircularSlider'\r\nend\r\n\r\npost_install do |installer|\r\n installer.pods_project.targets.each do |target|\r\n if ['MTCircularSlider'].include? target.name\r\n target.build_configurations.each do |config|\r\n config.build_settings['SWIFT_VERSION'] = '4.2'\r\n end\r\n end\r\n end\r\nend\r\n{code}\r\n# Use the slider view with Hyperloop\r\n{code}\r\nconst MTCircularSlider = require('MTCircularSlider/MTCircularSlider');\r\nconst slider = new MTCircularSlider();\r\n{code}\r\n\r\n*Actual behavior*\r\nThe app throws an error: {{Cannot find class with name: MTCircularSlider}}\r\n\r\n*Expected behavior*\r\nThe app runs without errors.\r\n\r\nNote: {{MTCircularSlider}} is not ObjC compatible so any further usage of it is not possible.", "attachment": [], "flagged": false, "summary": "Hyperloop: iOS - Cannot find classes from Swift frameworks", "creator": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "closedSprints": [ { "id": 1108, "state": "closed", "name": "2019 Sprint 2", "startDate": "2019-01-14T17:20:19.067Z", "endDate": "2019-01-26T17:20:00.000Z", "completeDate": "2019-01-28T17:38:11.580Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "445339", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR: https://github.com/appcelerator/hyperloop.next/pull/314", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-01-15T17:39:33.000+0000", "updated": "2019-01-15T17:39:33.000+0000" }, { "id": "445377", "author": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "body": "Please notice that in my case, I experience the same issue with an Obj C compatible framework (GiphyCoreSDK)", "updateAuthor": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-01-16T08:47:46.000+0000", "updated": "2019-01-16T08:47:46.000+0000" }, { "id": "445438", "author": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi Jan, is it possible to get a hyperloop build with this commit?", "updateAuthor": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-01-17T17:47:32.000+0000", "updated": "2019-01-17T17:47:32.000+0000" }, { "id": "445444", "author": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "body": "You can check https://github.com/appcelerator-modules/hyperloop-builds/releases for the 4.0.1 release which includes this fix. However, on iOS Hyperloop 4.0.0 and above require SDK 8 so you have to test with a pre-release version.\r\n\r\nIf you want to patch your local Hyperloop install, you can do that with a simple one liner. Assuming you are using Hyperloop 3.1.4 just replace line 91 in {{~/Library/Application\\ Support/Titanium/modules/iphone/hyperloop/3.1.4/hooks/generate/class.js}} with\r\n{code}\r\n} else if (cls.filename && cls.filename.endsWith(cls.framework + '-Swift.h')) {\r\n{code}\r\n", "updateAuthor": { "name": "jvennemann", "key": "jvennemann", "displayName": "Jan Vennemann", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-01-17T19:18:38.000+0000", "updated": "2019-01-17T19:19:17.000+0000" }, { "id": "445455", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified the fix with Hyperloop 4.0.1. \r\nFollowed the steps mentioned above & no error {{Cannot find class with name: MTCircularSlider}} is seen.\r\n\r\nStudio Ver: 5.1.2.201812191831\r\nSDK Ver: 8.0.0.v20190117115226\r\nOS Ver: 10.14\r\nXcode Ver: Xcode 10.1\r\nAppc NPM: 4.2.13\r\nAppc CLI: 7.0.10-master.5\r\nDaemon Ver: 1.1.3\r\nTi CLI Ver: 5.1.1\r\nAlloy Ver: 1.13.7\r\nNode Ver: 8.9.1\r\nNPM Ver: 5.5.1\r\nJava Ver: 10.0.2\r\nIOS Simulator: ⇨ iPhone XS (iOS 12.1)", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-17T23:45:40.000+0000", "updated": "2019-01-17T23:45:51.000+0000" }, { "id": "445463", "author": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "body": "(y) :)", "updateAuthor": { "name": "rlustemberg", "key": "rlustemberg", "displayName": "Richard Lustemberg", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-01-18T08:21:37.000+0000", "updated": "2019-01-18T08:21:37.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }