Skip to content

[#212] entitlement를 추가한다#214

Merged
opficdev merged 2 commits intodevelopfrom
feat/#212-entitlements
Mar 8, 2026
Merged

[#212] entitlement를 추가한다#214
opficdev merged 2 commits intodevelopfrom
feat/#212-entitlements

Conversation

@opficdev
Copy link
Copy Markdown
Owner

@opficdev opficdev commented Mar 8, 2026

@opficdev opficdev self-assigned this Mar 8, 2026
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 풀 리퀘스트는 DevLog 애플리케이션에 필수적인 엔타이틀먼트를 추가하여 푸시 알림(개발 환경) 및 Apple 로그인과 같은 핵심 기능을 활성화합니다. 이는 앱의 기능 범위를 확장하고 사용자 경험을 향상시키는 데 기여합니다.

Highlights

  • 엔타이틀먼트 추가: DevLog.entitlements 파일에 aps-environment 및 com.apple.developer.applesignin 엔타이틀먼트가 추가되었습니다.
Changelog
  • DevLog/Resource/DevLog.entitlements
    • aps-environment 키가 'development' 값과 함께 추가되었습니다.
    • com.apple.developer.applesignin 키가 'Default' 값과 함께 배열로 추가되었습니다.
Activity
  • 이 풀 리퀘스트는 이슈 #212를 닫는 것과 연결되어 있습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

이 Pull Request는 Apple 로그인 및 푸시 알림 기능을 위한 entitlements 설정을 추가합니다. DevLog.entitlements 파일에 aps-environmentdevelopment로 하드코딩되어 있어, 릴리즈 빌드 시 푸시 알림이 동작하지 않는 심각한 문제가 발생할 수 있습니다. 이에 대한 수정 의견을 리뷰 코멘트로 남겼습니다. 이 문제를 해결해야 프로덕션 환경에서 앱이 정상적으로 동작할 수 있습니다. 추가로, PR 제목에 'entitlementf'라는 오타가 있는 것 같습니다. 'entitlements'로 수정하면 더 명확할 것 같습니다.

Comment thread DevLog/Resource/DevLog.entitlements Outdated
<dict/>
<dict>
<key>aps-environment</key>
<string>development</string>
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.

critical

aps-environment 값이 development로 하드코딩되어 있습니다. 이 경우, Ad-Hoc 또는 App Store 배포를 위한 릴리즈 빌드에서 푸시 알림이 동작하지 않게 됩니다.

프로젝트 설정(.pbxproj)을 확인해보니 Debug와 Release 빌드 모두 동일한 .entitlements 파일을 사용하고 있습니다.

이 문제를 해결하기 위해 빌드 구성(Debug, Release)에 따라 다른 값을 사용하도록 설정하는 것이 좋습니다. 예를 들어, 다음과 같이 Xcode 빌드 설정 변수를 사용할 수 있습니다.

<key>aps-environment</key>
<string>$(APS_ENVIRONMENT)</string>

그런 다음 Xcode 빌드 설정의 'User-Defined' 섹션에서 APS_ENVIRONMENT 변수를 추가하고, Debug 구성에는 development, Release 구성에는 production 값을 설정해야 합니다.

또 다른 방법은 Debug.entitlementsRelease.entitlements 파일을 분리하여 각 빌드 구성에 맞는 파일을 사용하도록 설정하는 것입니다.

이 변경이 적용되지 않으면 프로덕션 환경에서 푸시 알림 기능이 제대로 작동하지 않으므로 반드시 수정이 필요합니다.

	<string>$(APS_ENVIRONMENT)</string>

@opficdev opficdev changed the title [#212] entitlementf를 추가한다 [#212] entitlement를 추가한다 Mar 8, 2026
@opficdev
Copy link
Copy Markdown
Owner Author

opficdev commented Mar 8, 2026

/gemini review

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

이 PR은 푸시 알림과 Apple 로그인 기능을 활성화하기 위해 필요한 entitlement 설정을 추가합니다. project.pbxproj 파일에 APS_ENVIRONMENT 빌드 설정을 추가하고, DevLog.entitlements 파일에 aps-environmentcom.apple.developer.applesignin 키를 추가했습니다.

전반적으로 올바른 변경이지만, 빌드 설정을 .pbxproj 파일에 직접 추가하는 대신 .xcconfig 파일을 통해 관리하는 것이 유지보수성 측면에서 더 좋습니다. 관련하여 한 가지 개선 제안을 남겼습니다.

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번 라인)에도 동일하게 적용됩니다.

@opficdev opficdev merged commit f71fa38 into develop Mar 8, 2026
1 check passed
@opficdev opficdev deleted the feat/#212-entitlements branch March 8, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

entitlement를 추가한다

1 participant