在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:home-assistant/iOS开源软件地址:https://github.com/home-assistant/iOS开源编程语言:Swift 99.0%开源软件介绍:Home Assistant for Apple PlatformsGetting StartedHome Assistant uses Bundler, Homebrew and Cocoapods to manage build dependencies. You'll need Xcode 13.1 (or later) which you can download from the App Store. You can get the app running using the following commands: git clone https://github.com/home-assistant/iOS.git
cd iOS
# you must do one of the following, but you do not need to do all of them:
## install cocoapods via homebrew, use that
brew install cocoapods
pod install --repo-update
## install ruby via homebrew, use that
brew install [email protected]
/usr/local/opt/[email protected]/bin/bundle install
/usr/local/opt/[email protected]/bin/bundle exec pod install --repo-update
## install ruby via rbenv, use that
brew install rbenv ruby-build
rbenv install
bundle install
bundle exec pod install --repo-update Once this completes, you can launch Testing just the frontendTo just test the frontend, you can use a simulator version built by our GitHub actions.
The simulator behaves different than you might expect:
You can now debug the WebView in this simulator build using Safari's Web Inspector:
Code SigningAlthough the app is set up to use Automatic provisioning for Debug builds, you'll need to customize a few of the options. This is because the app makes heavy use of entitlements that require code signing, even for simulator builds. Edit the file DEVELOPMENT_TEAM = YourTeamID
BUNDLE_ID_PREFIX = some.bundle.prefix Xcode should generate provisioning profiles in your Team ID and our configuration will disable features your team doesn't have like Critical Alerts. You can find your Team ID on Apple's developer portal; it looks something like Code styleLinters run as part of Pull Request checks. Additionally, some linting requirements can be autocorrected. # checks for linting problems, doesn't fix
bundle exec fastlane lint
# checks for linting problems and fixes them
bundle exec fastlane autocorrect In the Xcode project, the autocorrectable linters will not modify your source code but will provide warnings. This project uses several linters:
Continuous IntegrationWe use Github Actions alongside Fastlane to perform continuous integration both by unit testing and deploying to App Store Connect. Mac Developer ID builds are available as an artifact on every build of master. Environment variablesFastlane scripts read from the environment or DeploymentAlthough all the deployment is done through Github Actions, you can do it manually through Fastlane: Deployment to App Store Connect# creates the builds and uploads to the app store
# each save their artifacts to build/
bundle exec fastlane mac build
bundle exec fastlane ios build ContributingSee CONTRIBUTING.md LICENSEApache-2.0 CreditsThe format and some content of this README.md comes from the SwipeIt project. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论