简体   繁体   中英

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

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM