Skip to content
This repository has been archived by the owner on Oct 6, 2023. It is now read-only.

Extract app identifiers #25

Merged
merged 10 commits into from Sep 13, 2021

Conversation

feralbob
Copy link

This pull request extracts a number of Apple Developer Account specific values from the pbxproj to a xcconfig file.

The extracted values include DEVELOPMENT_TEAM, APP_GROUPS and a base for the PRODUCT_BUNDLE_IDENTIFIER. The system includes a method to override them with a fallback to the current values for @EthanLipnik's account.

Ultimately this change makes it much easier for a contributor to setup OpenSesame in their own Apple Developer Account, including the ability to run app on device.

This change should be complete - but will require testing to make sure I've caught everything.

… a xcconfig file.

This allows a developer to specify DEVELOPMENT_TEAM_OVERRIDE - If they do so the specified DEVELOPMENT_TEAM_OVERRIDE will be used as the DEVELOPMENT_TEAM in all the places it needs to be.
If it's not set - then it defaults to B6QG723P8Z
…RODUCT_BUNDLE_IDENTIFIER - to make it easier to get running on a different Apple Developer account.
…LE_IDENTIFIER to PRODUCT_BUNDLE_IDENTIFIER_BASE - otherwise the Autofill targets had the wrong iCloud settings due to the expanded PRODUCT_BUNDLE_IDENTIFIER (+1 squashed commit)

Squashed commits:
[8464e48] Setup the iCloud Containers/Ubquity container IDs to be based off of the PRODUCT_BUNDLE_IDENTIFIER
…ld target runs the GenerateBuildConfig.sh to autogenerate a Swift file that exposes compile time values for the APPGROUP amongst others
…tializer that sets the correct service/access group.

Use the new OpenSesameKeychain to consolidate the usage of the service/app groups in one spot.
Replace further hardcoded CloudKit container identifiers and NSUserDefault suite names to use the values from OpenSesameConfig
Expose the DEVELOPMENT_TEAM as part of the OpenSesameConfig
@feralbob
Copy link
Author

I've just spotted another reference that I missed in the rebase - iCloud.com.ethanlipnik.OpenSesame in Persistence+Container.swift

@EthanLipnik
Copy link
Owner

This is some really great work! I'll be sure to test this branch and merge it soon!

@EthanLipnik EthanLipnik self-requested a review September 12, 2021 18:47
@EthanLipnik EthanLipnik self-assigned this Sep 12, 2021
@EthanLipnik
Copy link
Owner

After a merge I realized that macOS no longer compiles because for some reason it can't set the iCloud containers. Working on a fix

@EthanLipnik
Copy link
Owner

image

It seems that the only solution is to manually set the iCloud group. All the code should be working but for macOS it doesn't. Hopefully a new Xcode version will help. Opening an issue

@EthanLipnik
Copy link
Owner

Also may be from a temporary revert but your name won't show up in the contributions list for some reason even though your commits are in the git. If you'd like to be added to the list, make a new pull request for something new, could be something small @feralbob

@feralbob
Copy link
Author

I'll take a look at why macOS isn't working correctly too

@EthanLipnik
Copy link
Owner

Fantastic! Thanks!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

macOS requires manual iCloud group setting even though Info.plist autogenerates the correct one.
2 participants