我的一位用户在安装TestFlight App(而非Apple的TestFlight)时遇到问题.
他遇到错误:"配置文件安装失败,SCEP服务器返回无效响应".
错误http://i60.tinypic.com/mky6j5.jpg
我建议他按照此处列出的步骤操作:http: //help.testflightapp.com/customer/portal/articles/402816-registration-issues
他告诉我,他的个人资料中没有安装任何个人资料,按照这些步骤后,他仍然遇到同样的错误.
我很遗憾现在该做什么,任何建议都将受到赞赏.
根据Apple的文档,〜/ Library/Sounds中的声音文件将在尝试播放声音时由系统搜索.如何将声音文件添加到此文件夹?
我试图在运行时写入该文件夹,但没有权限.我在xcode中添加了一个Library/Sounds文件夹,但它似乎没有复制过来.
xcode - > window - > devices,选择我的应用程序并显示容器,文件夹不存在

要添加一些上下文,我正在为解析推送通知做自定义声音.服务器人告诉我,当向许多用户广播时,为每个用户在有效载荷中发送自定义声音字符串将非常困难.作为一种解决方法,我试图使用单个声音文件,每次用户选择新声音时都会动态覆盖该声音文件.
因此,声音文件需要由系统自动检测,并且可以在运行时由应用程序修改.将文件添加到主包不起作用,因为它是只读的.我希望〜/ Library/Sound中的文件可以编辑.
我不知道如何继续这一点.任何帮助将不胜感激.
更新:我错误地尝试使用在运行时创建目录
try fileManager.createDirectoryAtPath("Library/Sounds", withIntermediateDirectories: true, attributes: nil)
Run Code Online (Sandbox Code Playgroud)
应该是正确的代码
let libraryDir = NSSearchPathForDirectoriesInDomains(NSSearchPathDirectory.LibraryDirectory, NSSearchPathDomainMask.UserDomainMask, true)
let directoryPath = "\(libraryDir.first!)/Sounds"
try fileManager.createDirectoryAtPath(directoryPath, withIntermediateDirectories: true, attributes: nil)
Run Code Online (Sandbox Code Playgroud)
应该使用ios7中的游戏中心报告得分
[GKLeaderboard reportScores:scores withCompletionHandler:^(NSError *error) {
//Do something interesting here.
}];
Run Code Online (Sandbox Code Playgroud)
但是,我在GKLeaderboard中找不到对此方法的任何引用.
此方法不存在:https: //developer.apple.com/library/ios/documentation/GameKit/Reference/GKLeaderboard_Ref/Reference/Reference.html
GKLeaderboard.h也不包含reportScores方法.
之前使用GKScore的reportScoreWithCompletionHandler方法报告得分的方式已被弃用,因此我不愿意使用它.
有谁知道在ios7中向游戏中心报告得分的正确方法是什么?