Closed andre-alves closed 5 months ago
Got it! Xcode Previews just need explicit dependency between the app and the extension to work.
Target Dependencies | Xcode Previews |
---|---|
Draft with possible fix: https://github.com/MobileNativeFoundation/rules_xcodeproj/pull/2999
@andre-alves Can you verify that #3005 fixes this for you?
Description
I'm not sure if it's a recent regression or not, but Xcode Previews is not working with extensions:
Reproduction steps
It's possible to reproduce using the integration example without any changes:
cd examples/integration
bazel run //:xcodeproj-incremental-bazel-sim_arm64
open Integration.xcodeproj
iOSApp
orWidgetExtension in iOSApp
WidgetExtension.swift
and check previewsExpected behavior
Xcode Previews to display.
rules_xcodeproj version
main (de3089fd2612fc97299e87955975e1dc34049b67)
Xcode version
15.2
Bazel version
7.1.0
rules_apple version
3.5.0
rules_swift version
1.18.0
Additional information
No response