You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

gcarl's avatar
gcarl
Explorer | Level 4
8 months ago

Xcode error: "Build failed because SwiftyDropbox.swiftmodule is not built for arm64" (SDK v.10)

Dear community,

 

I'm creating an app for iOS in Xcode (v. 15.3) in which I want to integrate the SwiftyDropbox SDK (v.10.0.6). I've done this via "add packages".

 

In the "Build settings"  I have excluded "arm64":

 

 

When trying to build and run this app in the simulator I get the following error message: "Build failed because SwiftyDropbox.swiftmodule is not built for arm64". I scrolled through stack overflow but all hints I found there didn't fix the issue. Has anyone an idea what's wrong?

Thanks for your support.

 

  • To be honest, I'm not familiar with the mentioned package. I cannot imagine any package, targeting particular platform, to expect exclusion of the same platform though. 🤷 (including arm64, but not only)

     

    PS: Probably you are trying to do something like cross-compilation with pre-build package. Clarify to yourself what you're going to do and everything's gona be fine (I believe). In any way all packages have to be the same architecture for one executable binary though (not some mixture as seems to be in your case). If you plan mixed architecture project, split the different archs in different binaries, for example.

  • Здравко's avatar
    Здравко
    Legendary | Level 20

    Hi gcarl,

    You have excluded an arm64 part (the Dropbox part) from your arm64 (Apple Silicon) project (why at all 🤷). At the end you got surprised that your build system "informs" you about that. Am I missing something? 🧐

    • gcarl's avatar
      gcarl
      Explorer | Level 4

      I'm using th package NMSSH from github in this app too for SFTP-filetransfer to a server as alternative to storing data on Dropbox. The older NMSSH module is only working, if arm6 is excluded. This is the reason why I excluded it. Do I understand it correct that the result is the conflict out of these two packages? NMSSH only without arm6, SwiftyDropboy only with arm6?

      • Здравко's avatar
        Здравко
        Legendary | Level 20

        To be honest, I'm not familiar with the mentioned package. I cannot imagine any package, targeting particular platform, to expect exclusion of the same platform though. 🤷 (including arm64, but not only)

         

        PS: Probably you are trying to do something like cross-compilation with pre-build package. Clarify to yourself what you're going to do and everything's gona be fine (I believe). In any way all packages have to be the same architecture for one executable binary though (not some mixture as seems to be in your case). If you plan mixed architecture project, split the different archs in different binaries, for example.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,882 PostsLatest Activity: 7 hours ago
325 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!