-
Notifications
You must be signed in to change notification settings - Fork 57
pxctest - build and run-tests issue #8
Comments
it is same for me
|
All the projects I could get my hand on were generating the
It looks like you're trying to run some test target that does not have a Host Application. Unfortunately this is not supported currently. |
I'm facing the same problem: the xctestrun file is not being generated, despite following the instructions. This is a complex project with several targets and schemes and don't know where to start looking. Any tips? |
if you have code coverage enabled, the xctestrun gets placed in the derived data (despite you asking it to). e.g.
Then check specifying your own derived data path and extracting it from there seems OK. |
You are right @ollieatkinson. Many thanks. I do have code coverage enabled. Using the derived data custom path my xctestrun file is located at Which has helped me realize that I can find the file just as fine without using the where (using Xcode 8.2.1) |
Cool that you found a solution. Would be great to have this in the readme, seems to be a common pitfall you can hit. |
Any idea what's going on here? The build succeeded but it didn't generate $PWD/build/Products/. xctestrun file. But an .xctest run file is generated at Build/Intermediates/CodeCoverage/Products/MyApp_iphonesimulator10.1-x86_64.xctestrun, when run this location getting an error as shown below.
`
Xcode 8.1
Build version 8B62
xcodebuild
-IDEBuildLocationStyle=Custom
-IDECustomBuildLocationType=Absolute
-IDECustomBuildProductsPath="$PWD/build/Products"
-scheme 'MyApp'
-workspace 'MyApp.xcworkspace'
-destination 'platform=iOS Simulator,name=iPhone 5,OS=10.1'
build-for-testing
pxctest \
Error Domain=com.facebook.XCTestBootstrap Code=0 "Failed to find test host application" UserInfo={NSLocalizedDescription=Failed to find test host application, NSUnderlyingError=0x7f845045a1d0 {Error Domain=com.facebook.FBControlCore Code=0 "Could not obtain Bundle ID for app at path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest" UserInfo={NSLocalizedDescription=Could not obtain Bundle ID for app at path /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Agents/xctest}}}
`
The text was updated successfully, but these errors were encountered: