{ "id": "171971", "key": "AC-5813", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2018-07-26T14:31:30.000+0000", "created": "2018-07-26T13:26:11.000+0000", "labels": [ "hyperloop", "ios" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-07-26T16:30:41.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "15000", "name": "Hyperloop" } ], "description": "I'm trying to figure out how to access the camera roll in titanium. I started a new project and added this line.\r\n\r\n{code}\r\nvar photos = require('Photos/PHPhotoLibrary');\r\n{code}\r\n\r\nattempting to run the project fails with this build error.\r\n\r\n{code}\r\n[ERROR] : ** BUILD FAILED **\r\n[ERROR] : The following build commands failed:\r\n[ERROR] : \tCompileC build/Intermediates/hyperloop-photo-album.build/Debug-iphonesimulator/hyperloop-photo-album.build/Objects-normal/x86_64/photos.o /Users/donaldanderson/Documents/Appcelerator_Studio_Workspace/hyperloop-photo-album/build/hyperloop/ios/js/photos/photos.m normal x86_64 objective-c com.apple.compilers.llvm.clang.1_0.compiler\r\n[ERROR] : (1 failure)\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Can't compile hyperloop PHPhotoLibrary module", "creator": { "name": "donald.anderson", "key": "donald.anderson", "displayName": "Donald Anderson", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "donald.anderson", "key": "donald.anderson", "displayName": "Donald Anderson", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "MacOS v10.13.6\r\nxCode 9.4.1", "comment": { "comments": [ { "id": "439500", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey there! Would you be able to paste the whole trace log? It reveals the actual error a few lines above.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-07-26T14:30:25.000+0000", "updated": "2018-07-26T14:30:25.000+0000" }, { "id": "439501", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The framework import was invalid. It's [PhotoKit|https://developer.apple.com/documentation/photokit/phphotolibrary] instead of {{Photos}}.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-07-26T14:31:31.000+0000", "updated": "2018-07-26T14:31:31.000+0000" }, { "id": "439506", "author": { "name": "donald.anderson", "key": "donald.anderson", "displayName": "Donald Anderson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm getting a different error now.\r\n\r\n{code}\r\nAppcelerator Command-Line Interface, version 6.2.1\r\nCopyright (c) 2014-2018, Appcelerator, Inc. All Rights Reserved.\r\n2018-07-26T15:19:09.704Z | TRACE | set environment to {\"registry\":\"https://software.appcelerator.com\",\"baseurl\":\"https://platform.appcelerator.com\"}\r\n2018-07-26T15:19:09.707Z | TRACE | checking credentials for existing session\r\n2018-07-26T15:19:11.232Z | TRACE | Attempting to load session info from config file\r\n2018-07-26T15:19:11.239Z | TRACE | check if session is invalidated\r\n2018-07-26T15:19:12.267Z | TRACE | refresh session expiry to: 1533223152162\r\n2018-07-26T15:19:12.269Z | TRACE | session expiry 1533223152162 false\r\n2018-07-26T15:19:12.270Z | TRACE | Arrow Cloud config file: /Users/donaldanderson/.acs\r\n2018-07-26T15:19:12.293Z | TRACE | found Arrow Cloud login { mid: '50b0e9a8406826b53887b1612cf9153478a0550a',\r\n publishPort: 443,\r\n publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',\r\n username: 'donald.anderson@ideagen.com',\r\n cookie: \r\n [ 'connect.sid=s%3Ay3_x_cHLSvAunE4laHu42Wyo23TdKpnc.i2vRoG5YQKLV6js8o%2FRUuavO4XsxAis18lTMVE7nVU8; Path=/; Expires=Thu, 09 Aug 2018 08:27:01 GMT; HttpOnly' ],\r\n defaultEP: \r\n { publishHost: 'https://admin.cloudapp-enterprise.appcelerator.com',\r\n publishPort: 443 } } , checking nodeACSEndpoint= https://admin.cloudapp-enterprise.appcelerator.com\r\n2018-07-26T15:19:12.294Z | TRACE | Arrow Cloud cookie expiry [ 1533803221000 ]\r\n2018-07-26T15:19:12.294Z | TRACE | session already loaded in opts.session\r\n2018-07-26T15:19:12.296Z | TRACE | getCredentials() session:\r\n{\r\n \"ipaddress\": \"10.0.12.43\",\r\n \"username\": \"donald.anderson@ideagen.com\",\r\n \"password\": \"\",\r\n \"session\": \"\",\r\n \"nonce\": \"\",\r\n \"environment\": {\r\n \"name\": \"production\",\r\n \"isProduction\": true,\r\n \"acsBaseUrl\": \"https://api.cloud.appcelerator.com\",\r\n \"acsAuthBaseUrl\": \"https://secure-identity.cloud.appcelerator.com\",\r\n \"nodeACSEndpoint\": \"https://admin.cloudapp-enterprise.appcelerator.com\"\r\n },\r\n \"token\": \"\",\r\n \"fingerprint\": \"50b0e9a8406826b53887b1612cf9153478a0550a\",\r\n \"fingerprint_description\": \"Mac OSX Serial Number: C07G3PGUDJD1\",\r\n \"org_id\": 100106994,\r\n \"expiry\": 1533223152162\r\n}\r\n2018-07-26T15:19:12.297Z | TRACE | loading plugins for command \"run\"\r\n2018-07-26T15:19:12.735Z | TRACE | run search paths:\r\n[\r\n \"/Users/donaldanderson/.appcelerator/install/6.2.1/package\",\r\n \"/Users/donaldanderson/.appcelerator/install/6.2.1/package/node_modules\",\r\n \"/Users/donaldanderson/Documents/Appcelerator_Studio_Workspace/hyperloop-photo-album/plugins\",\r\n \"/Users/donaldanderson/Documents/Appcelerator_Studio_Workspace/hyperloop-photo-album/node_modules\",\r\n \"/Users/donaldanderson/Documents/Appcelerator_Studio_Workspace/node_modules\",\r\n \"/Users/donaldanderson/Documents/node_modules\",\r\n \"/Users/donaldanderson/node_modules\",\r\n \"/Users/node_modules\",\r\n \"/node_modules\",\r\n \"/Users/donaldanderson/.appcelerator/.npm/lib/node_modules\"\r\n]\r\n2018-07-26T15:19:12.736Z | DEBUG | [PLUGIN-LOAD] 0ms /Users/donaldanderson/.appcelerator/install/6.2.1/package/appc.js\r\n2018-07-26T15:19:14.335Z | DEBUG | [PLUGIN-LOAD] 1543ms /Users/donaldanderson/.appcelerator/install/6.2.1/package/node_modules/appc-cli-titanium/appc.js\r\n2018-07-26T15:19:14.335Z | DEBUG | run plugin: /Users/donaldanderson/.appcelerator/install/6.2.1/package/node_modules/appc-cli-titanium\r\n2018-07-26T15:19:14.405Z | DEBUG | [PLUGIN-LOAD] 28ms /Users/donaldanderson/.appcelerator/install/6.2.1/package/node_modules/arrow/appc.js\r\n2018-07-26T15:19:14.481Z | DEBUG | run plugin: /Users/donaldanderson/.appcelerator/install/6.2.1/package/node_modules/arrow\r\n2018-07-26T15:19:14.545Z | TRACE | plugin \"arrow\" failed its \"when\" function check, skipping...\r\n2018-07-26T15:19:14.546Z | TRACE | loading plugin \"titanium\" for command \"run\" CLI options via function\r\n2018-07-26T15:19:14.573Z | TRACE | loading plugin \"titanium\" for command \"run\" CLI options via array\r\n2018-07-26T15:19:14.605Z | TRACE | executing command \"run\" with the following plugins:\r\n[\"titanium\"]\r\n2018-07-26T15:19:14.610Z | TRACE | Attempting to load session info from config file\r\n2018-07-26T15:19:14.612Z | TRACE | check if session is invalidated\r\n2018-07-26T15:19:14.809Z | TRACE | refresh session expiry to: 1533223154711\r\n2018-07-26T15:19:14.830Z | TRACE | session expiry 1533223154711 false\r\n2018-07-26T15:19:14.831Z | TRACE | session already loaded in opts.session\r\n2018-07-26T15:19:14.833Z | DEBUG | Titanium Downloads Last Checked: 1532601275084\r\n2018-7-26 16:19:28\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.13.6\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 17179869184\r\nNode.js\r\n Node.js Version = 8.9.1\r\n npm Version = 5.5.1\r\nTitanium CLI\r\n CLI Version = 5.0.13\r\nTitanium SDK\r\n SDK Version = 7.2.0.GA\r\n SDK Path = /Users/donaldanderson/Library/Application Support/Titanium/mobilesdk/osx/7.2.0.GA\r\n Target Platform = iphone\r\nCommand\r\n /usr/local/bin/node /Users/donaldanderson/.appcelerator/install/6.2.1/package/node_modules/titanium/lib/titanium.js build run --platform ios --log-level trace --sdk 7.2.0.GA --project-dir /Users/donaldanderson/Documents/Appcelerator_Studio_Workspace/hyperloop-photo-album --target simulator --ios-version 11.4 --device-family universal --deploy-type development --device-id 5E9E0B1C-623C-4186-B30A-01DAC834660E --skip-js-minify --no-colors --no-progress-bars --no-prompt --prompt-type socket-bundle --prompt-port --config-file /var/folders/bd/tgr7_x6936v37txb0zj9xw4h0000gn/T/build-1532618354831.json --no-banner --project-dir /Users/donaldanderson/Documents/Appcelerator_Studio_Workspace/hyperloop-photo-album\r\n[INFO] : Found Titanium module id=hyperloop version=3.0.5 platform=iphone deploy-type=development path=/Users/donaldanderson/Library/Application Support/Titanium/modules/iphone/hyperloop/3.0.5\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: 11.4\r\n[INFO] : Building for iOS Simulator: iPad (5th generation)\r\n[INFO] : Building for device family: universal\r\n[INFO] : Team ID: n/a\r\n[INFO] : Minimum iOS version: 8.0\r\n[INFO] : Logging enabled on port 24848\r\n[INFO] : Debugging disabled\r\n[INFO] : Profiler disabled\r\n[INFO] : Set to copy files instead of symlinking\r\n[INFO] : Initializing the build directory\r\n[INFO] : Found Alloy app in /Users/donaldanderson/Documents/Appcelerator_Studio_Workspace/hyperloop-photo-album/app\r\n[INFO] : Executing Alloy compile: /usr/local/bin/node /Users/donaldanderson/.appcelerator/install/6.2.1/package/node_modules/alloy/bin/alloy compile /Users/donaldanderson/Documents/Appcelerator_Studio_Workspace/hyperloop-photo-album/app --config platform=ios,version=0,simtype=none,devicefamily=universal,deploytype=development,target=simulator --no-colors\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.21119s\r\n[INFO] : Alloy compiler completed successfully\r\n[INFO] : Creating Xcode project\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] : 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] : 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] : Starting Hyperloop assembly\r\n[INFO] : Skipping Hyperloop compile, no usage found ...\r\n[INFO] : Finished Hyperloop assembly in 0.01 seconds\r\n[INFO] : Skipping xcodebuild\r\n[INFO] : Finished building the application in 13s 119ms\r\n[INFO] : Launching iOS Simulator\r\n[INFO] : hyperloop-photo-album/1.0 (7.2.0.ecae6740fe)\r\n[ERROR] : Script Error Couldn't find module: PhotoKit/PHPhotoLibrary for architecture: x86_64\r\n{code}\r\n\r\nShould hyperloop classes work in a simulator or do I need to run it on a real device?", "updateAuthor": { "name": "donald.anderson", "key": "donald.anderson", "displayName": "Donald Anderson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-26T15:24:20.000+0000", "updated": "2018-07-26T15:24:20.000+0000" }, { "id": "439509", "author": { "name": "donald.anderson", "key": "donald.anderson", "displayName": "Donald Anderson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I get this error when running it on a real device\r\n\r\n{code}\r\nPlease manually launch the application\r\n[INFO] : hyperloop-photo-album/1.0 (7.2.0.ecae6740fe)\r\n[ERROR] : Script Error Couldn't find module: PhotoKit/PHPhotoLibrary for architecture: armv7\r\n{code}\r\n", "updateAuthor": { "name": "donald.anderson", "key": "donald.anderson", "displayName": "Donald Anderson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-07-26T16:30:41.000+0000", "updated": "2018-07-26T16:30:41.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }