Skip to content
Merged
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
2 changes: 2 additions & 0 deletions DevLog.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,7 @@
baseConfigurationReferenceAnchor = DF8AB7982E938B0B00E50BBF /* DevLog */;
baseConfigurationReferenceRelativePath = Resource/Config.xcconfig;
buildSettings = {
APS_ENVIRONMENT = development;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

project.pbxproj 파일을 직접 수정하는 대신, APS_ENVIRONMENT 같은 빌드 설정을 .xcconfig 파일에서 관리하는 것이 좋습니다. 프로젝트가 이미 Resource/Config.xcconfig 파일을 사용하고 있으므로, 이 설정을 해당 파일로 옮기는 것을 고려해 보세요. 이렇게 하면 빌드 설정 관리가 더 쉬워지고, 향후 발생할 수 있는 병합 충돌(merge conflict)을 줄일 수 있습니다.

예를 들어, Config.xcconfig 파일에 다음과 같이 추가할 수 있습니다:

// Config.xcconfig
APS_ENVIRONMENT[config=Debug] = development
APS_ENVIRONMENT[config=Release] = production

이렇게 변경한 후, project.pbxproj 파일에서 직접 추가한 APS_ENVIRONMENT 라인을 제거해야 합니다. 이 제안은 Release 설정(421번 라인)에도 동일하게 적용됩니다.

ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
Expand Down Expand Up @@ -417,6 +418,7 @@
baseConfigurationReferenceAnchor = DF8AB7982E938B0B00E50BBF /* DevLog */;
baseConfigurationReferenceRelativePath = Resource/Config.xcconfig;
buildSettings = {
APS_ENVIRONMENT = production;
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES;
Expand Down
9 changes: 8 additions & 1 deletion DevLog/Resource/DevLog.entitlements
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict/>
<dict>
<key>aps-environment</key>
<string>$(APS_ENVIRONMENT)</string>
<key>com.apple.developer.applesignin</key>
<array>
<string>Default</string>
</array>
</dict>
</plist>