Skip to Content

Xcode 11 building error

Hi Experts,

I downloaded SAP Cloud Platform SDK for iOS version 4.0.0 sp00 pl00 for XCode 11 (11A420a) and installed the extracted frameworks into an existing iOS project. However I am getting the error, “Module compiled with Swift 5.0 cannot be imported by the Swift 5.1 compiler”.

Does SAP have a solution for this? Would it be possible to get a framework specifically compiled with swift 5.1 as this is what xcode 11 uses? Should I be using XCode 11.1 instead of XCode 11 as this is the latest release by apple?

Thank you,

Siva

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Oct 12, 2019 at 03:08 PM

    Hi Experts,

    This problem can be replicated using XCode 11 and SAP Cloud Platform SDK for iOS version 3.0 SP02 PL07.

    Thank you,

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 15, 2019 at 08:05 AM

    I had same error.
    In my case, I was using XCode11 and SAP Cloud Platform SDK for iOS version3.0 SP02 PL04.
    With SAP Cloud Platform SDK for iOS version4.0 SP00 PL00, I could deploy without problems.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 15, 2019 at 04:47 PM

    yes, you should use Xcode 11.1 with MacOS Catalina, I am album to compile my Xcode projects without errors, however be careful with SDK v4, it is full of bugs, we decided to wait for a stable update.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 21, 2019 at 11:11 PM

    This is not a bug Alexandre Giguere . This is a standard swift compiler compatibility issue. Modules compiled with older versions of Xcode have never been compatible with newer versions of Xcode due to fluid ABI and module interfaces. We have always noted which version of Xcode was used for producing each patch.

    This incompatibility should go away permanently in a soon-to-come patch, which takes advantage of the Swift module stability from Swift 5.1 and Distribution compilation.


    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.