-
Notifications
You must be signed in to change notification settings - Fork 37
Add xcodebuild command destination flag
#147
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
Conversation
| } | ||
|
|
||
| // OpenArchivableProject ... | ||
| func OpenArchivableProject(pth, schemeName, configurationName string) (*xcodeproj.XcodeProj, *xcscheme.Scheme, string, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you do not need a separate OpenArchivableProject and OpenArchivableWorkspace.
schemeint.Scheme accepts both a workspace and project path, whatever is provided, it figures out the correct root project (which is connected to the scheme).
The issue with the current implementation is at the OpenArchivableWorkspace: In the case of a workspace project, a given scheme can be located both under the .xcworkspace or under one of the included .xcproject files, this is handled correctly by the schemeint.Scheme, but OpenArchivableWorkspace is not aware of the schemes under the .xcworkspace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
destination flag

Without a
destinationflag xcodebuild fails when running on M1 machine since it always had the mac device.Only affects Apple project for scan and uitest command
fixes #144 and #131
Resolves issues with M1 as well as adds additional options for -sdk and -destination :
-sdk: If a value is specified for this flag it'll be passed to xcodebuild as the value of the -sdk flag. For more info about the values please see xcodebuild's -sdk flag docs. Example value: iphoneos")
-destination: The xcodebuild -destination option takes as its argument a destination specifier describing the device (or devices) to use as a destination i.e generic/platform=iOS.
See release notes for instructions. Some M1 machines do not have certain folders so you may need to use a custom folder to run curl script