nicklockwood / layout

A declarative UI framework for iOS
MIT License
2.23k stars 97 forks source link

Standalone bundle cannot be referenced in Xcode 11 on iOS < 13 #183

Closed momamene closed 4 years ago

momamene commented 4 years ago

When I update Xcode 11, Layout seems to work fine. but I noticed that resource loading is failed under iOS 13. The problem not occurred in Xcode 10.

I've created a sample app for simulating. https://github.com/momamene/SampleLayoutApp

You can find that the image in CustomBundle cannot be found at SampleLayoutApp on iOS 12 or below, but rendering is successful in iOS 13.

This problem occurred in both real devices and iOS simulators.

Sample.xml

<UIView backgroundColor="white">
  <UIImageView
    center.y="50%"
    center.x="50%"
    image="CustomBundle:sample-image" />
</UIView>
스크린샷 2019-09-23 오후 5 58 32

Thank you for maintaining. The Layout is still the best UI library on iOS.

momamene commented 4 years ago

It seems that there is a bug of Xcode 11 that it is failed to instantiate image from asset catalog linked with a custom bundle on iOS 12.

So I created an issue to Apple Developer Forum. But it would be very helpful to find a workaround. https://forums.developer.apple.com/message/385316#385316