I’m excited to share a set of mobile apps I’ve recently completed and published on both the Google Play Store and the Apple App Store. These apps are designed with a simple goal in mind: to make meaningful, structured content more accessible, whether you’re studying theology or improving your English vocabulary. 📱 Now Available on Both Platforms All apps are live and available for download: Google Play Developer Page: https://play.google.com/store/apps/dev?id=5835943159853189043 Apple App Store Developer Page: https://apps.apple.com/ca/developer/q-z-l-corp/id1888794100 📖 Theology & Confession Study Apps For those interested in Reformed theology and classical Christian teachings, I’ve developed a series of apps that present foundational texts in a clean, focused reading format: The Belgic Confession Canons of Dort Heidelberg Catechism Westminster Shorter Catechism Each app is designed to provide a distraction-free experience, making it easier to read, reflect, and revisit these im...
如何在本地搭建 React Native iOS 开发环境
- Get link
- X
- Other Apps
By
Errong Leng
-
如何在本地搭建 React Native iOS 开发环境
在本地搭建 React Native iOS 项目听起来很简单,但实际操作中常会遇到问题:Ruby 版本不兼容、CocoaPods 安装失败、Xcode 配置不当,甚至神秘的构建错误。下面是一个真实可行的完整环境搭建流程。
🍎 步骤 0 — 准备 Xcode(关键但容易忽略)
即便你已经从 App Store 安装了 Xcode,系统可能还没有完全配置好命令行工具。我在遇到问题后,完成了以下步骤才顺利运行:
1. 选择正确的 Xcode 路径
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer
xcode-select -p
预期输出:
/Applications/Xcode.app/Contents/Developer
2. 同意 Xcode 许可协议
sudo xcodebuild -license
然后:
- 按
space滚动查看协议 - 在末尾输入
agree同意
如果没有完成这步,构建可能会无提示失败或报错。
3. 安装命令行工具(如果尚未安装)
xcode-select --install
React Native iOS 构建依赖 Xcode 工具链和 iOS SDK。正确配置可以避免 pod install 或构建失败。
🧰 步骤 1 — 检查 Ruby 环境
检查当前使用的 Ruby:
which ruby
ruby -v
如果显示类似:
~/.rbenv/shims/ruby
ruby 2.7.6
说明 rbenv 正在管理你的 Ruby,而不是系统或 Homebrew Ruby。
🚀 步骤 2 — 使用 rbenv 安装新版 Ruby
rbenv install 3.3.0
rbenv global 3.3.0
rbenv rehash
ruby -v
📦 步骤 3 — 安装 CocoaPods
gem install cocoapods
pod --version
📁 步骤 4 — 安装 iOS 依赖
cd ios
pod install
🔄 步骤 5 — 更新 Pod 仓库(如有需要)
pod repo update
# 或者结合安装
pod install --repo-update
⚠️ 常见问题及解决方法
- pod install 失败:运行
pod repo update - CocoaPods 未找到:运行
gem install cocoapods并rbenv rehash - Ruby 版本未生效:确保 rbenv 已启用:
eval "$(rbenv init -)" - gem 权限错误:避免使用 sudo,使用 rbenv 管理的 Ruby
🧼 可选清理
如果你通过 Homebrew 安装了 Ruby 但不使用它:
brew uninstall ruby
这样可以避免混淆,因为 rbenv 已在管理 Ruby 版本。
✅ 最终流程总结
# 安装 Ruby
rbenv install 3.3.0
rbenv global 3.3.0
# 安装 CocoaPods
gem install cocoapods
# 安装 iOS 依赖
cd ios
pod install --repo-update
💡 关键要点
- CocoaPods 依赖 Ruby → 保持 Ruby 更新
- rbenv 会覆盖系统和 Homebrew Ruby
- brew upgrade ruby 不会影响 rbenv
- 始终在 ios 文件夹内运行 pod install
- 依赖失败时,使用 pod repo update
🎯 总结
最大的困惑来自于同时存在多个 Ruby 环境:系统 Ruby、Homebrew Ruby 和 rbenv Ruby。一旦确认 rbenv 在控制版本,所有操作都变得可预测。如果你在做 React Native iOS 开发,一个干净的 Ruby + CocoaPods 环境可以节省数小时的调试时间。
❤️ Support This Blog
If this post helped you, you can support my writing with a small donation. Thank you for reading.
- Get link
- X
- Other Apps
Popular Posts
Fix “A problem occurred starting process 'command node'” in Android Studio for React Native
By
Errong Leng
-
Fix “A problem occurred starting process 'command node'” in Android Studio for React Native If you are building a React Native Android project and encounter this error during Gradle sync: A problem occurred evaluating project ':react-native-svg'. > A problem occurred starting process 'command 'node'' —even though node works perfectly in your terminal—this guide will show you how to fix it quickly. Common Misconceptions This error is often mistaken as a Node.js or PATH issue, but that is not always the case. Node.js is installed and working in your terminal. PATH and environment variables appear correct. Still, Android Studio Gradle sync fails with the above error. The Real Cause The issue typically arises because of an incorrect Gradle JDK configuration inside Android Studio . Gradle runs inside a JVM and uses that JVM to spawn external processes (like node ). If the Gradle JDK is incompatible or misconfigured, Gradle will...
Swagger annotations for API that allows downloading files as zip
By
三好Daddy
-
I have built out an API that allows you downloading log files as zip in a sprint boot app. The app also integrated with Swagger 3, so I also want this API can be hit in the Swagger UI. In this post, I will demonstrate how to use @ApiOperation annotation to tell Swagger UI download the response as a zip file. use @ApiOperation for your method The key is set media type to "application/octet-stream" which can be recognized by Swagger UI. By doing so, you are set "accept":" application/octet-stream " in the request header. Put below annotation section on top of your API's controller method. @Operation( summary = "", description = "", method="GET", responses = { @ApiResponse(responseCode = "200", description = "", content = { @Content( mediaType = "application/octet-stream" ...
2023, New Start! New AdSense Account! New Earnings!
By
Errong Leng
-
It's been a while after I created adsense account to display ads on this blog. A few years later the payment finally reached my payout threshold, I just found the existed adsense account is bind to China. but I moved to Canada 3 years ago. I tried to change the country of it, but just found Unfortunately it's not possible to change the country of your payment address in AdSense. If you've moved to a new country or territory, you'll need to cancel your existing AdSense account and create a new AdSense account . So I created a new adsense account today on 2023-01-12. Though new account is still under reviewing, I believe it will be approved soon. To reach out payout threshold in this year, I set up the below plan: write one blog per week day!!! write one blog per week day!!! write one blog per week day!!! Try ingress more traffic to this blog
Comments
Post a Comment