maxgribov / Spine

Unofficial Spine runtime Swift library, allows you to play animations created in the Spine app (http://esotericsoftware.com).
MIT License
188 stars 36 forks source link

V3 - multiple build errors (SpriteKit not imported) #48

Closed kvaDrug closed 1 year ago

kvaDrug commented 1 year ago

Since the last update I got multiple build errors like Cannot find 'CGFloat' (see below). Inspecting module files shows that they miss SpriteKit import. Probably it was automatically imported on your local Xcode, but it doesn't work on mine and produce these errors.

/.../Library/Developer/Xcode/DerivedData/MyProj-dztgcjnsotghztdkvsofoblrksij/SourcePackages/checkouts/Spine/Sources/Spine/Model/Animation/Keyframes/Bone/BoneKeyframeShearModel.swift:13:16: Cannot find type 'CGVector' in scope

/.../Library/Developer/Xcode/DerivedData/MyProj-dztgcjnsotghztdkvsofoblrksij/SourcePackages/checkouts/Spine/Sources/Spine/Model/Animation/Keyframes/Bone/BoneKeyframeShearModel.swift:30:48: Cannot find 'CGFloat' in scope

/...Library/Developer/Xcode/DerivedData/MyProj-dztgcjnsotghztdkvsofoblrksij/SourcePackages/checkouts/Spine/Sources/Spine/Model/Animation/Keyframes/Bone/BoneKeyframeShearModel.swift:31:48: Cannot find 'CGFloat' in scope

/.../Library/Developer/Xcode/DerivedData/MyProj-dztgcjnsotghztdkvsofoblrksij/SourcePackages/checkouts/Spine/Sources/Spine/Extensions Public/Skeleton+Points.swift:28:18: Generic parameter 'ElementOfResult' could not be inferred

maxgribov commented 1 year ago

Check if this PR fixes your errors: build-errors-fix.