Nimble 8.0.4+ crashes due to CwlPreconditionTesting being "damaged or missing necessary resources"

Created on 30 Dec 2019  ·  10Comments  ·  Source: Quick/Nimble

  • [x] I have read CONTRIBUTING and have done my best to follow them.

What did you do?

Upgraded Nimble from 8.0.2 to 8.0.5 in an SPM package ().

What did you expect to happen?

The tests would continue to run successfully.

What actually happened instead?

The test suite crashes due to problems with CwlPreconditionTesting:

Showing All Messages
xctest (27033) encountered an error (Failed to load the test bundle. (Underlying error: The bundle “SheeeeeeeeetTests” couldn’t be loaded because it is damaged or missing necessary resources. The bundle is damaged or missing necessary resources. dlopen_preflight(/Users/admin/Library/Developer/Xcode/DerivedData/Sheeeeeeeeet-bpdwemkusvsybpefrvxivlepzywu/Build/Products/Debug-iphonesimulator/SheeeeeeeeetTests.xctest/SheeeeeeeeetTests): Library not loaded: @rpath/CwlPreconditionTesting.framework/CwlPreconditionTesting
  Referenced from: /Users/admin/Library/Developer/Xcode/DerivedData/Sheeeeeeeeet-bpdwemkusvsybpefrvxivlepzywu/Build/Products/Debug-iphonesimulator/SheeeeeeeeetTests.xctest/SheeeeeeeeetTests
  Reason: image not found))

Environment

  • Quick: 2.2.0
  • Nimble: 8.0.5
  • Xcode Version: 11.3
  • Swift Version: 5.1.3
  • Swift Package Manager 5.1.0

Project that demonstrates the issue

https://github.com/danielsaidi/Sheeeeeeeeet

If you download this, open the package and updates SPM to use Nimble 8.0.5, you should see this problem as well.

bug

Most helpful comment

@ikesyo Since you seem to be the only one maintaining this repository and commits/replies are few and far between, do you think we should discuss the future of this project? It's such a wonderful tool and it would be a shame if people stop using it because of these problems going on for too long. At least, the roadmap should be clear so that people know that the tool will still be around a year from now.

All 10 comments

I'm having the same issue 🙁

Same.

I'm having the same issue here as well. I changed the package to point to master and that seemed to resolve the issue. Looks like the update of CwlPreconditionTesting on master to version 2.0.0 fixes this issue.

Use version 8.0.2, which is still good to use

It was also breaking for me, using version 8.0.2 quickly fixed it :)

8.0.2 rolls back to another show stopping bug where toEventually hangs when you build with SPM - (basically the compiler optimizes away a required code path)
Issue 708

@ikesyo Since you seem to be the only one maintaining this repository and commits/replies are few and far between, do you think we should discuss the future of this project? It's such a wonderful tool and it would be a shame if people stop using it because of these problems going on for too long. At least, the roadmap should be clear so that people know that the tool will still be around a year from now.

Looks like this doesn't happen on Xcode 11.4 but should be addressed anyway for Xcode 11.3 users. I submitted a fix in #729.

v8.0.7 has been released, please try it. I'm sorry for the inconvenience 🙇

Wow, I will try it out asap!

Was this page helpful?
0 / 5 - 0 ratings