lukhnos / objectiveflickr Goto Github PK
View Code? Open in Web Editor NEWObjectiveFlickr, a Flickr API framework for Objective-C
ObjectiveFlickr, a Flickr API framework for Objective-C
Has anybody been able to use / modify this library to run on a native iPad app? Flickr recognizes the larger iPad screen and no longer treats it as a a mobile device, but as a regular desktop browser (Wireshark captures show the transactions coming from flickr.com instead on m.flickr.com). All is well (login and "allow") until the last part of the transactions that is supposed to call back the iPad app.
For building the iOS static library the setting "Build Active Architecture Only" should be NO so that Xcode builds an universal static library containing both armv7 and armv7.
Hi, this could well be a noob question, but I would appreciate any help.
I've got a clean install on XCode 4 and clean download of example projects but simply cannot seem to get SnapAndRun to build. (
I've tried all sorts of Project / Target settings etc but only succeeded in confusing myself.
Should I need to do/change anything from a clean install for it to work? I'd appreciate any advice. cheers
Hi,
Can you please clarify under which license this project's code is published?
Regards,
Pritam.
Hi,
I have tried many times to add Objectiveflickr to my iPhone project in Xcode 4, but finally decides to go back to Xcode 3 to do it.
And it compiled just fine the first time !
So I decided to open it with Xcode 4, and tried to build there, but guess what... 2 compile errors... however, everything seems to be setup.
So here are the errors :
ld: warning: ignoring file /Users/Moi/_Yamm/developpement/Projets/Photo_Library/Photo Library/DerivedData/Photo Library/Build/Products/Debug-iphonesimulator/libObjectiveFlickr.a, file was built for archive which is not the architecture being linked (i386) Undefined symbols for architecture i386: "_OFFlickrWritePermission", referenced from: -[AuthenticationViewController authorizeAction] in AuthenticationViewController.o ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
And here is a screenshot of my project configuration :
Did anybody experience such errors and finally find a solution ? I have already tried to look at the SnapAndRun project (which builds correct in Xcode 4) but it still fails...
In the meanwhile I will stick in Xcode 3....
Best regards,
Hi,
I noticed this:
Authenticate and you see the Flickr authentication screen.
If I press "No, Thanks" I'm not being taken back to the app, I just stay in the webview.
Can this be fixed?
Facebook for example doesn't do this. If you click No in the authentication screen then the app is brought back.
Thanks,
Walter
As we know. Flickr just required developer to use https to access all their API.(6 days ago)
all my application stopped working. And I was a bit busy because of family issues this months
Is there anyone working on this?, or please can someone working on this.
Thanks
Hi,
I'm fighting against this issue. Here is how to reproduce:
Any idea or suggestions?
thanks.
simone
On the third step of authorization, I get this error:
OAuthError = "oauth_problem=signature_invalid&debug_sbs=GET&https%3A%2F%2Fwww.flickr.com%2Fservices%2Foauth%2Faccess_token&oauth_consumer_key%3De2134b851206e39ddf4557ca0f26f884%26oauth_nonce%3D250C6C6F%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1411473474%26oauth_token%3D72157647926673261-49fc322682ce1b7a%26oauth_verifier%3Df93c576d4c4b50a1%26oauth_version%3D1.0";
At the third step, I am doing this:
(void)flickrDidLoginWithCredentials:(NSURL *)url
{
NSString *token = nil;
NSString *verifier = nil;
BOOL result = OFExtractOAuthCallback(url, [NSURL URLWithString:@"flickrtesturl://auth"], &token, &verifier);
if (!result)
{
NSLog(@"Cannot obtain token/secret from URL: %@", [url absoluteString]);
}
[self.flickrRequest fetchOAuthAccessTokenWithRequestToken:token verifier:verifier];
}
Also, I checked my URL is "flickrtesturl://auth?oauth_token=72157647926673261-49fc322682ce1b7a&oauth_verifier=f93c576d4c4b50a1"
and token and verifier variables have values too. Kindly suggest something...
Xcode 4.2, LLVM 3.0:
Shared/Classes/../../../../../ShareKit/Classes/ShareKit/Sharers/Services/Flickr/LFHTTPRequest.h:124:32: warning: type of property 'requestHeader' does not match type of accessor 'setRequestHeader:' [3]
@Property (copy) NSDictionary *requestHeader;
^
Shared/Classes/../../../../../ShareKit/Classes/ShareKit/Sharers/Services/Flickr/LFHTTPRequest.h:103:1: note: declared here [3]
Check dependencies [BEROR]error: There is no SDK with the name or path 'iphoneos3.1.3'
...
that's what I get after updating to sdk 4. I'm quite new to xcode and friends - maybe I'm missing something obvious (please forgive!) - but trying to edit the project settings to use another sdk doesn't make xcodes top left drop down display other than "base sdk missing" ?
Any idea?
Thanx and greetings from Berlin
Benedikt
I'm getting an EXC_BAD_ACCESS when debugger is processing function initWithAPIWey on OFFlickrAPIContext class.
When debugger is at this point:
- (id)initWithAPIKey:(NSString *)inKey sharedSecret:(NSString *)inSharedSecret
{
if ((self = [super init])) {
key = [inKey copy];
On the last code line, I can see inKey has the value of the constant I defined on SampleAPIKey.h . inKey is a NSCFString and key is NSString. Key value is nil.
Do you know what could it happens? I'm using Xcode 4.
Thanks for your help!
I need to authenticate the flickr in my project. I have integrate the "Snap And Run" in my project. I am trying to run my project on Device. Its working fine..the first time onwards the flickr login screen will follow the gmail and yahoo credentials. But, when I am deleting the instance of my app or again re-installed the app my flickr authentication is not showing for using the gmail credentials. What should I do to get gmail login details in second attempt?
I have understood the snap and run sample project code and how it works, however, how can I use the same code to upload a folder that contains 3 images to Flickr ?
thank you in advance.
Hi,
There was a question in the year 2010th with no responses: http://code.google.com/p/objectiveflickr/issues/detail?id=9
I've came to the same issue using ObjectvieFlickr inside of UIPopoverController.
The problem's roots are in the CFReadStream's callback (LFHRReadStreamClientCallBack) calling, when LFHTTPRequest object is already destroyed.
Firstly I've noticed, that there is no delegate nulling in the OFFlickrAPIRequest dealloc method, so I've added it and the crash moved a bit further. Then I've checked LFHTTPRequest.m searching the stream events callback cancelation, but no results.
So, I've added 2 calls of CFReadStreamSetClient(_readStream, kCFStreamEventNone, NULL, NULL) function:
one into cleanUp method, another to _performMethod:onURL:withData:orWithInputStream: knownContentSize:
Unfortunately, it didn't help, and callback is still called.
I should say, that now I'm in deadlock. Could you please help me with this issue.
P.S. I hope I helped you too.
Hello .... I did followed the steps to use this api in my project but the error "No architectures to compile for (ARCHS=x86_64, VALID_ARCHS=i386)." occured and when i tried to compile the example code the same error occured. can you guide me where i am wrong at ?
This happened to me every time, I sent multi-requests during testing user double tapping or crazy-tapping.
It crashes in readStreamHasBytesAvailable, when quickly sent multi-requests.
Does any one has or know a solution about this?
Thank you for your helping.
I would love to have this explained? Why not simply use a delegate in iOS?
@protocol OFFlickrAPIRequestDelegate
@optional
@interface NSObject (OFFlickrAPIRequestDelegateCategory)
Note that it now breaks building for simulator with Xocde 4.5.
Could someone please add 2.0.2
tag to the repo? So I could add a specification for the fresh version of ObjectiveFlickr to the CocoaPods.
Project file needs to be updated to include support for armv7s
I've noticed that the args (token, username, nsid, etc.) passed to the didObtainOAuthAccessToken
delegate method still need URL decoding as they contain percent escaped characters.
Hi,
I am trying to execute iphone snapandrun, its taking me to the login page but after that its not passing teh access token.
It still at the authenticating message.
Any help is appreciated.
Thanks,
Swetha.
Hey,
I tried to add a new collection like
NSDictionary *dic = [NSDictionary dictionaryWithObjectsAndKeys:[NSString stringWithFormat:@"Coll API %d", 2], @"title", @"description", @"test add new collection", nil];
[flickrRequest callAPIMethodWithPOST:@"flickr.collections.create" arguments:dic];
If pair of keys:
@"description", @"test_add_new_collection" with no space -> add OK but Collection created hasn't "decription"
If pair of keys:
@"description", @"test add new collection" has at least 1 space -> add FAIL
Hi lukhnos,
I wanted to use your Flcikr API with TapkuLibrary which must be used with -ObjC and -all_load flags.
But as soon as I add those I got this undefined error during build:
Undefined symbols: "_SCNetworkReachabilityScheduleWithRunLoop", referenced from: -[LFSiteReachability startChecking] in LFSiteReachability.o "_SCNetworkReachabilityGetFlags", referenced from: -[LFSiteReachability networkConnectivityExists] in LFSiteReachability.o -[LFSiteReachability startChecking] in LFSiteReachability.o "_SCNetworkReachabilityCreateWithAddress", referenced from: -[LFSiteReachability networkConnectivityExists] in LFSiteReachability.o -[LFSiteReachability startChecking] in LFSiteReachability.o "_SCNetworkReachabilityUnscheduleFromRunLoop", referenced from: -[LFSiteReachability stopChecking] in LFSiteReachability.o "_SCNetworkReachabilitySetCallback", referenced from: -[LFSiteReachability startChecking] in LFSiteReachability.o ld: symbol(s) not found collect2: ld returned 1 exit status
Any idea on this?
Thanks for your help!
Jérémy
Hi there.
i have a flickr account i want all of my images to be posted to that i want to hardcode within the application so you do not need to have a user have to authorize their own personal flickr account.
i try to use the following within didObtainOAuthRequestToken
[flickrRequest fetchOAuthAccessTokenWithRequestToken:inRequestToken verifier:OBJECTIVE_FLICKR_SAMPLE_API_PIN];
but i get o_auth problem (token_rejected) problem.
what am i doing wrong or is their no way i can skip the authorization step.??
b.
So, I'm getting linker errors after I upgraded...
ld: warning: ignoring file /Users/randytarampi/Projects/cmpt275-group9/trunk/objectiveflickr/build/Debug-iphoneos/libObjectiveFlickr.a, file was built for archive which is not the architecture being linked (armv7)
Undefined symbols for architecture armv7:
"_OFFlickrWritePermission", referenced from:
-[SFUFlickrPhotoViewController authorizeFlickr] in SFUFlickrPhotoViewController.o
"OBJC_CLASS$_OFFlickrAPIRequest", referenced from:
objc-class-ref in SFUBusinessMobileAppDelegate.o
"OBJC_CLASS$_OFFlickrAPIContext", referenced from:
objc-class-ref in SFUBusinessMobileAppDelegate.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
This might not be the correct place to post this issue because it could be something with Flickr, but I searched their support and couldn't find an answer.
For some reason, Objective Flickr is no longer returning an url_o value for my requests when I use OF like this:
[self.flickrRequest callAPIMethodWithGET:@"flickr.photosets.getPhotos"
arguments:[NSDictionary dictionaryWithObjectsAndKeys:FLICKRSTRIPID, @"photoset_id", @"12", @"per_page",
@"url_q, url_sq, url_n, url_z, url_o", @"extras", nil]];
I get valid values for all the other URL's and last week it return the url_o just fine. So I'm not sure if Flickr changed something or I'm doing something wrong or what. Is there anyone who can help me or point me in the right direction to solve this?
and if I manually set the shouldWaitUntilDone to YES before performing the http request, the callback can be called successfully.
I created a brand new projection Xcode 4.3.2
set type to iphone arc project
set project type to single view
in the controller:
in .h file
@Property (nonatomic, strong) OFFlickrAPIContext *context;
in .m file
(void) viewWillAppear:(BOOL)animated
{
// Do any additional setup after loading the view, typically from a nib.
self.context = [[OFFlickrAPIContext alloc] initWithAPIKey:@"6903cd1cb6a4bc92e906b76d60c34f63"
sharedSecret:@"4055df0dfc06e60f"];
OFFlickrAPIRequest *request = [[OFFlickrAPIRequest alloc] initWithAPIContext:_context];
// set the delegate, here we assume it's the controller that's creating the request object
[request setDelegate:self];
NSMutableDictionary *params = [NSMutableDictionary dictionaryWithCapacity: 5];
[params setObject:@"2000-01-01 00:00:00" forKey:@"max_taken_date"];
[params setObject:@"47.60569" forKey:@"lat"];
[params setObject:@"-122.338561" forKey:@"lon"];
[params setObject:@"date_taken" forKey:@"date_taken"];
[request callAPIMethodWithGET:@"flickr.photos.search"
}
run the app in simulator
=> app crash, in LFHTTPrequest::readStreamHasBytesAvailable on line 215
_delegate is pointing to a dead pointer
Hello lukhnos,
I encountered a problem when I target my app to iPad, a.k.a. the iPhoneOS 3.2. It seems that iOS 3.2 SDK does not have an declaration of NSXMLParserDelegate protocol, which caused a compile error on:
#if (MAC_OS_X_VERSION_10_6 && MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_6) || (__IPHONE_OS_VERSION_MAX_ALLOWED >= __IPHONE_2_0)
@interface OFXMLMapper : NSObject <NSXMLParserDelegate>
#else
@interface OFXMLMapper : NSObject
#endif
It can be compiled, however, if I just remove the <NSXMLParserDelegate>.
I get this error after following your instructions to add the frame work to a Macintosh desktop application. I checked over the instructions over five times, with no luck. The examples run and compile fine though :P. I will expand on this issue when I get the chance. Thanks!
Hello, this is now issue but a question.
Is there a way to do the authentication to flickr with hardcoded user data, so everyone that uses my app will upload pictures to the same flickr account?
Thanks in advance.
I am not able to understand this line. Kindly elaborate.
Header Path is fine.
I am getting multiple crash reports from users, that are confined inside LFHTTPRequest.
One of them is below at line 191 of LFHTTPRequest.m file. This is related to a request timing out.
0 libobjc.A.dylib objc_msgSend + 15
1 My App LFHTTPRequest.m line 191
-[LFHTTPRequest(PrivateMethods) handleRequestMessageBodyTrackerTick:] + 191
2 ... Foundation NSFireTimer + 62
3 CoreFoundation __CFRUNLOOP_IS_CALLING_OUT_TO_A_TIMER_CALLBACK_FUNCTION + 14
4 CoreFoundation __CFRunLoopDoTimer + 272
5 CoreFoundation __CFRunLoopRun + 1232
6 CoreFoundation CFRunLoopRunSpecific + 356
7 CoreFoundation CFRunLoopRunInMode + 104
8 GraphicsServices GSEventRunModal + 74
9 UIKit UIApplicationMain + 1120
10 My App main.m line 13 main + 13
Another one is happening at line 772 of LFHTTPRequest.m file. This seems to happen when errors occurred on read input stream.
0 libobjc.A.dylib objc_msgSend + 15
1 My App LFHTTPRequest.m line 772
LFHRReadStreamClientCallBack + 772
2 CoreFoundation _signalEventSync + 74
3 CoreFoundation _cfstream_solo_signalEventSync + 74
4 CoreFoundation _CFStreamSignalEvent + 326
5 CFNetwork CoreReadStreamCFStreamSupport::coreStreamReadEvent(_CoreReadStream, unsigned long) + 98
6 CFNetwork CoreReadStreamClient::coreStreamEventsAvailable(unsigned long) + 34
7 CFNetwork CoreStreamBase::_callClientNow() + 46
8 CFNetwork CoreStreamBase::_streamSetEventAndScheduleDelivery(unsigned long, unsigned char) + 84
9 CFNetwork CoreStreamBase::streamInterface_SignalEvent(unsigned long, CFStreamError const) + 34
10 CFNetwork HTTPReadStream::selfSignalEvent(unsigned long, CFStreamError const*) + 324
11 CFNetwork HTTPReadStream::streamEvent(unsigned long) + 156
12 CFNetwork CoreReadStreamClient::coreStreamEventsAvailable(unsigned long) + 34
13 CFNetwork CoreStreamBase::_callClientNow() + 46
14 ... CoreFoundation CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 14
15 CoreFoundation __CFRunLoopDoSources0 + 212
16 CoreFoundation __CFRunLoopRun + 646
17 CoreFoundation CFRunLoopRunSpecific + 356
18 CoreFoundation CFRunLoopRunInMode + 104
19 GraphicsServices GSEventRunModal + 74
20 UIKit UIApplicationMain + 1120
21 My App main.m line 13 main + 13
I'm looking to implement Flickr in my iPhone app. I'm using Xcode 4 and am trying to follow this part of the instructions:
On your app target, open the info window (using Get Info on the target), then in the General tab, add ObjectiveFlickr (library) to Direct Dependencies.
How do I "Get Info" on my target in Xcode 4?
Here is the details
//////////////////////////////////
CompileC "build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/Objects-normal/i386/LFHTTPRequest.o" LFWebAPIKit/LFHTTPRequest.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/shistone/workspace/githubs/objectiveflickr
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -pipe -fdiagnostics-print-source-range-info -Wno-trigraphs -fpascal-strings -O0 -Wmissing-field-initializers -Werror-implicit-function-declaration -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wuninitialized -Wunknown-pragmas -Wfour-char-constants -Wsign-compare -Wshorten-64-to-32 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk -fasm-blocks -fobjc-gc -mmacosx-version-min=10.6 -gdwarf-2 -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote "/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/ObjectiveFlickr-generated-files.hmap" "-I/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/ObjectiveFlickr-own-target-headers.hmap" "-I/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/ObjectiveFlickr-all-target-headers.hmap" -iquote "/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/ObjectiveFlickr-project-headers.hmap" -F/Users/shistone/workspace/githubs/objectiveflickr/build/Debug-iphonesimulator -I/Users/shistone/workspace/githubs/objectiveflickr/build/Debug-iphonesimulator/include "-I/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/DerivedSources/i386" "-I/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/DerivedSources" -c /Users/shistone/workspace/githubs/objectiveflickr/LFWebAPIKit/LFHTTPRequest.m -o "/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/Objects-normal/i386/LFHTTPRequest.o"
In file included from /Users/shistone/workspace/githubs/objectiveflickr/LFWebAPIKit/LFHTTPRequest.m:29:
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h:126:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h:3217:3: error: invalid token after top level declarator
SC_SCHEMA_DECLARATION(kSCValNetIPv6ConfigMethodLinkLocal, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA))
^
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h:3217:61: note: instantiated from:
SC_SCHEMA_DECLARATION(kSCValNetIPv6ConfigMethodLinkLocal, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA))
^
:69:1: note: instantiated from:
__AVAILABILITY_INTERNAL__MAC_10_7
^
In file included from /Users/shistone/workspace/githubs/objectiveflickr/LFWebAPIKit/LFHTTPRequest.m:29:
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h:126:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h:3959:3: error: invalid token after top level declarator
SC_SCHEMA_DECLARATION(kSCPropNetProxiesProxyAutoConfigJavaScript, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA))
^
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h:3959:69: note: instantiated from:
SC_SCHEMA_DECLARATION(kSCPropNetProxiesProxyAutoConfigJavaScript, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA))
^
:69:1: note: instantiated from:
__AVAILABILITY_INTERNAL__MAC_10_7
^
2 errors generated.
CompileC "build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/Objects-normal/i386/ObjectiveFlickr.o" Source/ObjectiveFlickr.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/shistone/workspace/githubs/objectiveflickr
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -pipe -fdiagnostics-print-source-range-info -Wno-trigraphs -fpascal-strings -O0 -Wmissing-field-initializers -Werror-implicit-function-declaration -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wuninitialized -Wunknown-pragmas -Wfour-char-constants -Wsign-compare -Wshorten-64-to-32 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk -fasm-blocks -fobjc-gc -mmacosx-version-min=10.6 -gdwarf-2 -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote "/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/ObjectiveFlickr-generated-files.hmap" "-I/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/ObjectiveFlickr-own-target-headers.hmap" "-I/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/ObjectiveFlickr-all-target-headers.hmap" -iquote "/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/ObjectiveFlickr-project-headers.hmap" -F/Users/shistone/workspace/githubs/objectiveflickr/build/Debug-iphonesimulator -I/Users/shistone/workspace/githubs/objectiveflickr/build/Debug-iphonesimulator/include "-I/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/DerivedSources/i386" "-I/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/DerivedSources" -c /Users/shistone/workspace/githubs/objectiveflickr/Source/ObjectiveFlickr.m -o "/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/Objects-normal/i386/ObjectiveFlickr.o"
In file included from /Users/shistone/workspace/githubs/objectiveflickr/Source/ObjectiveFlickr.m:28:
In file included from /Users/shistone/workspace/githubs/objectiveflickr/Source/ObjectiveFlickr.h:28:
In file included from /Users/shistone/workspace/githubs/objectiveflickr/LFWebAPIKit/LFWebAPIKit.h:34:
In file included from /Users/shistone/workspace/githubs/objectiveflickr/LFWebAPIKit/LFSiteReachability.h:29:
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h:126:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h:3217:3: error: invalid token after top level declarator
SC_SCHEMA_DECLARATION(kSCValNetIPv6ConfigMethodLinkLocal, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA))
^
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h:3217:61: note: instantiated from:
SC_SCHEMA_DECLARATION(kSCValNetIPv6ConfigMethodLinkLocal, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA))
^
:37:1: note: instantiated from:
__AVAILABILITY_INTERNAL__MAC_10_7
^
In file included from /Users/shistone/workspace/githubs/objectiveflickr/Source/ObjectiveFlickr.m:28:
In file included from /Users/shistone/workspace/githubs/objectiveflickr/Source/ObjectiveFlickr.h:28:
In file included from /Users/shistone/workspace/githubs/objectiveflickr/LFWebAPIKit/LFWebAPIKit.h:34:
In file included from /Users/shistone/workspace/githubs/objectiveflickr/LFWebAPIKit/LFSiteReachability.h:29:
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h:126:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h:3959:3: error: invalid token after top level declarator
SC_SCHEMA_DECLARATION(kSCPropNetProxiesProxyAutoConfigJavaScript, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA))
^
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h:3959:69: note: instantiated from:
SC_SCHEMA_DECLARATION(kSCPropNetProxiesProxyAutoConfigJavaScript, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA))
^
:37:1: note: instantiated from:
__AVAILABILITY_INTERNAL__MAC_10_7
^
2 errors generated.
CompileC "build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/Objects-normal/i386/LFSiteReachability.o" LFWebAPIKit/LFSiteReachability.m normal i386 objective-c com.apple.compilers.llvm.clang.1_0.compiler
cd /Users/shistone/workspace/githubs/objectiveflickr
setenv LANG en_US.US-ASCII
setenv PATH "/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/clang -x objective-c -arch i386 -fmessage-length=0 -pipe -fdiagnostics-print-source-range-info -Wno-trigraphs -fpascal-strings -O0 -Wmissing-field-initializers -Werror-implicit-function-declaration -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wuninitialized -Wunknown-pragmas -Wfour-char-constants -Wsign-compare -Wshorten-64-to-32 -isysroot /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk -fasm-blocks -fobjc-gc -mmacosx-version-min=10.6 -gdwarf-2 -fobjc-abi-version=2 -fobjc-legacy-dispatch -iquote "/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/ObjectiveFlickr-generated-files.hmap" "-I/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/ObjectiveFlickr-own-target-headers.hmap" "-I/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/ObjectiveFlickr-all-target-headers.hmap" -iquote "/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/ObjectiveFlickr-project-headers.hmap" -F/Users/shistone/workspace/githubs/objectiveflickr/build/Debug-iphonesimulator -I/Users/shistone/workspace/githubs/objectiveflickr/build/Debug-iphonesimulator/include "-I/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/DerivedSources/i386" "-I/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/DerivedSources" -c /Users/shistone/workspace/githubs/objectiveflickr/LFWebAPIKit/LFSiteReachability.m -o "/Users/shistone/workspace/githubs/objectiveflickr/build/ObjectiveFlickr.build/Debug-iphonesimulator/ObjectiveFlickr (library).build/Objects-normal/i386/LFSiteReachability.o"
In file included from /Users/shistone/workspace/githubs/objectiveflickr/LFWebAPIKit/LFSiteReachability.m:29:
In file included from /Users/shistone/workspace/githubs/objectiveflickr/LFWebAPIKit/LFSiteReachability.h:29:
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h:126:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h:3217:3: error: invalid token after top level declarator
SC_SCHEMA_DECLARATION(kSCValNetIPv6ConfigMethodLinkLocal, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA))
^
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h:3217:61: note: instantiated from:
SC_SCHEMA_DECLARATION(kSCValNetIPv6ConfigMethodLinkLocal, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA))
^
:69:1: note: instantiated from:
__AVAILABILITY_INTERNAL__MAC_10_7
^
In file included from /Users/shistone/workspace/githubs/objectiveflickr/LFWebAPIKit/LFSiteReachability.m:29:
In file included from /Users/shistone/workspace/githubs/objectiveflickr/LFWebAPIKit/LFSiteReachability.h:29:
In file included from /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SystemConfiguration.h:126:
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h:3959:3: error: invalid token after top level declarator
SC_SCHEMA_DECLARATION(kSCPropNetProxiesProxyAutoConfigJavaScript, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA))
^
/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.1.sdk/System/Library/Frameworks/SystemConfiguration.framework/Headers/SCSchemaDefinitions.h:3959:69: note: instantiated from:
SC_SCHEMA_DECLARATION(kSCPropNetProxiesProxyAutoConfigJavaScript, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA))
^
:69:1: note: instantiated from:
__AVAILABILITY_INTERNAL__MAC_10_7
^
2 errors generated.
var context :OFFlickrAPIContext = OFFlickrAPIContext(APIKey: Flickr["consumerKey"], sharedSecret: Flickr["consumerKey"])
var request : OFFlickrAPIRequest = OFFlickrAPIRequest(APIContext: context)
request.delegate = self
var imagedta = UIImageJPEGRepresentation(self.m_ShareImage, 0.5)
var imageStream : NSInputStream = NSInputStream(data: imagedta)
request.uploadImageStream(imageStream, suggestedFilename: "footer.jpg", MIMEType: "image/jpeg", arguments: NSDictionary(objectsAndKeys:"1","is_public") as [NSObject : AnyObject])
i am using this but not working not posted
I couldn't build the iphone demo SnapAndRun. When i compile i have this error :
invalid token after top level declarator
SCSchemaDefinition.h:3959
SC_SCHEMA_DECLARATION(kSCPropNetProxiesProxyAutoConfigJavaScript, __OSX_AVAILABLE_STARTING(__MAC_10_7,__IPHONE_NA))
Could you help me ?
With the current fix protocol the selector called as a result of the API call is fix.
[flickrRequest callAPIMethodWithGET:theMethod
arguments:theArguments];
Will call:
- (void) flickrAPIRequest:(OFFlickrAPIRequest *)inRequest didCompleteWithResponse:(NSDictionary *)theResponseDictionary
Which leads to lots of switch/cases ...or you have to wrap the invocation into a dedicated object.
Why not use the common fetcher pattern where you pass in a selector for finish and one for failure? Something along the lines of...
[flickrRequest callAPIMethodWithGET:theMethod
arguments:theArguments
delegate:self
finishSelector:@selector(methodFinished:)
failureSelector:@selector(methodFailed:)
];
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.