hunterp
hunterp

Reputation: 15976

dyld: Library not loaded // stat() failed with errno=1 // code signature invalid for

I clean built. And I embed swift standard as this post suggests: dyld: Library not loaded: @rpath/libswiftAVFoundation.dylib

But still getting:

dyld: Library not loaded: @rpath/AppleSauceView.framework/AppleSauceView
  Referenced from: /private/var/containers/Bundle/Application/B89AF2A8-9CA8-4602-AE1E-AA31FA526D5A/AppleSauceView_Example.app/AppleSauceView_Example
  Reason: no suitable image found.  Did find:
    /private/var/containers/Bundle/Application/B89AF2A8-9CA8-4602-AE1E-AA31FA526D5A/AppleSauceView_Example.app/Frameworks/AppleSauceView.framework/AppleSauceView: code signature invalid for '/private/var/containers/Bundle/Application/B89AF2A8-9CA8-4602-AE1E-AA31FA526D5A/AppleSauceView_Example.app/Frameworks/AppleSauceView.framework/AppleSauceView'
    /private/var/containers/Bundle/Application/B89AF2A8-9CA8-4602-AE1E-AA31FA526D5A/AppleSauceView_Example.app/Frameworks/AppleSauceView.framework/AppleSauceView: code signature invalid for '/private/var/containers/Bundle/Application/B89AF2A8-9CA8-4602-AE1E-AA31FA526D5A/AppleSauceView_Example.app/Frameworks/AppleSauceView.framework/AppleSauceView'
    /private/var/containers/Bundle/Application/B89AF2A8-9CA8-4602-AE1E-AA31FA526D5A/AppleSauceView_Example.app/Frameworks/AppleSauceView.framework/AppleSauceView: stat() failed with errno=1
    /private/var/containers/Bundle/Application/B89AF2A8-9CA8-4602-AE1E-AA31FA526D5A/AppleSauceView_Example.app/Frameworks/AppleSauceView.framework/AppleSauceView: code signature invalid for '/private/var/containers/Bundle/Application/B89AF2A8-9CA8-4602-AE1E-AA31FA526D5A/AppleSauceView_Example.app/Frameworks/AppleSauceView.framework/AppleSauceView
    /private/var/containers/Bundle/Application/B89AF2A8-9CA8-4602-AE1E-AA31FA526D5A/AppleSauceView_Example.app/Frameworks/AppleSauceView.framework/AppleSauceView: stat() failed with errno=1

Upvotes: 2

Views: 1619

Answers (1)

eli
eli

Reputation: 73

This fixed it for me

Just:

  1. comment use_frameworks! on the Podfile
  2. run pod update
  3. run pod install
  4. clean build folder on Xcode - shift + cmd + k
  5. run project

I hope it helps!

Upvotes: 2

Related Questions