Created
August 12, 2022 21:20
-
-
Save insidegui/1275b0e81bb7b5a525368d55ecc96e2c to your computer and use it in GitHub Desktop.
Fixes missing HomeKit entitlement when building for Mac Catalyst on Xcode 14
This file contains 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
if [ "$EFFECTIVE_PLATFORM_NAME" = "-maccatalyst" ]; then | |
echo "Adding com.apple.developer.homekit entitlement" | |
/usr/libexec/PlistBuddy -c "Add :com.apple.developer.homekit bool true" "$TARGET_TEMP_DIR/$FULL_PRODUCT_NAME.xcent" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To avoid breaking builds with other Xcode versions: