SwiftAssimp icon indicating copy to clipboard operation
SwiftAssimp copied to clipboard

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

Open Winde4th opened this issue 2 years ago • 1 comments

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

  • [x] If possible, I've reproduced the issue using the main/master branch of this package.
  • [x] I've searched for existing issues under the issues tab.
  • [x] 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

Winde4th avatar Oct 03 '23 15:10 Winde4th

"Hi @Winde4th, @ctreffs, I'm encountering an issue while integrating SPM into my code. The error I'm facing is: 'Cannot assign value of type 'aiMorphingMethod' to type 'UInt32'.' How can I resolve this?"

AyushBharadwaj avatar Nov 08 '24 09:11 AyushBharadwaj