This shows an issue on iOS 11 where the accessibilityIdentifier on a UIBarButtonItem does not show up when e.g. UI testing
- Fix possible signing stuff (set your account, change bundle identifier etc)
- Set a breakpoint where mentioned in the UI test comment
- Pick iOS 9 or 10 simulator
- Run the testExample in the UI test
- Write "po app" to print the UI data
- Observe the accessibilityIdentifier
- Pick iOS 11 simulator
- Run the testExample in the UI test
- Write "po app" to print the UI data
- Observe that the accessibilityIdentifier is missing from the output
In case you are lazy, here are screenshots.