Tag: xcode8

Xcode 8.1 – 如何更新故事板中所有视图的帧?

在Xcode 8.1中,我可以通过点击“Update Frames”button更新故事板中的每个视图。 但我想更新所有视图,我怎么能做到这一点?

:无法识别的select器发送到xcode8中的实例0x170400960

运行在ios8.3上,但是运行在ios9或者10上没有这个问题。 -[CIContext initWithOptions:]: unrecognized selector sent to instance 0x170400960 2016-09-19 18:08:21.025 *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[CIContext initWithOptions:]: unrecognized selector sent to instance 0x170400960' *** First throw call stack: (0x186d8c2d8 0x1985b00e4 0x186d933a4 0x186d90154 0x186c92ccc 0x1001c1e74 0x1001c1b7c 0x1001c143c 0x1001c1cfc 0x100311e0c 0x1003116d0 0x1001d7690 0x101f3025c 0x101f2fc08 0x101eee29c 0x103db8fd4 0x103db8f94 0x103dbdc28 0x186d437f8 0x186d418a0 0x186c6d2d4 0x1904836fc […]

types'错误'的值没有成员'代码'

我将一个testing应用程序移动到Xcode 8 Beta 5,并将我的代码转换为Swift 3.我留下了一些关于从NSError切换到Error 。 我在Xcode中得到一个错误,说'Value of type 'Error' has no member 'code' 。 我仍然可以使用localizedDescription 。 code不再是Error一个值,还是仅仅是Xcode中的一个bug?

将UIWebView委托迁移到WKWebView委托方法

我正在将UIWebView迁移到WKWebView。 我已经改变了所有的委托方法。 我需要WKWebView委托方法等于下面的UIWebView委托方法。 该应用程序工作正常。 但login会话不保留 UIWebView: extension WebViewController: UIWebViewDelegate { func webView(_ webView: UIWebView, shouldStartLoadWith request: URLRequest, navigationType: UIWebViewNavigationType) -> Bool { guard let url = request.url else { return true } guard !url.absoluteString.contains("data:application/pdf") else { navigationItem.rightBarButtonItem = UIBarButtonItem(barButtonSystemItem: UIBarButtonSystemItem.action, target: self, action: #selector(share(sender:))) return true } guard url.pathExtension != "pdf" else { let safariVC […]

对于iOS 10中的新UserNotifications,是否还有〜64本地通知限制?

在iOS 9之前的所有内容中,一次可以安排64个通知的限制。 新的通知系统是否仍然如此,或者我可以提前多less时间安排新的UNUserNotifications?

尝试使用Xcode 8 Beta 3运行我的应用程序时出错

我知道很多人在尝试在Xcode 8 Beta 3中编译他们的应用程序时遇到这个错误,但是这里没有可用的答案似乎帮助我。 当试图运行我的应用程序时,我得到了通常的错误: (null): Found an unexpected Mach-O header code: 0x72613c21 ,当我扩展信息时,我得到了这个回报: Effective srcDirs: {( <DVTFilePath:0x6000008bb0c0:'/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift/iphoneos'>, <DVTFilePath:0x6080002a00c0:'/Applications/Xcode-beta.app/Contents/Developer/Toolchains/Swift_2.3.xctoolchain/usr/lib/swift/iphoneos'> )} error: Found an unexpected Mach-O header code: 0x72613c21 注意:我在Swift_2.3的文件path中看到了一些可能会导致一些答案的东西,但是我不确定。 这也可能是我的Podfile的一个问题,所以我按照这个StackOverflow答案中发布的指示,并将以下代码行粘贴到我的podfile中,以便在最后我的podfile看起来像这样: # Uncomment this line to define a global platform for your project platform :ios, '9.0' target 'Roast' do # Comment this line if you're not […]

Xcode 8 – 删除了一些button边框

我只是将我的Xcode ver从7.3更新到8.0,一些button边框消失了。 代码看起来很好,所以我真的不知道这些图层发生了什么。 顺便说一句 – 在其他一些控制器,我可以看到图层的边界。 self.button.layer.borderColor = borderColor.CGColor; self.button.layer.borderWidth = 2; self.button.layer.cornerRadius = CGRectGetHeight(self.button.frame) / 2; 之前:(图像只是例如 – 实时边界看起来不同) 现在:

Swift 3改变了getBytes方法

我试图在swift 3中运行下面的代码 var values = [UInt8](count:data!.length, repeatedValue:0) data!.getBytes(&values, length:data!.length) 其中数据是“数据”数据types(根据swift 3准则,NSData更改为“数据”) 我不能在Swift 3中运行上面的代码。编译器给出错误,“参数重复的值必须在参数之前”。 同样的代码行在Swift 2.2中工作 什么是解决scheme?

encryption信息不可用。 再试一次。 TestFlight

该应用程序上传没有错误,但是当我按下安装button,我得到这个消息: 我正在使用macOS Sierra 10.12和Xcode 8。 这在旧版本的Xcode中从来没有发生过。 什么可能是错的?

Xcode 8.1在更新MacOS和Xcode之后,“找不到匹配的configuration文件”

我正在使用TestFlighttesting我的应用程序,但在更新到MacOS 10.12和Xcode 8.1之后,我无法上传我的档案。 当我存档我的应​​用程序,点击“上传到应用程序商店…”,select我的发展,我得到这个错误。 找不到匹配的configuration文件“Applications / app.app” 没有一个有效的供应configuration文件允许指定的权利:应用程序标识符,testing报告活动,钥匙串访问组。 我到目前为止所尝试的是: 重新打开Xcode(很多次) ⌘ + , >select团队>删除每个configuration文件>重新下载每个configuration文件(每步之后重新打开Xcode) 重新下载并安装了我的证书和configuration文件 删除每个configuration文件并构build应用程序