Quantcast
Channel: Questions in topic: "xcode"
Viewing all articles
Browse latest Browse all 1047

Configure iCloud capability for XCode Project using XCodeAPI

$
0
0
I am using the following code: [PostProcessBuild(999)] public static void AddCapabilities(BuildTarget buildTarget, string pathToBuiltProject) { if (buildTarget == BuildTarget.iOS) { string projPath = pathToBuiltProject + "/Unity-iPhone.xcodeproj/project.pbxproj"; PBXProject proj = new PBXProject (); proj.ReadFromString (File.ReadAllText (projPath)); string target = proj.TargetGuidByName ("Unity-iPhone"); proj.AddCapability (target, PBXCapabilityType.iCloud); proj.AddCapability (target, PBXCapabilityType.GameCenter); proj.AddCapability (target, PBXCapabilityType.InAppPurchase); File.WriteAllText (projPath, proj.WriteToString ()); } } It enables needed capabilities, but it does not configure them. I need to enable settings "key-value storage" and "CloudKit" to `true`, but I do not understand how. According to the documentation, it needs some entitelment file, which I do not know where to find and how to change the needed settings in it.

Viewing all articles
Browse latest Browse all 1047

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>