Comments
-
Well, I got both of my builds to upload without iTunes complaining -- but there is definitely something weird going on. This morning I ripped out the Dropbox framework and settings, and installed it again via Carthage. My first target worked perfectly, uploaded fine. But the second target wouldn't run -- 'image not found'.…
-
The CocoaPods method does not work for me either. I get this, for one thing: Target 'ObjectiveDropboxOfficial' of project 'Pods' was rejected as an implicit dependency for 'ObjectiveDropboxOfficial.framework' because its architectures 'arm64' didn't contain all required architectures 'armv7 arm64' Target 'Pods-XXXXXX' of…
-
Yes, I followed the instructions exactly. I tried it a couple of times. What's weird is that earlier today it worked, but now it doesn't. I think something about changing project targets might screw with the behavior. I also, like that guy in the link, had some success by using Embedded Binaries earlier and then found it…
-
Hey Greg, I have everything working now. However, when I try to upload a build to iTunes, it rejects it. I get a bunch of errors like these: ERROR ITMS-90087: "Unsupported Architectures. The executable for XXXXX.app/Frameworks/ObjectiveDropboxOfficial.framework contains unsupported architectures '[x86_64, i386]'." ERROR…
-
It's probably fine then. In the old version I guess there was a chance that the DBSession would fail for some reason?
-
OK, great. Also, what should I use as a replacement for this check? if ([DBSession sharedSession]) This is just at the beginning of the program to make sure Dropbox is there, but not necessarily logged in. The [DropboxClientsManager setupWithAppKey:DROPBOX_APP_KEY] doesn't return any value, so I can't use that. Thanks Bob
-
Hey Greg, I'm trying to compare the behavior of this new API with the old one. But I can't find the documentation for the old Rest API for iOS. I want to know if the old loadFile:intoPath call (which downloads a file) automatically overwrote any existing file on the device, or if it generated an error? It looks like it is…
-
Hey Greg, I am getting this kind of stuff printed to the console when I use the Dropbox API. I'm not getting errors with the API calls, though. Is this normal? Thanks Bob 2017-02-15 13:38:52.256303 Headspace[18414:3298160] [] nw_host_stats_add_src recv too small, received 24, expected 28 2017-02-15 13:38:52.259067…
-
Okay. Another question -- can I use ([DropboxClientsManager authorizedClient] != nil) as a replacement for [[DBSession sharedSession] isLinked] ? Or are those two not equivalent? Is there something better I should use?
-
Okay -- thanks for all of this help! I was wondering, is there any way to cause Dropbox errors intentionally for testing? For example I would like to test the various upload errors that might happen. Bob
-
If the API is case insensitive, what happens when you upload a file with capitalization, and then try to download it again later? Wouldn't it lose the capitalization? Like, if I upload from once device and download to another, then if I used pathLower to create the new file, I would lose the original capitalization... One…
-
OK, thanks, I got it now. Also - is it okay to use the pathDisplay variable as a replacement for the old API's 'path' variable? The docs say pathDisplay is only for display purposes, as if it might be incorrect sometimes. But the other option is 'pathLower' , which is a lower-case version. So what do you use if you just…
-
Hey Greg, With the old API, when I got a file's metadata, the returned DBMetadata structure included the filename, the path, the revision, the total bytes, and the last modified date. Isn't that stuff commonly considered the metadata? With the new API, getMetadata seems like it only returns the filename and path, is that…
-
Oh, I see, the path contains the error information. I had assumed the path was just the file pathname. Thanks!
-
Thanks for the reply. I get that I can use the 'is' commands to check the error, but in the case of the metadata, there is a path and a tag. The path is pretty self evident. But what is the tag? The docs don't seem to provide any details about what that is. I'm just wondering in the case of an error, how I would go about…
-
Hey Greg, If getMetaData returns an error, how do you retrieve the error information from DBFILESGetMetadataError? It looks like it only contains a path and a tag, and I can't tell what the tag is. The docs say it represents the "union's current tag state", but it doesn't show any values. Is there some other way to get…
-
OK thanks, and how would you access the contents of the folder, is that included in the metadata or do you have to issue another call to get that? Would I have to use listFolder?
-
Ok, thanks Greg. Also, when I use DBFILESgetMetadata, is there any way to tell if the path is a file or a folder? In the old SDK there was an 'isDirectory' field of the metadata structure, but I don't see one for DBFILESMetadata. ? Also, if it IS a folder, then how do you access the contents of the folder? With the old SDK…
-
Hey Greg, Yes that worked, thanks! In the process of debugging this I went through all of my various simulators and devices, because I don't know how to remove the OAuth2 tokens once they are on there. I ran the old app to get the old tokens installed, then ran the new one to test the retrieval. Is there any way to remove…
-
Hey Greg, That's great, thanks! That code works, but I think I am missing one step. After I go through and store the new tokens, how do I get it to recognize that it is authorized? I am finding that [DropboxClientsManager authorizedClient] is returning nil after storing the tokens. If I quit the app and then run it again,…
-
Okay, thanks. Also I wanted to ask you about retrieving old tokens. Now that I know the user can just re-authorize, it's not that big a deal, but I was trying to get it to work anyway. My old phone is logged into Dropbox using the old version of the app. Then I run the new version to see if I can convert the old tokens.…
-
Hey Greg, I have the authorization flow set up -- but the Getting Started guide only describes how to authorize the user, it doesn't say anything about handling when the authorization has already happened. By looking at the DBRoulette example, it looks like I should check [DropboxClientsManager authorizedClient], is that…
-
Hey Greg, I used the Carthage method for my own app. This installed the dropbox SDK within my app folder -- and it includes the Example project(s). So are you saying that in order to run the Example project I have to run "carthage update --platform iOS" again within the Example project's Carthage folder? Which downloads…
-
Hey Greg, I have a couple of questions about the regular authorization flow. If I don't have pre-existing tokens, I'm using the web form login to authorize the user. It put up a screen that says "<AppName> would like access to its own folder, Apps->AppName, inside your Dropbox, Learn More." and you can click Cancel or…
-
Hey Greg, I don't really see anything in this Getting Started about tokens or extracting them? https://github.com/dropbox/dropbox-sdk-obj-c#get-started I don't understand where these tokens come into it. It seems like if I just follow the authorization flow as described in "Getting Started", it would authorize the app?…
-
Okay thanks -- I looked at those and that stuff seems to match, but I have bigger problems for now. Sorry for all the questions. I'm coming to this after several years of not touching this Dropbox code. I'm looking through my project for any reference to an OAuth token and not finding it. It looks like I set up the…
-
Hey Greg, When compiling with the new iOS API SDK, I get this XCode warning: ld: warning: ignoring file /Users/bob/Library/Developer/Xcode/DerivedData/Voxel-feiijazkmmkqehbmctcmaszabhor/Build/Products/Debug-iphoneos/ObjectiveDropboxOfficial.framework/ObjectiveDropboxOfficial, file was built for armv7 which is not the…
-
OK thanks -- it says the minimum OS version is iOS 8. Does that mean Dropbox support is going to end for iOS7 devices in June? I'm still supporting older OS versions -- is there a way to use Dropbox API v2 and still do that? Thanks Bob
-
Hey Greg, My iOS project has a "DropboxSDK.framework" in it, which looks like it is from December 2014. So it is probably OAuth1. So, where do I find the API v2 Objective-C SDK? Is that link at the end of my post the correct one? Thanks Bob
-
But is there any way to tell which it is? I used to load up my files from Dropbox as the app returned to being active, since it left the app. Now I can't really do that.