Skip to content

Unable to build Swift Algorand SDK in apple M1 processer  #31

@MadushanSenavirathna

Description

@MadushanSenavirathna

Version

Swift Algorand SDK Version - Latest 1.1.0
Xcode version - Version 13.2.1
iPhone simulator - iOS 15.2

Problem

When doing Xcode project build Algorand SDK showing missing import message. I have posted the error message billow.

Could not find module swift algorand sdk' for target x86_64-apple-ios-simulator: found: arm64,
arm64-apple-ios-simulator, at: /Users/madushansenavirathna/Librarv/Developer/Xcode/DerivedData
PagoWallet-evpbpapxecehakezlwvedywaomtm/Build/Products/Debug-iphonesimulator
swifT_algorand_sak.swintmodule

This project run with apple M1 silicon processor default Xcode excluded architecture coming with arm64 also added x86_64 for project targets and the SDK targets but remaining the same issue.

Change Build Settings > Excluded Architectures >

Debug : x86_64 arm64
          Any iOS Simulator SDK : x86_64 arm64
Release:  x86_64 arm64
          Any iOS Simulator SDK : x86_64 arm64

Also we Changed User-Defined from Targets > Build Settings

Targets > Build Settings > User-Defined added Valid_ARCH

Valid_ARCH:  arm64 armv7 i386 x86_64
         Release: arm64 armv7 i386 x86_64
         Debug: arm64 armv7 i386 x86_64

Finally we tried to build XCFramework combine with x86_64 and arm64 binaries but this Swift Alfgorand SDK only supporting Swift Package Manger

Please give us any suggestion to resolve this problem combine with two binaries by using XCFramworks in CoCoapods or if you can resolve this issue or update this library from your side let us know.

Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions