Setting UIDeviceFamily for iPhone and iPad

805 views
Skip to first unread message

Hochhaus, Andy

unread,
Mar 28, 2017, 1:25:32 PM3/28/17
to bazel-discuss
Hello,

I'm trying to compile an iPhone and iPad app so I added the following to my Info.plist:

  <key>UIDeviceFamily</key>
  <array>
    <string>1</string>
    <string>2</string>
  </array>


However, when I build with bazel / tulsi I get the following error:

Exception in thread "main" java.lang.IllegalArgumentException: The following plist entries may not be overridden, but are present in more than one of the input lists: [UIDeviceFamily]

This is because the automatically generated file at `bazel-out/local-opt/bin/workout/ios/plists/app-automatic.plist` contains only the iPhone:

  "UIDeviceFamily" = (<*I1>);

What is the correct way in bazel to specify [1, 2] for the
UIDeviceFamily?

Best,
Andy

Peter Schmitt

unread,
Mar 28, 2017, 1:37:58 PM3/28/17
to Hochhaus, Andy, bazel-discuss
You can use the "families" attribute on the appropriate rules, for example here: https://bazel.build/versions/master/docs/be/objective-c.html#ios_application.families

--
You received this message because you are subscribed to the Google Groups "bazel-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bazel-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bazel-discuss/CALJWjC3fMoKurn9UOZ6xWLimNz0ivOSZuOKu9yPSN3yiSF_gRQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages