We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

Mark L.45's avatar
Mark L.45
Collaborator | Level 9
8 years ago

SwiftyDropbox was compiled with optimization - stepping may behave oddly

Using Carthage to build and use Swifty DropBox. For the main part it works well, but seem to be running into an issue relating to optimization every now and again as the subject line says.

 

How can I compile without optimization and install with Carthage?

 

Thanks

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Staff rankDropbox Staff

    Can you share the steps you took, and the full output/a screenshot showing the issue so we can make sure we follow exactly what you're seeing? Thanks in advance! 

    • Mark L.45's avatar
      Mark L.45
      Collaborator | Level 9

      Hi Greg,

       

      In answer to your question, in short, no. I cannot share cause it isn't that clear cut, that said I am only using a four methods...

       

          let client = DropboxClientsManager.authorizedClient!
          _ = client.files.download(path:sourcePath)
          .response { response, error in
          if let response = response { etc etc and

       

          let client = DropboxClientsManager.authorizedClient!
          _ = client.files.getThumbnail(path: sourcePath, format: Files.ThumbnailFormat.png, size: Files.ThumbnailSize.w64h64)
          .response { response, error in
          if let response = response { etc etc

       

          let client = DropboxClientsManager.authorizedClient!
          _ = client.files.listFolder(path:sourcePath).response(queue: DispatchQueue(label: "MyCustomSerialQueue")) { re  sponse, error in
          if let response = response { etc etc 

       

          let client = DropboxClientsManager.authorizedClient!
          _ = client.sharing.createSharedLinkWithSettings(path: sourcePath).response(queue: DispatchQueue(label: "MyCustomSerialQueue")) { response, error in
          if let response = response { etc etc

       

      I call list files, I call create shared links, I call thumbs... it works the first time around, but on the second pass if navigate to a different tree I call list files again it crashes. I can send you a link to a youtube video showing the behavior if you email me directly perhaps.

       

      I simply want to compile and use Swifty Dropbox frameworks without optimization, installing them thru carthage? I suspect that will fix it. I hope so.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,877 PostsLatest Activity: 12 months ago
326 Following

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!