animations doesn’t work after packaging project

Hello , i packaged the project but the animation doesnt work ? i have just few warning


PS:It’s c++ project not just blueprint

Continuing the discussion from animations doesn’t work after packaging project:
i narrow the problem to
First Person animations
UPROPERTY(EditAnywhere, Category = Animation)
UAnimBlueprint* FirstPersonDefaultAnim;
UPROPERTY(EditAnywhere, Category = Animation) UAnimBlueprint* FirstPersonsecondaryweaponAnim;
UPROPERTY(EditAnywhere, Category = Animation)
UAnimBlueprint* FirstPersonfirstweaponAnim;
and apparently when use this GetMesh()->SetAnimInstanceClass(FirstPersonfirstweaponAnim->GeneratedClass); didnt work in shipping but works fine in editor