-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Description
Make a host app support visionOS. Add a pod with some resource (specially the resource include some XIB files). Check the host project's resource copy script
Pods-xxx-resources.sh
echo "TARGETED_DEVICE_FAMILY=${TARGETED_DEVICE_FAMILY}"
case "${TARGETED_DEVICE_FAMILY:-}" in
1,2)
TARGET_DEVICE_ARGS="--target-device ipad --target-device iphone"
;;
1)
TARGET_DEVICE_ARGS="--target-device iphone"
;;
2)
TARGET_DEVICE_ARGS="--target-device ipad"
;;
3)
TARGET_DEVICE_ARGS="--target-device tv"
;;
4)
TARGET_DEVICE_ARGS="--target-device watch"
;;
*)
TARGET_DEVICE_ARGS="--target-device mac"
;;
esac
It is possible the host app fails to compile due to the incorrect target device, even if the actual build target is an iOS device with iOS SDK.
Showing All Messages
ibtool --reference-external-strings-file --errors --warnings --notices --minimum-deployment-target 14.0 --output-format human-readable-text --compile [xxx]/AlertViewController.nib [yyy]/AlertViewController.xib --sdk /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.2.sdk --target-device mac
Metadata
Metadata
Assignees
Labels
No labels