johnno1962 / InjectionNext

Fourth evolution of Code Injection for Xcode
MIT License
76 stars 2 forks source link

Build Error: Unknown argument: '-framework XCTest -lXCTestSwiftSupport' #16

Closed yudonlee closed 3 months ago

yudonlee commented 3 months ago

Hello,I encountered the following compilation error while setting up the real device. Unknown argument: '-framework XCTest -lXCTestSwiftSupport'

The reproduction steps are as follows:

  1. Create a new project.

  2. Add XCTest framework on Build Phase

image
3. Add -framework XCTest -lXCTestSwiftSupport to the Other Linker Flags setting.
image
4. Compile the project and encounter the error. 
`Framework 'XCTest -IXCTestSwiftSupport' not found`

Is there anything I did wrong?

johnno1962 commented 3 months ago

Hi, XCTest -IXCTestSwiftSupport need to be on separate lines though why are you adding them there?? Have you checked the "Enable testing on device" option by mistake?