001project_wildgrowth/ios/WildGrowth/Config/Local.xcconfig

14 lines
530 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Local.xcconfig - 本地开发环境
// 用于连接本机 localhost 或局域网后端
// 真机调试时可将 API_DOMAIN 改为本机局域网 IP如 http://192.168.1.100:3000
#include "Shared.xcconfig"
// API 域名(注入 Info.plist运行时通过 Bundle.main 读取)
API_DOMAIN = http://localhost:3000
INFOPLIST_KEY_API_DOMAIN = $(API_DOMAIN)
// Swift 编译条件:代码中可用 #if API_ENV_LOCAL
SWIFT_ACTIVE_COMPILATION_CONDITIONS = API_ENV_LOCAL $(inherited)
GCC_PREPROCESSOR_DEFINITIONS = $(inherited)