Skip to content

Compilation error since latest Assimp release : AIMesh.swift : cannot assign value of type 'aiMorphingMethod' to type 'UInt32' #30

@Winde4th

Description

@Winde4th

Bug Description

I just tried to compile SwiftAssimp (latest version 2.2.0) on a 5.9-jammy Swift server using latest Assimp release (5.3.1) and the compilation crash as below :

/SwiftAssimp/Sources/Assimp/AiMesh.swift:35:16: error: cannot assign value of type 'aiMorphingMethod' to type 'UInt32' method = mesh.mMethod ^ ( ).rawValue error: fatalError

Information

  • Package version: release 2.2.0
  • Platform version: 5.9-jammy swift dockerhub image

Checklist

  • If possible, I've reproduced the issue using the main/master branch of this package.
  • I've searched for existing issues under the issues tab.
  • The bug is reproducible

Steps to Reproduce

Steps to reproduce the behavior:

  1. Start a new project using SwiftAssimp 2.2.0 with a local Assimp 5.3.1 lib installed
  2. Run swift build -c release --static-swift-stdlib -Xlinker -u -Xlinker _swift_backtrace_isThunkFunction

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions