-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple commands produce '.../Info.plist' #25
Comments
Hmm, I am pretty sure this was required before. Maybe recent Xcode updates or something like that? Any idea? |
I have the same issue.
If I delete the Info.plist from the list of compiled files I've got another error:
The same error appear if I switch the build system to "Legacy build system". Another issue, the swift version 3.0 is set for some reason after retrofit_cordova_screenshots_ios command. It would be great to switch to 5.0. Because now I should fix it manually in XCode. |
This stackoverflow post contained a number of possible problems that could be causing the issue, but this one seemed like the best fit:
I'm currently running Xcode Version 11.3 (11C29), and when I manually run I haven't yet found anything that indicated when Xcode might have started to include use both of these in the output, but it looks like newer versions of Xcode are noticing the misconfiguration and reporting it by failing the build. My patch removes the Info.plist file from Build Phases -> Compile Sources and the build then works for me. |
@andrey3diq, I think there may be a couple of things here that are causing you trouble. First, can you elaborate on what you mean here by "recording doesn't work"?
It sounds like you are trying to generate a test through Xcode by recording your actions, but I don't believe that you can do that with apps that use web views (Cordova, Ionic, etc.). You have to write your UI tests manually and reference your UI elements using the accessibility labels ("aria-label" attributes in the HTML), for example: <!-- view.html -->
<button aria-label="btn-login">Login</button> // ui-snapshots.swift
app.webViews.buttons["btn-login"].tap() Next, how are you removing Info.plist from the list of compiled files? If you do this through Xcode by removing Info.plist from Build Phases -> Compile Sources, it should work, but keep in mind that it will simply be added back the next time you run the The error you are reporting with
Lastly, the swift version issue is addressed by PR #24, which is currently pending release.
|
With XCode 11.2.1, I get the following error when running
snapshot
afterretrofit_cordova_screenshots_ios
:The text was updated successfully, but these errors were encountered: