dyld: Library not loaded: @rpath/libswiftContacts.dylib

前端 未结 5 930
我在风中等你
我在风中等你 2021-01-12 22:03

dyld: Library not loaded: @rpath/libswift_stdlib_core.dylib

dyld: Library not loaded: @rpath/libswiftCore.dylib. Issue persist

I know that theses question ha

5条回答
  •  甜味超标
    2021-01-12 22:31

    I had this same error for a couple of weeks:

    dyld: Library not loaded: @rpath/libswiftContacts.dylib
    

    Basically I was able to run and test my app on device. Then about 2 weeks ago, I wasn't able to run the tests on device anymore. Tests were running fine on simulator. I can't think what changed. The error I saw was the one above. I searched Google for ages trying to find a solution, and tried many fixes unsuccessfully. The fix that finally worked was to delete the Derived Data. Once I did this, I was once again able to run the tests on my device.

    Fix that worked for me:

    1. Go to Xcode > Preferences > Locations > Derived Data (click on little arrow to open up the folder in finder) e.g. /Users/[username]/Library/Developer/Xcode/DerivedData

    2. Delete the entire DerivedData folder

    3. Clean/Build

    4. Test on device - finally works again

提交回复
热议问题