ios - Parse Issue: Module 'not found' -


in xcode, keep getting strange error. using github library: https://github.com/tapsquare/tslibraryimport

and using example code in mediapicker delegate method so:

- (void)mediapicker: (mpmediapickercontroller *)mediapicker didpickmediaitems:(mpmediaitemcollection *)mediaitemcollection {     (mpmediaitem *item in mediaitemcollection.items) {         nsurl* asseturl = [item valueforproperty:mpmediaitempropertyasseturl];         nsurl* destinationurl = nil; //file url location you'd import asset to.         tslibraryimport *import = [[tslibraryimport alloc] init];         [import importasset:asseturl tourl:destinationurl completionblock:^(tslibraryimport *theimport) {          }];     }     [mediapicker dismissviewcontrolleranimated:yes completion:nil]; } 

on importasset line, keep getting error: parse issue: module 'importasset' not found.

now have dragged in tslibraryimport.h/.m in , made sure .m in compile sources still shows error.

does know why happening? doesn't seem happen in library's sample project.

i found question after encountering same problem. else runs issue, turns out recent versions of xcode (i'm using xcode 5) use import global variable automatic memory management. can fix renaming tslibraryimport pointer else.

tslibraryimport *tsimport = [[tslibraryimport alloc] init]; 

Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -