GithubHelp home page GithubHelp logo

waldoswify93 / ios-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from home-assistant/ios

0.0 0.0 0.0 102.51 MB

:iphone: Home Assistant Companion for iOS

Home Page: https://companion.home-assistant.io

License: Other

Objective-C 0.02% Swift 97.98% Ruby 1.86% JavaScript 0.07% Shell 0.07%

ios-1's Introduction

Home Assistant for Apple Platforms

TestFlight Beta invite Download on the App Store GitHub issues License Apache 2.0

Getting Started

Home Assistant uses Bundler, Cocoapods and Swift Package Manager to manage build dependencies. You'll need Xcode 12.0 (or later) which you can download from the App Store. You can get this running using the following commands:

git clone https://github.com/home-assistant/iOS.git
cd iOS
[sudo] gem install bundler
bundle install
bundle exec pod install --repo-update

Once this completes, you can launch HomeAssistant.xcworkspace and run the Debug target onto your simulator or iOS device.

Code Signing

Although 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 Configuration/HomeAssistant.overrides.xcconfig (which will not exist by default and is ignored by git) and add the following:

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.

Xcode 12 Issues

Apple shipped Xcode 12 with several regressions that impact Home Assistant and you will need to work around those that we cannot automatically fix in code:

  1. If you experience Clibsodium module errors, retrying the build should find it afterwards after a few attempts. Once it is able to build once, it should stop misbehaving.
  2. For Xcode 12 releases before 12.2 beta 2, you will need to copy libnfshared.dylib from an older version of the Xcode 12 betas to run on the iOS 14 simulator. You can replicate the steps the CI does to get compatibility.

Code style

SwiftLint runs as part of Pull Request checks and will run automatically when building the project.

Continuous Integration

We are using Github Actions alongside Fastlane to perform continuous integration both by unit testing and deploying to App Store Connect later on.

Environment variables

To make sure Fabric and App Store Connect can deploy, make sure you have them set to something similar to the following environment variables. The values are only examples!.

Note: For ENV variables to work in Xcode you to set $ defaults write com.apple.dt.Xcode UseSanitizedBuildSystemEnvironment -bool NO and launch Xcode from the terminal. Apple Developer Forums

Signing

  • HOMEASSISTANT_CERTIFICATE_KEY: The Certificate key used in Match
  • HOMEASSISTANT_CERTIFICATE_USER: The username for the git being where Match is saving the Certificates.
  • HOMEASSISTANT_CERTIFICATE_TOKEN: The access token for the git being where Match is saving the Certificates.
  • HOMEASSISTANT_CERTIFICATE_GIT: The address or the git being where Match is saving the Certificates. (e.g. https://gitlab.com/username/Certificates)

App Store Connect deployment

Deployment

Although all the deployment is done through Github Actions, you can do it manually through Fastlane:

Deployment to App Store Connect

bundle exec fastlane asc

Contributing

See CONTRIBUTING.md

LICENSE

Apache-2.0

Credits

The format and some content of this README.md comes from the SwipeIt project.

ios-1's People

Contributors

amelchio avatar balloob avatar bjornorri avatar blackgold9 avatar dajo avatar efirestone avatar fabaff avatar fearoffish avatar frenck avatar github-actions[bot] avatar htdahms avatar jjlawren avatar mboeru avatar mnoorenberghe avatar olbjan avatar quthla avatar robbiet480 avatar seanpm5 avatar theomega avatar tombrien avatar torarnv avatar twilb avatar ukgrant avatar xusbadia avatar zacwest avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.