You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For pure SPM package projects i.e. projects that only use a Package.swift and no Xcode project. The xcodeproj: parameter is mandatory in xcov when trying to get coverage reports.
When building a swift package on the command line with xcodebuild you can build & test the package without a xcodeproj or
xcworkspace.
Xcode automatically generates a scheme file for any swift package manager projects so there is no longer a need to have a xcodeproj or xcworkspace file present.
Proposal
Introduce a new boolean setting like "use_spm" to indicate the use with a SPM package
Adjust the validation to check for an existing Package.swift file
The remaining behaviour should remain the same
To test:
Create a new swift package. swift package init. The swift package will be named after the folder you created it in.
Run xcodebuild -list this will list the schemes associated with the project. When this command is complete you will be able to see the scheme exists in the project and is named according to the directory it is in.
Build the project: xcodebuild -scheme %NAME% build`
Test the project: xcodebuild -scheme %NAME% test
Would be great to see this functionality added where the project or workspace can be specified as optional.
Link to the mandatory fields for xcov documentation in Fastlane here
Summary
For pure SPM package projects i.e. projects that only use a Package.swift and no Xcode project. The xcodeproj: parameter is mandatory in xcov when trying to get coverage reports.
When building a swift package on the command line with xcodebuild you can build & test the package without a xcodeproj or
xcworkspace.
Xcode automatically generates a scheme file for any swift package manager projects so there is no longer a need to have a xcodeproj or xcworkspace file present.
Proposal
To test:
Create a new swift package. swift package init. The swift package will be named after the folder you created it in.
Run xcodebuild -list this will list the schemes associated with the project. When this command is complete you will be able to see the scheme exists in the project and is named according to the directory it is in.
Build the project: xcodebuild -scheme %NAME% build`
Test the project: xcodebuild -scheme %NAME% test
Would be great to see this functionality added where the project or workspace can be specified as optional.
Link to the mandatory fields for xcov documentation in Fastlane here
Identical issue with scan here
The text was updated successfully, but these errors were encountered: