dropbox / dropbox-sdk-obj-c

Official Objective-C SDK for the Dropbox API v2.
MIT License
183 stars 117 forks source link

Dropbox SDK and xCode 15 #380

Closed veikoherne closed 4 months ago

veikoherne commented 4 months ago

As Apple demanded, I had to update my apps to xCode 15. However, my old dropbox framework compiled with older xCode wasn't anymore suitable to include with my app, therefore I tried to compile to a new framework. Even there was a warning, that iOS 11.0 isn't anymore supported the framework was compiled succesfully and I included to my project. However, trying to test my newly built app with my iOS device still running iOS 16, it crashes immediatly after starting. Removing your library works fine. So, do you have any intentions to provide me a framework library to support Apple new requirements or do I have to remove any integration with Dropbox from my app?

Thanks, Veiko Herne

greg-db commented 4 months ago

We'll be happy to help with any issues you're having with this Dropbox SDK, but we'll need some more information. Please reply with:

veikoherne commented 4 months ago

When I have ObjectiveDropboxOfficial.framework included, that app crashes with following: dyld`: 0x1bd603fc4 <+0>: mov x16, #0x209 0x1bd603fc8 <+4>: svc #0x80 -> 0x1bd603fcc <+8>: b.lo 0x1bd603fec ; <+40> 0x1bd603fd0 <+12>: pacibsp 0x1bd603fd4 <+16>: stp x29, x30, [sp, #-0x10]! 0x1bd603fd8 <+20>: mov x29, sp 0x1bd603fdc <+24>: bl 0x1bd59f750 ; cerror_nocancel 0x1bd603fe0 <+28>: mov sp, x29 0x1bd603fe4 <+32>: ldp x29, x30, [sp], #0x10 0x1bd603fe8 <+36>: retab
0x1bd603fec <+40>: ret
And never even go to appdelegeate. Seems, that problem isn't the target as when changing build target to iOS 12, it compiles but same crash happened. Before using xCode 14, everything worked. My device is iPhone SE 2nd gen running iOS 16.6.1

veikoherne commented 4 months ago

I think I sorted it out. When including your framework, I should have been mark it as "embed & sign". Thanks for your help.