Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift.String : Swift.Error #308

Open
kiranmbt opened this issue Apr 22, 2024 · 3 comments
Open

Swift.String : Swift.Error #308

kiranmbt opened this issue Apr 22, 2024 · 3 comments

Comments

@kiranmbt
Copy link

In IOS after import heresdk its showing error like
Undefined symbol: protocol conformance descriptor for Swift.String : Swift.Error in heresdk.

Please help me for that issue.

@HERE-SDK-Support-Team
Copy link
Contributor

Hi @kiranmbt,

the error message you're seeing typically indicates a linking problem where the Swift compiler is unable to find the necessary metadata for String as it conforms to the Error protocol. Here are a few steps you can take to troubleshoot and potentially resolve this issue:

  1. Clean and Rebuild:

    • Start by cleaning your project in Xcode. You can do this by going to Product > Clean Build Folder. Sometimes, Xcode can hold onto outdated caches that cause linking errors.
    • After cleaning, rebuild the project to see if the issue persists.
  2. Check Swift Version Compatibility:

    • Ensure that the version of Swift you are using is compatible with the version used by the HERE SDK. Incompatibilities between Swift versions can sometimes lead to this kind of error. The min iOS version is 13.0. Please list your iOS and Xcode version, if you cannot resolve the issue.
  3. Examine Import Statements:

    • Ensure that the import statements for the HERE SDK are correct and that there are no missing or duplicate imports that might be causing conflicts.
  4. Linking Flags and Frameworks:

    • Check your project’s build settings to make sure that all necessary frameworks are linked properly and that there are no missing or incorrect compiler flags.
    • Go to Target > Build Phases > Link Binary with Libraries to verify this.
  5. Xcode and Swift Toolchain:

    • If you recently upgraded Xcode or the Swift toolchain, make sure everything is configured correctly. Sometimes, upgrading can change paths or settings that were previously in place.
    • Consider downloading an additional Swift toolchain if compatibility issues are suspected.

If this does not help, please list your environment (Xcode version, Swift version, iOS SDK version), and how you integrated the HERE SDK into your project. Thank you!

@kiranmbt
Copy link
Author

We have tried mentioned all the points. but still issue not resolved.
IOS Version - 15.0
Xcode Version - 15.3
IOS SDK Version - heresdk-explore-ios-4.18.0.0.101086

Thanks in advance.

@HERE-SDK-Support-Team
Copy link
Contributor

@kiranmbt What is the MacOS version you are using? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants