bluepill: (BLUEPILL) Failed to read data for UIABCTests - ERROR: Failed to load some test bundles
Hello, First time using bluepill.
I installed bluepill through brew install bluepill
I build my app by running the following command:
xcodebuild -workspace MY.xcworkspace -scheme "UIABCTests" -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 14 Pro Max' build-for-testing | xcbeautify
I got the xctestrun from Library/Developer/Xcode/DerivedData/name/Build/Products/UIABCTests_iphonesimulator16.0-arm64.xctestrun
AND the app from Library/Developer/Xcode/DerivedData/name/Build/Products/Debug-iphonesimulator/NameApp.app
Running this command:
bluepill --xctestrun-path ./UIABCTests_iphonesimulator16.0-arm64.xctestrun -o ./output/
OR
{
"app": "~/Desktop/NameApp.app",
"xctestrun-path": "~/Desktop/UIABCTests_iphonesimulator16.0-arm64.xctestrun",
"output-dir": "./build/"
}
Also tried adding "unsafe-skip-xcode-version-check": "yes" to the abovejson` but did not work.
and also tried
bluepill --unsafe-skip-xcode-version-check YES --xctestrun-path UIABCTests_iphonesimulator16.0-arm64.xctestrun -o ./output
no luck either 😦.
gives me this error
2022-10-28 18:35:16.764 bluepill[37085:345815] Debug Enabled == 0
{37085} 20221028.183517 [ INFO ] (BLUEPILL) Using xctestrun configuration
{37085} 20221028.183517 [ ERROR ] (BLUEPILL) Failed to read data for UIABCTests
ERROR: Failed to load some test bundles
bluepill version: Bluepill v5.12.1 xcode version: Version 14.0.1 (14A400) OS: 13.0 (22A380)
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 20 (5 by maintainers)
So I just tried it with the app you uploaded and it seems to work. All I did was download
Simple Appand run:then
and it works for me. This is with the latest bluepill (built from
master) and Xcode 14.0.1. I even diffed the.xctestrunfile produced by Xcode for my build with the one you uploaded and they both look identical.Like I said before, I think you’ll need to build it and fix the
errPtrto see what’s going on in your machine.@parikhparth23 you’d need to change the arguments of the bptestrunner repository rule and use a newer version of Bluepil though.
@parikhparth23 good question, we should have put some documentation for the Bazel rule.
There are three steps
@ob i am running the brew version and not compiling locally. So I don’t think adding
errPtrwill help.