Thanks for posting this. Worked for me in the released Xcode Version 14.0 (14A309). The same app deployed to iOS didn't have a problem.
Post
Replies
Boosts
Views
Activity
I used this script since aps-environment existed in iOS but not Catalyst:
entry=$(/usr/libexec/PlistBuddy -c "Print :aps-environment" "$TARGET_TEMP_DIR/$FULL_PRODUCT_NAME.xcent")
if [ "$entry" == "" ]; then
/usr/libexec/PlistBuddy -c "Add :aps-environment string development" "$TARGET_TEMP_DIR/$FULL_PRODUCT_NAME.xcent"
echo "Added aps-environment in $TARGET_TEMP_DIR/$FULL_PRODUCT_NAME.xcent"
else
echo "aps-environment was present in $TARGET_TEMP_DIR/$FULL_PRODUCT_NAME.xcent"
fi