diff --git a/Cherrish-iOS/Cherrish-iOS.xcodeproj/project.pbxproj b/Cherrish-iOS/Cherrish-iOS.xcodeproj/project.pbxproj index 7aa62d86..70298055 100644 --- a/Cherrish-iOS/Cherrish-iOS.xcodeproj/project.pbxproj +++ b/Cherrish-iOS/Cherrish-iOS.xcodeproj/project.pbxproj @@ -149,6 +149,8 @@ /* Begin XCBuildConfiguration section */ 51B5D3242F05143A0090B8B4 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReferenceAnchor = 51B5D31A2F0514390090B8B4 /* Cherrish-iOS */; + baseConfigurationReferenceRelativePath = Core/Config.xcconfig; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; @@ -212,6 +214,8 @@ }; 51B5D3252F05143A0090B8B4 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReferenceAnchor = 51B5D31A2F0514390090B8B4 /* Cherrish-iOS */; + baseConfigurationReferenceRelativePath = Core/Config.xcconfig; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES; diff --git a/Cherrish-iOS/Cherrish-iOS/Core/BaseURL.swift b/Cherrish-iOS/Cherrish-iOS/Core/BaseURL.swift new file mode 100644 index 00000000..f317e4a2 --- /dev/null +++ b/Cherrish-iOS/Cherrish-iOS/Core/BaseURL.swift @@ -0,0 +1,12 @@ +// +// BaseURL.swift +// Cherrish-iOS +// +// Created by 송성용 on 1/18/26. +// + +import Foundation + +enum Environment { + static let baseURL: String = Bundle.main.infoDictionary?["BASE_URL"] as! String +} diff --git a/Cherrish-iOS/Cherrish-iOS/Data/Network/EndPoint/EndPoint.swift b/Cherrish-iOS/Cherrish-iOS/Data/Network/EndPoint/EndPoint.swift index a854ae16..1667493f 100644 --- a/Cherrish-iOS/Cherrish-iOS/Data/Network/EndPoint/EndPoint.swift +++ b/Cherrish-iOS/Cherrish-iOS/Data/Network/EndPoint/EndPoint.swift @@ -35,7 +35,7 @@ protocol EndPoint { extension EndPoint { var requestURL: URL { - let baseURL = "" // TODO: 서버 배포 후 수정 + let baseURL = Environment.baseURL let urlString = baseURL + basePath + path guard var urlComponents = URLComponents(string: urlString) else { diff --git a/Cherrish-iOS/Cherrish-iOS/Info.plist b/Cherrish-iOS/Cherrish-iOS/Info.plist index 12a80502..1b1a9cef 100644 --- a/Cherrish-iOS/Cherrish-iOS/Info.plist +++ b/Cherrish-iOS/Cherrish-iOS/Info.plist @@ -2,6 +2,8 @@ + BASE_URL + $(BASE_URL) UIAppFonts Pretendard-Bold.otf