Detect issues like logic failures, UI problems, and performance regressions by running tests on your app.

Posts under Testing tag

109 Posts
Sort by:
Post not yet marked as solved
0 Replies
475 Views
hi all, App is in "Pending Developer Release" mode how do i test in-app purchase and subscription?. my fear is that if it wont work than it would be a problem. in testflight i could test it with sandbox user but in pending developer release mode before release how could i test it? should i test it with testflight version submitted for release.? but in this tesflight version don't ask for real user in-app purchase thing. it shows same sandbox user and testing mode. my fear is if we release this pending developer release version app will it ask for money from our user? how do i test and convince my business partners that it would ask real money for in app purchase when we release this pending developer release mode.i am new so dont know much i am in doubt too. how do we access this pending developer release app before releasing to world and test it for payment related things and get confirmation to release. please help.
Posted
by
Post not yet marked as solved
2 Replies
854 Views
Hi friends, I have a problem suddenly by archiving my app in XCode 14.3 I'm getting this errors: Showing All Errors Only Prepare build note: Building targets in dependency order error: Multiple commands produce '/Users/razvanu/Library/Developer/Xcode/DerivedData/Runner-aeiwqtydtcicmbcjpyzoxtfwhzig/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework' note: Target 'GoogleUtilities-00567490' (project 'Pods') has create directory command with output '/Users/razvanu/Library/Developer/Xcode/DerivedData/Runner-aeiwqtydtcicmbcjpyzoxtfwhzig/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework' note: Target 'GoogleUtilities-54e75ca4' (project 'Pods') has create directory command with output '/Users/razvanu/Library/Developer/Xcode/DerivedData/Runner-aeiwqtydtcicmbcjpyzoxtfwhzig/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework' Multiple commands produce '/Users/razvanu/Library/Developer/Xcode/DerivedData/Runner-aeiwqtydtcicmbcjpyzoxtfwhzig/Build/Intermediates.noindex/ArchiveIntermediates/Runner/IntermediateBuildFilesPath/UninstalledProducts/iphoneos/GoogleUtilities.framework' I tried all the solutions that I found, nothing works for me :( please guide me how to fix this issue, thanks in advance!
Posted
by
Post marked as solved
1 Replies
415 Views
My app serves as a way to configure a machine (for example, a specific heart monitor or printer model). Once I send my app for review, Apple will want to test the app as part of the review process. But without the machine, testing is not possible. (That's literally the first step when you start the app.) So I want to know the process. Will I have to ship Apple that machine? I'm asking you this because I have to order one and that can take time.
Posted
by
Post not yet marked as solved
4 Replies
469 Views
The line with the comment below has the error and says the error I am receiving. If you need to see anything else, do not hesitate to ask. I'd be happy to provide it. struct ContentView: View { @EnvironmentObject var myData: MyData @EnvironmentObject var userViewModel: UserViewModel var body: some View { VStack { NavigationSplitView { List { NavigationLink { MainApp() .navigationTitle ("Counter") } label: { HStack { Text("Counter") .font(.largeTitle) .foregroundColor(Color.red) Spacer() Image(systemName: "plus.forwardslash.minus") .font(.largeTitle) .foregroundColor(Color.red) .onTapGesture { myData.totalLeft = myData.total - myData.counter } } } NavigationLink { Settings() .navigationTitle("Settings") } label: { HStack { Text("Settings") .font(.largeTitle) .foregroundColor(Color.red) Spacer() Image(systemName: "gear") .font(.largeTitle) .foregroundColor(Color.red) } } NavigationLink { Metrics() .navigationTitle("Metrics") } label: { HStack { Text("Metrics") .font(.largeTitle) .foregroundColor(Color.red) Spacer() Image(systemName: "chart.bar") .font(.largeTitle) .foregroundColor(Color.red) } } NavigationLink { ProfileView() .navigationTitle ("Account") .environmentObject(userViewModel) //Thread 1: Fatal error: No ObservableObject of type UserViewModel found. A View.environmentObject(_:) for UserViewModel may be missing as an ancestor of this view. } label: { HStack { Text("Account") .font(.largeTitle) .foregroundColor(Color.red) Spacer() Image(systemName: "person") .font(.largeTitle) .foregroundColor(Color.red) } } } } detail: { Text("Select a Page") } } .environmentObject(userViewModel) } } import Foundation import FirebaseAuth import FirebaseFirestore import FirebaseFirestoreSwift class UserViewModel: ObservableObject { @Published var user: User? private let auth = Auth.auth() private let db = Firestore.firestore() var uuid: String? { auth.currentUser?.uid } var userIsAuthenticated: Bool { auth.currentUser != nil } var userIsAuthenticatedAndSynced: Bool { user != nil && userIsAuthenticated } private func sync() { guard userIsAuthenticated else { return } let docRef = db.collection("users").document(self.uuid!) docRef.getDocument { (document, error) in guard let document = document, document.exists, error == nil else { print("Error retrieving document: \(error!)") return } do { let data = document.data() let jsonData = try JSONSerialization.data(withJSONObject: data as Any, options: .prettyPrinted) let user = try JSONDecoder().decode(User.self, from: jsonData) self.user = user } catch { print("Sync error: \(error)") } } } private func add (_ user: User) { guard userIsAuthenticated else { return } do { let userData = try JSONSerialization.jsonObject(with: try JSONEncoder().encode(user), options: []) as? [String: Any] let _ = try db.collection("users").document(self.uuid!).setData(userData ?? [:]) } catch { print("Error adding: \(error)") } } private func update() { guard userIsAuthenticatedAndSynced else { return } do { let userData = try JSONSerialization.jsonObject(with: try JSONEncoder().encode(user), options: []) as? [String: Any] let _ = try db.collection("users").document(self.uuid!).setData(userData ?? [:]) } catch { print("Error updating: \(error)") } } } struct MyApp: App { @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate @StateObject var userViewModel = UserViewModel() var body: some Scene { WindowGroup { ContentView() .environmentObject(MyData()) .environmentObject(userViewModel) } } }
Posted
by
Post not yet marked as solved
5 Replies
636 Views
This is for MacOS My app posts errors during its operation. Two years ago the following used to be able to test whether the alert was correct (or missing) func isRightAlert(alertImgStr: String, target: String) -> Bool{ let app = XCUIApplication() let ackdialog = app.dialogs["alert"] let imageexists = ackdialog.images[alertImgStr/*"CaptureEclipse alert"*/].exists //let full = app.debugDescription XCTAssert(imageexists) let acklist = ackdialog.children(matching: .staticText) //NSLog( String(acklist.count)) var found = false NSLog("Alert>>>>>>>>>>>") for index in 0...acklist.count - 1{ <see if is is one of the expected ones> } <other tests> } Now that I am on Ventura with XCode 14.3 it is no longer able to detect the alert. ackdialog returns as not found. imageexists is false which triggers the Assert The alert is on the screen when the timeouts I added trigger app.debugDescription justs lists all of my menu entries These are my own alerts (NSAlert) and not system alerts.
Posted
by
Post not yet marked as solved
0 Replies
949 Views
I tried to run my application in Visual Studio Code app and Android Studio app, but in both apps I got this error message "Error running pod install, error launching application on iPhone 14 Pro" I tried many solution from YouTube, GitHub, and many programming websites, In all solutions, I get an error in one of the steps, so I stop and look for another solution but nothing work. My device is MacBook Pro 2022 If anyone faced the same problem or knowing how to solve it, I will be very thankful.
Posted
by
Post not yet marked as solved
2 Replies
554 Views
Logic keeps crashing after anywhere between few minutes of using a project and half an hour. I'm using a Mac Mini M1 The issue started when I was using Monterey and have since updated it to Ventura 13.4 but it has not resolved the issue. Things I've tried: deleting all third party plugins and re-installing them opening logic in Rosetta starting a new project and copying the tracks over from the old project updating my Mac Below is the beginning of most recent crash report I've received: Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 ??? 0x7ff8aa03a9a8 ??? 1 libsystem_kernel.dylib 0x7ff81a3ff1f2 __pthread_kill + 10 2 libsystem_pthread.dylib 0x7ff81a436ee6 pthread_kill + 263 3 libsystem_c.dylib 0x7ff81a35db45 abort + 123 4 libsystem_malloc.dylib 0x7ff81a274752 malloc_vreport + 888 5 libsystem_malloc.dylib 0x7ff81a289a08 malloc_zone_error + 183 6 libsystem_malloc.dylib 0x7ff81a28970e _tiny_check_and_zero_inline_meta_from_freelist + 211 7 libsystem_malloc.dylib 0x7ff81a269fbc tiny_malloc_from_free_list + 1507 8 libsystem_malloc.dylib 0x7ff81a2693a2 tiny_malloc_should_clear + 358 9 libsystem_malloc.dylib 0x7ff81a26800a szone_malloc_should_clear + 66 10 libc++abi.dylib 0x7ff81a3f2b7a operator new(unsigned long) + 26 11 Lindell 80 Channel 0x142ee2aa9 0x142df7000 + 965289 12 Lindell 80 Channel 0x142e0fc29 0x142df7000 + 101417 13 Lindell 80 Channel 0x142e201be 0x142df7000 + 168382 14 Lindell 80 Channel 0x142e29a58 0x142df7000 + 207448 15 AudioToolboxCore 0x7ff81bf61aed APComponent::newInstance(unsigned int, bool, void (OpaqueAudioComponentInstance*, int) block_pointer) + 2257 16 AudioToolboxCore 0x7ff81c061205 instantiate(OpaqueAudioComponent*, unsigned int, bool, void (OpaqueAudioComponentInstance*, int) block_pointer) + 338 17 AudioToolboxCore 0x7ff81c061655 __AudioComponentInstanceNew_block_invoke + 88 18 AudioToolboxCore 0x7ff81bee0d83 Synchronously + 87 19 AudioToolboxCore 0x7ff81c06143d AudioComponentInstanceNew + 206 20 MAAudioEngine 0x112a94ab5 MAAEAudioUnit::AUxPlugInFactory::CreateAUHostAdapter(MAAEAudioUnit::AU2PlugIn*, bool) + 645 21 MAAudioEngine 0x112a70f6a MAAEAudioUnit::AU2PlugIn::AU2PlugIn(MAAEAudioUnit::AUxPlugInFactory*, bool) + 2122 22 MAAudioEngine 0x112a943bb MAAEAudioUnit::AUxPlugInFactory::CreatePlugIn(int) + 507 23 MAAudioEngine 0x112860690 MD::NewPlug(CPlugIn**, unsigned int, unsigned int, unsigned int, bool, long, long, long, bool, bool, bool, bool) + 208 24 Logic Pro X 0x10098e6a4 0x100632000 + 3524260 25 Logic Pro X 0x10080161e 0x100632000 + 1898014 26 Logic Pro X 0x1007ffca4 0x100632000 + 1891492 27 Logic Pro X 0x1007fea41 0x100632000 + 1886785 28 Logic Pro X 0x1007d09a6 0x100632000 + 1698214 29 Logic Pro X 0x1007d5bc1 0x100632000 + 1719233 30 Logic Pro X 0x1007d1907 0x100632000 + 1702151 31 Logic Pro X 0x1008711db 0x100632000 + 2355675 32 Logic Pro X 0x1008736c2 0x100632000 + 2365122 33 Logic Pro X 0x1013d1f86 0x100632000 + 14286726 34 MAMixer 0x1107d0ae8 0x11062d000 + 1719016 35 MAGUI 0x10f01e3ee 0x10ef1e000 + 1049582 36 MAGUI 0x10f04b20a 0x10ef1e000 + 1233418 37 Logic Pro X 0x100b631e0 0x100632000 + 5444064 38 AppKit 0x7ff81d6f0331 -[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:] + 4330 39 AppKit 0x7ff81d667b6f -[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:] + 404 40 AppKit 0x7ff81d6677bf -[NSWindow(NSEventRouting) sendEvent:] + 345 41 Logic Pro X 0x100a70267 0x100632000 + 4448871 42 AppKit 0x7ff81d666199 -[NSApplication(NSEvent) sendEvent:] + 345 43 Logic Pro X 0x101d1d2e4 0x100632000 + 24031972 44 Logic Pro X 0x101d1cdc5 0x100632000 + 24030661 45 Logic Pro X 0x101d170de 0x100632000 + 24006878 46 Logic Pro X 0x101d1d31e 0x100632000 + 24032030 47 Logic Pro X 0x101d1cdc5 0x100632000 + 24030661 48 AppKit 0x7ff81d920ace -[NSApplication _handleEvent:] + 65 49 AppKit 0x7ff81d4f5b0d -[NSApplication run] + 623 50 AppKit 0x7ff81d4c9d02 NSApplicationMain + 817 51 Logic Pro X 0x1010a1d6d 0x100632000 + 10943853 52 dyld 0x2030da41f start + 1903
Posted
by
Post not yet marked as solved
0 Replies
560 Views
Good Afternoon! Ever since updating to the latest xcode version (14.3), XCUIApplication no longer sees the entirety of the app under test, causing tests to fail and making writing some new tests impossible. Before 14.3, all expected elements were located just fine. Full troubleshooting steps tried: Check debugDescription provided by XCUIApplication Result: elements that exist within the app are omitted. These elements include images, staticTexts, buttons, and otherElements Ensure the app isn't the problem Re-clone app from repository into fresh git folder Build a branch that previously passed UI tests Result: Previously passing branches fail tests that validate the missing elements. The missing elements don't appear in the debugDescription but are free to be interacted with through UI actions Determine if previous xcode versions function Build previously functioning branch using xcode 14.2 and run tests Result: Tests pass Rule out environment problems Deployed tests to differing simulators Deployed tests to different iOS versions Deployed tests to physical devices Result: Tests pass if on xcode 14.2, fail on 14.3. The debugDescription omits the same elements on all devices I'm not sure what else to try to prompt the return of the elements. Is there something else I can try? Did xcode 14.3 break functionality of XCUIApplication? I appreciate any help available, Jon
Posted
by
Post not yet marked as solved
2 Replies
1.4k Views
The new test report, with the automatic video recording and scrubber, is great. I'm setting up different configurations for different languages to improve localization testing, but I was wondering if it was possible to make the simulator device type part of the configuration. For example, I'd like to have a single test plan with an "iPhone 14" test plan, an "iPad Air" test plan, etc. Then I would just press Cmd-U, and Xcode would run through each device in sequence, leaving me with videos of each test run that I could review in the test report. Is that possible?
Posted
by
Post not yet marked as solved
1 Replies
1.3k Views
I'm working on a weather and news app, and when I run the app on my device, it says "This method can cause UI unresponsiveness if invoked on the main thread. Instead, consider waiting for the -locationManagerDidChangeAuthorization: callback and checking authorizationStatus first." I am getting the error, what should I do? This error message appears on two lines with the CLLocationManager.locationServicesEnabled() else { method. I have added the codes of the page where I got the error below. I am using openweathermap API as weather API and newsapi API as news API. import Foundation import CoreLocation import Combine typealias LocationNameResultType = Result&lt;String, Error&gt; class WeatherService: WeatherServiceProtocol { private let apiProvider = APIProvider&lt;WeatherEndpoint&gt;() private let locationManager = CLLocationManager() private lazy var location: CLLocation? = locationManager.location init() { startUpdatingLocation() } func getCityName(completion: @escaping (LocationNameResultType) -&gt; Void) { guard let location = location else { completion(.failure(WeatherServiceErrors.locationNil)) return } let geocoder = CLGeocoder() geocoder.reverseGeocodeLocation(location) { (placemarks, error) in if let error = error { completion(.failure(error)) } guard let placemark = placemarks?.first, let cityName = placemark.locality else { completion(.failure(WeatherServiceErrors.placeMarkNil)) return } completion(.success(cityName)) } } func requestCurrentWeather() -&gt; AnyPublisher&lt;Data, Error&gt; { locationManager.requestWhenInUseAuthorization() guard CLLocationManager.locationServicesEnabled() else { return Fail(error: WeatherServiceErrors.userDeniedWhenInUseAuthorization) .eraseToAnyPublisher() } locationManager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters locationManager.startUpdatingLocation() guard let location = location else { return Fail(error: WeatherServiceErrors.locationNil) .eraseToAnyPublisher() } return apiProvider.getData( from: .getCurrentWeather(latitude: location.coordinate.latitude, longitude: location.coordinate.longitude) ) .eraseToAnyPublisher() } deinit { stopUpdatingLocation() } } private extension WeatherService { func startUpdatingLocation() { locationManager.requestWhenInUseAuthorization() guard CLLocationManager.locationServicesEnabled() else { return } locationManager.desiredAccuracy = kCLLocationAccuracyNearestTenMeters locationManager.startUpdatingLocation() } func stopUpdatingLocation() { locationManager.stopUpdatingLocation() } }
Posted
by
Post not yet marked as solved
0 Replies
332 Views
Hi, I have an app where we are implementing in-app provisioning to Apple Wallet. I am trying to obtain the list of tests needing to be executed successfully for Apple approval. I've had no luck in trying to locate in the Apple developer pages. Any help is appreciated in pointing me the URL or list of test cases.
Posted
by
Post not yet marked as solved
1 Replies
818 Views
After updating to iOS17 Developer Beta 2 I started to get some weird screen glitches. At first it started with 3 evenly spaced out white lines horizontally across the screen. Then it started glitching and randomly going black. Took it into the apple store and they tested the hardware with no issues. Was told it was likely due to the software. Now the phone display will not turn on. I can feel the haptics when the up volume and power are pressed but then there is no response. Hopefully I'm able to update once the public beta comes out without having to resort to a full reset.
Posted
by
Post not yet marked as solved
0 Replies
618 Views
When testing our IAP subscription in a new locale, our QA team noticed that the amount displayed in our app (which came from a SKProduct, from Apple's IAP servers) differed significantly from what was shown in Apple's sandbox subscription confirmation modal. The amount in our app was correct, but the modal showed the wrong amount. I haven't seen this before, and can't come up with much of an explanation for why this happened. Is this a bug in Sandbox subscription testing for IAP?
Posted
by
Post not yet marked as solved
0 Replies
778 Views
HELLO! I just bought a MacBook Pro M2 32g ssd 1t Ram thinking I had the best machine to work with videos and video's programs. I'm a visual artist, I use Resolume Arena and when I moved on the new computer my program, it starts to crash! I tried several times to install-uninstall the program and I don't know why is making that. This is what appears: Translated Report (Full Report Below) Process: Arena [935] Path: /Applications/Resolume Arena 6/Arena.app/Contents/MacOS/Arena Identifier: com.resolume.arena Version: 6.1.5 (6.1.5.68469) Code Type: X86-64 (Translated) Parent Process: launchd [1] User ID: 501 Date/Time: 2023-06-30 06:26:25.5102 +0200 OS Version: macOS 13.4 (22F66) Report Version: 12 Anonymous UUID: BBEB6B45-F295-0C98-2890-2A64E6E53977 Sleep/Wake UUID: AD36FAD9-7084-4522-9FA0-015CEAC0ABA5 Time Awake Since Boot: 230 seconds Time Since Wake: 12 seconds System Integrity Protection: enabled Crashed Thread: 9 Exception Type: EXC_ARITHMETIC (SIGFPE) Exception Codes: 0x0000000000000001, 0x0000000000000000 Termination Reason: Namespace SIGNAL, Code 8 Floating point exception: 8 Terminating Process: exc handler [935] Thread 0:: Juce Message Thread Dispatch queue: com.apple.main-thread 0 ??? 0x7ff8909e69a8 ??? 1 libsystem_kernel.dylib 0x7ff800da6fbe __semwait_signal + 10 2 libsystem_c.dylib 0x7ff800c99585 nanosleep + 196 3 Arena 0x1051a4369 0x104c11000 + 5845865 4 Arena 0x1051a3c9e 0x104c11000 + 5844126 5 Arena 0x105119e60 0x104c11000 + 5279328 6 Arena 0x105119b85 0x104c11000 + 5278597 7 Arena 0x105111c87 0x104c11000 + 5246087 8 Arena 0x1055e7406 0x104c11000 + 10314758 9 Arena 0x1055e6c5c 0x104c11000 + 10312796 10 Arena 0x1055e6323 0x104c11000 + 10310435 11 Arena 0x105398455 0x104c11000 + 7894101 12 Arena 0x1058d289e 0x104c11000 + 13375646 13 Arena 0x105736756 0x104c11000 + 11687766 14 Arena 0x1051ed004 0x104c11000 + 6144004 15 Arena 0x1052dc7e1 0x104c11000 + 7124961 16 Arena 0x1051ecf14 0x104c11000 + 6143764 17 Arena 0x1051eceaf 0x104c11000 + 6143663 18 dyld 0x2067d841f start + 1903 Thread 1:: com.apple.rosetta.exceptionserver 0 runtime 0x7ff7ffdb0694 0x7ff7ffdac000 + 18068 Thread 2: 0 runtime 0x7ff7ffdce87c 0x7ff7ffdac000 + 141436 Thread 3: 0 runtime 0x7ff7ffdce87c 0x7ff7ffdac000 + 141436 Thread 4: 0 runtime 0x7ff7ffdce87c 0x7ff7ffdac000 + 141436 Thread 5: 0 ??? 0x7ff8909e69a8 ??? 1 libsystem_kernel.dylib 0x7ff800da70ee __psynch_cvwait + 10 2 libsystem_pthread.dylib 0x7ff800de3758 _pthread_cond_wait + 1242 3 Arena 0x1050707dc 0x104c11000 + 4585436 4 Arena 0x104fd5afe 0x104c11000 + 3951358 5 Arena 0x105075907 0x104c11000 + 4606215 6 libsystem_pthread.dylib 0x7ff800de31d3 _pthread_start + 125 7 libsystem_pthread.dylib 0x7ff800ddebd3 thread_start + 15
Posted
by
Post not yet marked as solved
1 Replies
547 Views
Example Image: Expected Behavior: When an XCUIElement is rendered from a screen with (Initial Conditions): An ImageView with.. isUserInteractionEnabled = YES… IsAccessibilityElement = YES… A nested button… isUserInteractionEnabled = YES… IsAccessibilityElement = YES… Assigned to the ImageViews accessibility elements array XCUIElement’s print statement includes the nested button Current Behavior: When an XCUIElement is rendered from a screen with: (above Initial Conditions) XCUIElement’s print statement only include the ImageView Attempted Fixes: Combinations of the Initial Conditions: Attempted all combinations of Initial Condition variable values. (ie: myImageView.accessibilityElements = [imageView, nestedButton] myImageView.accessibilityElements = [nestedButton] isUserInteractionEnabled = YES/NO [for both] IsAccessibilityElement = YES/NO [for both] etc…) Debug Print: Image View with No Descendants - Image, 0x7fa875d23e80, {{172.7, 292.7}, {45.0, 41.7}}, label: 'demo image' po element.images and po element.buttons - Find: Descendants matching type Image Output: { Image, 0x7fa876e14e70, {{-8.0, 99.0}, {136.7, 109.3}} Image, 0x7fa876e14f80, {{-8.0, 741.7}, {136.7, 102.3}} Image, 0x7fa876e13da0, {{269.7, 737.0}, {136.3, 123.0}} Image, 0x7fa876e1a060, {{172.7, 292.7}, {45.0, 41.7}}, label: 'demo image' } Output: { Button, 0x7fa875c12740, {{0.0, 47.0}, {68.0, 44.0}}, label: 'myApp UIKit' Button, 0x7fa875c24f00, {{338.0, 47.0}, {44.0, 44.0}}, identifier: 'Settings Button', label: 'Settings' Button, 0x7fa875c2c800, {{175.0, 533.0}, {40.0, 40.0}} Button, 0x7fa875c2cf30, {{183.0, 541.0}, {24.0, 24.0}} Button, 0x7fa875c2fa20, {{40.0, 659.3}, {153.0, 44.0}}, label: 'Left' Button, 0x7fa875c30cd0, {{197.0, 659.3}, {153.0, 44.0}}, label: 'Right' } Comparing the coordinates of the parent image view and the nested button, the button isn't here. The 24x24 button that appears comes from another view on the same screen, noting the ample y coordinate from the parent image view. Request: Request that Apple, in the spirit of XCUI framework being to be near to human experience include this common design case
Posted
by
Post not yet marked as solved
1 Replies
636 Views
Several of our UI tests started failing when we switched over to M2 Macs... The issue with the affected tests seems to be that have a element.swipeLeft() in them, the swipeLeft doesn't seem to work the same... Is there a fix to the swipeLeft() issue yet? If not, is there an easy way to programmatically test if we are running on an Apple Silicon Mac? Any other ideas? Thank you!
Posted
by
Post not yet marked as solved
0 Replies
367 Views
I'm trying to release a version for external testers in TestFlight. But at the contact form it's simply not accepting any kind of phone number... I've tried various types of phone numbers but none passes... I'm from Brazil, so basically our phone number works like this: +55 (XX) XXXXX-XXXX
Posted
by
Post not yet marked as solved
2 Replies
1.6k Views
I'm having problems with UI tests on an M1 runner using Xcode 14.3.1. In my project, I need to build using the Rosetta simulator because I have a dependency that is not updated to support the arm simulator. This dependency relies on OpenCV." This is the command that I use when I want to run UI tests on CI: xcodebuild ARCHS=x86_64 clean test -scheme UITests -configuration Debug -destination 'id=50E9C593-9A40-4E4D-B58D-1DE437CFBE3A' -parallel-testing-enabled YES -parallel-testing-worker-count 3 -maximum-concurrent-test-simulator-destinations 4 -test-iterations 3 -retry-tests-on-failure And this code run only with 1 clone of simulator. Anyone know why?
Posted
by
Post not yet marked as solved
1 Replies
1.2k Views
In Xcode 14, there seem to be two ways to configure how any particular piece of source code from the app module is available in a test target: Add the source file to both the app target and the test target Add the source file only to the app target, import the app module into each test class, and configure the test target to run use the app as the Host Application (including checking the 'Allow testing Host Application APIs' checkbox) Going with the first method seems to be better in my testing, as it produces a much faster run time. Option (2) when using the default (and very much desired) parallelization setting causes multiple simulator launches, which slows things down terribly. The downside of option (1) is that we'll be compiling source files twice. We really want to be testing precisely what was compiled in the app module, but it seems the lesser issue to contend with. So, neither of these options seem ideal to me – what we really want is a dumb anonymous test target that simply links to the compiled app module. This would avoid the extra compile step, allow me to avoid using a Host Application, and test precisely what's compiled into the app module. Am I missing something, or is there no way to achieve this?
Posted
by
Post not yet marked as solved
0 Replies
498 Views
I have setup and verified a sandbox account for testing. I have received both email and text verification and received the email noting that the account has been enabled for two-factor. Yet I receive the error below on both iOS and macOS devices. Can someone shed some light on this matter? Thanks! Steve iTunes Account creation not allowed This Apple ID cannot be used with the iTunes Store at this time. Please try again later
Posted
by