Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions app/Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
source "https://rubygems.org"

gem "fastlane"
gem "cocoapods"
gem "nkf"
34 changes: 34 additions & 0 deletions app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,37 @@ The Omi App is a Flutter-based mobile application that serves as the companion a
## Need Help?

- 💬 Join our [Discord Community](http://discord.omi.me)

## Troubleshooting

### iOS Setup Issues with Ruby Gems

If you encounter Ruby gem dependency errors during iOS setup (particularly with fastlane), follow these steps:

1. Install Bundler (if not already installed):
```bash
sudo gem install bundler
```

2. Create a Gemfile in the app directory with required gems:
```bash
cat > Gemfile << EOL
source "https://rubygems.org"

gem "fastlane"
gem "cocoapods"
gem "nkf"
EOL
```

3. Install gems using Bundler:
```bash
bundle install
```

4. Run the iOS setup using Bundler:
```bash
bundle exec bash setup.sh ios
```

This approach ensures all required Ruby dependencies are properly installed and managed.
24 changes: 19 additions & 5 deletions app/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# - Android Studio (for Android)
# - NDK 26.3.11579264 or above (to build Opus for ARM Devices)
# - Opus Codec: https://opus-codec.org
# Usages:
# Usages:
# - $bash setup.sh ios
# - $bash setup.sh android

Expand Down Expand Up @@ -88,10 +88,24 @@ function setup_provisioning_profile() {
echo "Installing fastlane..."
brew install fastlane
fi

MATCH_PASSWORD=omi fastlane match development --readonly \
--app_identifier com.friend-app-with-wearable.ios12.development \
--git_url "git@github.com:BasedHardware/omi-community-certs.git"

# Check if bundler is installed
if ! command -v bundle &> /dev/null; then
echo "Installing bundler..."
gem install bundler
fi

# Use bundler to run fastlane if Gemfile exists
if [ -f "Gemfile" ]; then
echo "Using bundler to run fastlane..."
MATCH_PASSWORD=omi bundle exec fastlane match development --readonly \
--app_identifier com.friend-app-with-wearable.ios12.development \
--git_url "git@github.com:BasedHardware/omi-community-certs.git"
else
MATCH_PASSWORD=omi fastlane match development --readonly \
--app_identifier com.friend-app-with-wearable.ios12.development \
--git_url "git@github.com:BasedHardware/omi-community-certs.git"
fi
}


Expand Down