mirror of
https://github.com/xtool-org/xtool.git
synced 2026-10-27 11:18:27 +01:00
## What does this PR do? Application packing now sets CFBundleSupportedPlatforms from Packer.cfBundleSupportedPlatforms(for:). The helper splits the triple on hyphens, takes the OS token after apple with any numeric version stripped, and returns iPhoneSimulator for an ios triple that also contains simulator, iPhoneOS for other ios triples, MacOSX for macos or macosx, and iPhoneOS when the triple is missing or unrecognized. PackerTests covers those triples. Package.resolved drops the swift-issue-reporting pin and adds xctest-dynamic-overlay 1.13.1. Application builds aimed at the iOS simulator still ship an Info.plist whose CFBundleSupportedPlatforms value is iPhoneOS. Hosts that read that key treat the archive as a physical-device build and refuse to launch it on a simulator. While packing an application, Packer assigns CFBundleSupportedPlatforms the fixed array iPhoneOS. The build triple is already available on buildSettings, but that assignment never reads it, so a simulator triple is packed the same way as a device triple. Fixes #191 ## How was it tested? The package builds successfully. ## AI tool usage How much of this PR was AI-assisted? (check one) - [ ] **0** - No AI was used to write code - [ ] **1** - I was assisted by AI. I reviewed the finished result. - [ ] **2** - I set the AI going and left it to it; nobody has read the result - no review, or AI review only AI was used for assistance. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Application metadata now reports the supported platform based on the build target, including iOS devices, iOS simulators, and macOS. Unknown targets retain the iOS device platform as a fallback. * **Tests** * Added coverage for platform metadata across supported and unknown build targets. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>