https://github.com/browserstack/xcuitest-sample-browserstack
https://github.com/browserstack/xcuitest-sample-browserstack
Last synced: 8 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/browserstack/xcuitest-sample-browserstack
- Owner: browserstack
- Created: 2018-01-05T10:36:00.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2023-07-03T14:36:28.000Z (over 2 years ago)
- Last Synced: 2025-04-22T21:06:48.185Z (11 months ago)
- Language: Swift
- Size: 147 KB
- Stars: 5
- Watchers: 9
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ios-sample-app
A sample iOS app supporting [XCUI Tests](https://developer.apple.com/library/content/documentation/DeveloperTools/Conceptual/testing_with_xcode/chapters/09-ui_testing.html) on [Browserstack](https://www.browserstack.com/).

## How to run
1. Select the device as "Generic iOS device"
2. Product -> Clean
3. Build the ipa
1. Product -> Archive
2. Window -> Organizer -> Select the most recently created archive -> Distribute App
3. Export for "Development"
4. Select the location where you want the ipa to be saved
4. Build the XC UI Tests zip
1. Product -> Build For -> Testing
2. From the shell, go to the DerivedData directory (normally ~/Library/Developer/Xcode/DerivedData/)
3. cd Sample_iOS-<random characters>
4. cd Build/Products/Debug-iphoneos/
5. zip -r SampleUITests.zip SampleXCUITests-Runner.app/
5. Use the ipa, and zip file to run on Browserstack