I am trying to test a method in my structure and I wrote a simple test case. But it fails, and xcode gives me an error:
ld: framework not found V***ments for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
I double-checked that the framework was added to the built-in binary, as well as to the assembly phase section.
Here is my test file:
import XCTest @testable import MYClass class MYClassTests: XCTestCase { override func setUp() { super.setUp()
When I uncomment these two lines, I get a Framework error that was not found.
I also tried the following methods:
- The frame is added to the Embedded binaries section.
- Embeddable contains fast code installed in
YES , since the environment contains fast code. - The executable prefix in the "Packaging" section is empty. (It is not installed in @ executable_path / Frameworks)
The path to find the path when linking is set to
$ (inherited) @ executable_path / Wireframes @ Loader_path / Wireframes
I also tried to clean up the project and restart xcode and create a framework.
- Remote derived data.
I am not sure what the problem is. Any ideas?
source share