UIAutomation: accessibilityIdentifier of a table cell not reflected in automation script. - ios5

Setting accessibilityIdentifier property of a table cell in Xcode 4.2 (iOS SDK 5.0).
The name is not reflected when accessed in automation Script (Instruments 4.2).

Related

Inserting text into UITextField on tvOS in a Xcode Cloud UI-Test

I am running a UI-Test on Xcode Cloud for a tvOS application (Apple TV), and part of the test includes a text insertion. Since Xcode Cloud automatically provides me with screenshots for every user interaction I can observe that nothing is inserted into the UITextField and this is my issue.
The functions that I use are:
// repeated for completing a string sequence
XCUIRemote.shared.press(.right) // left, up and down
..
..
XCUIRemote.shared.press(.select)
The screenshots capture focus movement between keys on the keyboard but executing the select action does not seem to work. This UI-test works locally on Xcode on my Macbook but this does not work in Xcode Cloud.

Xcode 12 Beta 3: App Store Connect Operation Error

ERROR ITMS-90475: "Invalid Bundle. Your app supports Multitasking on iPad, so you must include the UILaunchStoryboardName key in your bundle, 'com.Thunder-Flare.Expenses’. Learn more (https://developer.apple.com/library/content/documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW40)."
This application was made with SwiftUI interface and SwiftUI lifecycle
Click on new file and Launch Screen. Then get rid of the existing launch screen details on the plist file and add Launch screen interface file name, in string area add the file name.
Then design your storyboard however you like!

Unknown class [A Collection View Controller] in Interface Builder file

I wish to run iOS 6 programs on my iOS 5.1.1 iPad 1st generation, and all the UICollectionViews are all disappeared and debug console says
Unknown class collectionViewController in Interface Builder file
Is it because of incompatibility with UICollectionViews in iOS 5?
Correct. According to the documentation for the UICollectionView class, its availability is marked as "Available in iOS 6.0 and later." which means it does not exist in iOS 5.

How to set Interface Builder document versioning default to 4.2?

When I create a new xib in interface builder the Interface Builder Document (Versioning) development parameter is defaulting to xCode 4.1
Is there anyway to default this to xCode 4.2 - The reason I ask is I recently changed a project to use IOS 5 and 4.2 - The project was originally created in 4.1, and when I create a new xib and set the size of the view to "Form Sheet" it generates a waring:
Attribute Unavailable: Form Sheet simulated metrics are not available prior to Xcode 4.2.
I can fix the warning by changing the Document Version drop down in the property inspector to 4.2
You will have to modify directly the XCode templates :
/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/File Templates/User Interface - Contains templates when you choose the menu File->New...->New File...
/Developer/Platforms/iPhoneOS.platform/Developer/Library/Xcode/Templates/File Templates/User Interface - Contains templates when you choose the menu File->New...->New Project...
Edit the any xib you want by adding this inside <archive><data>:
<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaTouchPlugin.InterfaceBuilder3</string>
<real value="4200" key="NS.object.0"/>
</object>

Adding iPad XIB to a View Based Application Template Application in XCode 4

I've created a View Based Application in XCode4; when creating the application I selected iPhone as the Device Family:
The application was created with the following files:
I designed the UI on the TestushViewController.xib file and without adding any code in the Delegate files, the application is uploading immediately to the TestushViewController.xib view and I'm very happy about it.
Now I want to add an iPad xib. How do I do that?
(I knew how to do it in XCode 3, but I used some code in the Delegate file, and now if I try to use the same code it doesn't work because the template default implementation works differently - Apple uses #class TestushViewController and self.window.rootViewController = self.viewController and it goes directly to the iPhone.xib. I don't know how to go around it without changing the entire thing to the way it was done in XCode3)
You'll need to structure your code in a similar way that the Window Template does. The file structure that template uses when the "Universal" option is ticked at creation is:
App Name/
AppNameAppDelegate
iPhone/
AppNameAppDelegate_iPhone
MainWindow_iPhone.xib
iPad/
AppNameAppDelegate_iPad
MainWindow_iPad.xib
The iPhone and iPad AppDelegates are simply subclasses of the AppNameAppDelegate
#interface YourAppNameAppDelegate_iPhone : YourAppNameAppDelegate {}
In your target summary you can set what .xib file is initially loaded for each device. It is called the "Main Interface" and has a pulldown menu.
Quite frankly, if you're wanting to do a universal app (iPhone + iPad) it's probably easier just to start with the Window Template and add in your view controllers instead of starting with the View template and trying to change it up.