[AC-5813] Can't compile hyperloop PHPhotoLibrary module
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Invalid |
Resolution Date | 2018-07-26T14:31:30.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Hyperloop |
Labels | hyperloop, ios |
Reporter | Donald Anderson |
Assignee | Shak Hossain |
Created | 2018-07-26T13:26:11.000+0000 |
Updated | 2018-07-26T16:30:41.000+0000 |
Description
I'm trying to figure out how to access the camera roll in titanium. I started a new project and added this line.
var photos = require('Photos/PHPhotoLibrary');
attempting to run the project fails with this build error.
[ERROR] : ** BUILD FAILED **
[ERROR] : The following build commands failed:
[ERROR] : CompileC 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
[ERROR] : (1 failure)
Hey there! Would you be able to paste the whole trace log? It reveals the actual error a few lines above.
The framework import was invalid. It's [PhotoKit](https://developer.apple.com/documentation/photokit/phphotolibrary) instead of
Photos
.I'm getting a different error now.
Should hyperloop classes work in a simulator or do I need to run it on a real device?
I get this error when running it on a real device