diff options
author | 2016-06-24 21:07:16 +0000 | |
---|---|---|
committer | 2016-06-27 11:39:39 +0000 | |
commit | dbe55c1f90b16b11bd75baea1f75d03918209d16 (patch) | |
tree | da1daaa00eae7ff6f6a818cd64403772208673a6 | |
parent | 3b98a301dc3d4b31176811f7c8e9b9e1365ca66a (diff) |
Update build encyclopedia documentation to make clear that entitlements are not supported on the Simulator out of the box yet.
--
MOS_MIGRATED_REVID=125814847
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/rules/objc/ObjcRuleClasses.java | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcRuleClasses.java b/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcRuleClasses.java index db34c77f8e..e6feaae099 100644 --- a/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcRuleClasses.java +++ b/src/main/java/com/google/devtools/build/lib/rules/objc/ObjcRuleClasses.java @@ -1016,6 +1016,29 @@ public class ObjcRuleClasses { bundle id and <code>$(AppIdentifierPrefix)</code> with the value of the <code>ApplicationIdentifierPrefix</code> key from this target's provisioning profile (or the default provisioning profile, if none is specified). + <p> + Bazel does not currently support adding entitlements to simulator builds. This + means that if you rely on behavior which must be specified in entitlements (like App + Groups) it will only work on a device. You can work around this by inlining the + entitlements into your binary. e.g. + <pre><code> + #if TARGET_OS_SIMULATOR + __asm(".section __TEXT,__entitlements"); + __asm(".ascii \"" + "<?xml version=\\\"1.0\\\" encoding=\\\"UTF-8\\\"?>\n" + "<!DOCTYPE plist PUBLIC \\\"-//Apple//DTD PLIST 1.0//EN\\\" " + "\\\"http://www.apple.com/DTDs/PropertyList-1.0.dtd\\\">" + "<plist version=\\\"1.0\\\">" + "<dict>" + "<key>com.apple.security.application-groups</key>" + "<array>" + "<string>group.com.your.company</string>" + "</array>" + "</dict>" + "</plist>" + "\" + #endif + </code></pre> <!-- #END_BLAZE_RULE.ATTRIBUTE -->*/ .add(attr(ENTITLEMENTS_ATTR, LABEL).allowedFileTypes(ENTITLEMENTS_TYPE)) .add( |