You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Let developers build and install iMCP Helper for Home - #275
This PR takes the Home helper out of release builds and adds a script that builds and installs it with your own Apple Developer team.
Apple only makes HomeKit available to Mac Catalyst apps, and it doesn't allow the HomeKit entitlement in Developer ID provisioning profiles, so a notarized iMCP can't ship the helper from #215. The release dry run failed for that reason. HomeKit works with development signing, though, so developers can build the helper for their own Macs:
Scripts/install-helper.sh builds iMCP Helper for Mac Catalyst with your team and a bundle ID of your own, checks that it carries the HomeKit entitlement, and installs it in /Applications. On the first build for a new bundle ID, it builds once for iOS to register the HomeKit capability, then retries.
iMCP finds the helper in /Applications, or asks you to choose it when you turn on Home. Settings > Services > Home shows the helper and lets you change it. An app counts as the helper only if its Info.plist sets iMCPHelper.
Release builds set EMBED_HOME_HELPER = NO and leave the helper out. Debug builds still embed it.
The helper's bundle ID comes from HELPER_BUNDLE_IDENTIFIER.
…plicitly
Explain the expected first-build entitlement error, list teams when the keychain has more than one, and remove a stale embedded helper from release builds.
Terminate only the helper launched from the expected path
CLITests/HomeProxyTests.swift:26
This can terminate any running app carrying the helper marker, not necessarily the helper launched from IMCP_HELPER_PATH. With multiple self-built helpers, the test may kill an unrelated process while the backend helper remains alive, making the recovery assertion pass without testing recovery. Match the running app's standardized bundle path to path instead.
Release checks read the first MARKETING_VERSION in the project file, and the bump read the first CURRENT_PROJECT_VERSION. Since #275 the helper's 1.0 and 1 come first, so a 1.7.0 bump would set build 2. The helper now carries the app's version, and the bump uses the highest build number.
Since #275, the first line containing PRODUCT_BUNDLE_IDENTIFIER is the helper's DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = NO, so the export mapped the WeatherKit profile to "NO" and failed. Match the key exactly and skip build-setting references.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR takes the Home helper out of release builds and adds a script that builds and installs it with your own Apple Developer team.
Apple only makes HomeKit available to Mac Catalyst apps, and it doesn't allow the HomeKit entitlement in Developer ID provisioning profiles, so a notarized iMCP can't ship the helper from #215. The release dry run failed for that reason. HomeKit works with development signing, though, so developers can build the helper for their own Macs:
Scripts/install-helper.shbuildsiMCP Helperfor Mac Catalyst with your team and a bundle ID of your own, checks that it carries the HomeKit entitlement, and installs it in/Applications. On the first build for a new bundle ID, it builds once for iOS to register the HomeKit capability, then retries./Applications, or asks you to choose it when you turn on Home. Settings > Services > Home shows the helper and lets you change it. An app counts as the helper only if its Info.plist setsiMCPHelper.EMBED_HOME_HELPER = NOand leave the helper out. Debug builds still embed it.HELPER_BUNDLE_IDENTIFIER.The README explains the setup.