Automating Xcode' Debug > Simulate Location command

后端 未结 4 1964
鱼传尺愫
鱼传尺愫 2020-12-09 05:44

Is there any programmatic way to control the xcode > simulate location command? I have external location test scripts I\'d like to run, and ideally the test

4条回答
  •  时光说笑
    2020-12-09 06:40

    Not sure if it's exactly what you're after, but you can have different unit test bundles use different locations (or GPX files) by setting it up in the scheme.

    You could then have unit tests in each bundle which test what you need regarding that specific location.

    xctool can also just run the unit tests in a specific target using the -only option:

    path/to/xctool.sh \
      -workspace YourWorkspace.xcworkspace \
      -scheme YourScheme \
      test -only SomeTestTarget
    

提交回复
热议问题