Post

Replies

Boosts

Views

Activity

Comment on Xcode 14 RC Mac Catalyst fails to registerForRemoteNotifications
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
Sep ’22
Comment on Xcode 14 RC Mac Catalyst fails to registerForRemoteNotifications
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.
Replies
Boosts
Views
Activity
Sep ’22
Comment on Xcode 14 RC Mac Catalyst fails to registerForRemoteNotifications
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
Replies
Boosts
Views
Activity
Sep ’22