Skip to content
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

Fix swift.yml to work with project #1

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from
Open

Conversation

homerooliveira
Copy link
Owner

@homerooliveira homerooliveira commented Aug 10, 2024

Update swift.yml to work with the project

  • Add CocoaPods dependencies installation
    • Add a step to install CocoaPods dependencies using pod install
  • Build Xcode project
    • Add a step to build the Xcode project using xcodebuild -workspace MarvelApp.xcworkspace -scheme MarvelApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11,OS=latest' build
  • Run tests
    • Add a step to run tests using xcodebuild -workspace MarvelApp.xcworkspace -scheme MarvelApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11,OS=latest' test
  • Generate code coverage reports
    • Add a step to generate code coverage reports using bash <(curl -s https://codecov.io/bash)
  • Update README.md
    • Add a badge for the GitHub Actions workflow status

For more details, open the Copilot Workspace session.

Update `swift.yml` to work with the project

* **Add CocoaPods dependencies installation**
  - Add a step to install CocoaPods dependencies using `pod install`
* **Build Xcode project**
  - Add a step to build the Xcode project using `xcodebuild -workspace MarvelApp.xcworkspace -scheme MarvelApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11,OS=latest' build`
* **Run tests**
  - Add a step to run tests using `xcodebuild -workspace MarvelApp.xcworkspace -scheme MarvelApp -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 11,OS=latest' test`
* **Generate code coverage reports**
  - Add a step to generate code coverage reports using `bash <(curl -s https://codecov.io/bash)`
* **Update README.md**
  - Add a badge for the GitHub Actions workflow status

---

For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/homerooliveira/MarvelApp?shareId=XXXX-XXXX-XXXX-XXXX).
…ning

* **SwiftLint run script build phase**
  - Add output dependencies to the SwiftLint run script build phase
  - Configure the SwiftLint run script build phase to run in every build by unchecking "Based on dependency analysis"
@homerooliveira
Copy link
Owner Author

Update MarvelApp.xcodeproj/project.pbxproj to address SwiftLint warning

  • SwiftLint run script build phase
    • Add output dependencies to the SwiftLint run script build phase
    • Configure the SwiftLint run script build phase to run in every build by unchecking "Based on dependency analysis"

* Set the global platform to `:ios, '15.0'`
* Update the `use_frameworks!` directive to `use_frameworks! :linkage => :static`
@homerooliveira
Copy link
Owner Author

Update Podfile to support iOS 15 and static linkage

  • Set the global platform to :ios, '15.0'
  • Update the use_frameworks! directive to use_frameworks! :linkage => :static

… Actions workflow

* **Xcode project changes**
  - Add `PROVISIONING_PROFILE_SPECIFIER` to the `Debug` and `Release` build configurations for the `MarvelApp` target
  - Add `PROVISIONING_PROFILE_SPECIFIER` to the `Debug` and `Release` build configurations for the `MarvelAppTests` target
* **GitHub Actions workflow changes**
  - Add the `-allowProvisioningUpdates` flag to the `xcodebuild` commands in the `Build` and `Run tests` steps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant