Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't run xctest on macOS app - couldn’t be loaded because it is damaged or missing necessary resources

Please do help me on this scenario. I saw several post related to this, but could not able to resolve the issue with my mac App without pods.

Project is several years old, developed in macOS(Objective C). Now I am trying with XCTest for unit testing. Using Xcode 7.3.1, I am not able to run tests classes.

This project is to create frame work. Project is working fine, only issue is with the testing. We are not supposed to do Pods or some other alternatives.

Console window shows below points:

xctest[35530:345970] The bundle “BaseLibTests” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle. xctest[35530:345970]dlopen_preflight(/Users/12345678/Documents/Modify/Cocoa/Projects/BaseLib/build/Debug/BaseLibTests.xctest/Contents/MacOS/BaseLibTests): Library not loaded: @executable_path/../Frameworks/FreeTDS.framework/Versions/A/FreeTDS Referenced from: /Users/12345678/Documents/Modify/Cocoa/Projects/BaseLib/build/Debug/BaseLib.framework/Versions/Current/BaseLib Reason: no suitable image found. Did find: /Library/Frameworks/FreeTDS.framework/Versions/A/FreeTDS: no matching architecture in universal wrapper) Program ended with exit code: 82

like image 296
Anand Avatar asked Nov 07 '22 20:11

Anand


1 Answers

@Anand For the 3rd Point: Please check the build settings.

Please make sure its either set to Standard Architectures (64-bit Intel) (x86_64) - $(ARCHS_STANDARD) or set to represent proper architectures.

settings

To debug this more, could you please copy paste the exact error you are facing and share the build env variables?

like image 195
bikram990 Avatar answered Nov 14 '22 22:11

bikram990