mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
BrowserStack support (#561)
* BrowserStack support * Add fastlane step to automatically upload builds to BrowserStack * Add error log for when Application Groups are not available * Use better applicationSupportDirectory API
This commit is contained in:
@@ -28,8 +28,14 @@ extension URL {
|
||||
/// The URL of the primary app group container.
|
||||
static var appGroupContainerDirectory: URL {
|
||||
guard let url = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: InfoPlistReader.main.appGroupIdentifier) else {
|
||||
fatalError("Should always be able to retrieve the container directory")
|
||||
MXLog.error("Application Group unavailable, falling back to the application folder")
|
||||
// Browserstack doesn't properly handle AppGroup entitlements so this fails, presumably because of the resigning happening on their side
|
||||
// Try using the normal app folder instead of the app group
|
||||
// https://www.browserstack.com/docs/app-automate/appium/troubleshooting/entitlements-error
|
||||
|
||||
return URL.applicationSupportDirectory.deletingLastPathComponent().deletingLastPathComponent()
|
||||
}
|
||||
|
||||
return url
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user