beta

prepare(for segue: UIStoryboardSegue, sender: AnyObject?) missing in swift 3.0/Xcode 8 b6

你离开我真会死。 提交于 2019-11-27 23:11:55
Using xcode 8 beta 6. Type override func prepare and I see this .. But I am looking for prepare(for segue: UIStoryboardSegue, sender: AnyObject?) Is this a bug? This class is a subclass of ViewController? Maybe this was a bug in Beta 6. I'm using the GM seed, and it is working: BTW: In beta 6, the method was renamed to prepare(for segue: UIStoryboardSegue, sender: Any?) 来源: https://stackoverflow.com/questions/39469915/preparefor-segue-uistoryboardsegue-sender-anyobject-missing-in-swift-3-0-x

In Xcode I see (no paired Apple Watch) even though the watch is paired and the watch's UDID is registered

被刻印的时光 ゝ 提交于 2019-11-27 13:22:33
问题 My phone is listed as an ineligible target in Xcode and out to the side it says ( no paired Apple Watch ). My Apple Watch is registered under iOS Devices. I can see the UDID. The watch has watchOS 2.0 installed and my iPhone 6 has iOS 9 installed. The iPhone pairs just fine with the watch and I can install apps. I've tried rebooting both the watch and the phone. I've tried rebooting Xcode. I tried creating a new scheme in Xcode but it still shows (no paired Apple Watch). I can choose Product

Bootstrap 4 custom build generator / download [duplicate]

独自空忆成欢 提交于 2019-11-27 12:08:21
This question already has an answer here: Customizing Bootstrap 4 css 2 answers Does anyone know about an alpha/beta bootstrap 4 custom generator, same that is available for bootstrap 3 at Customize and download ? https://getbootstrap.com/docs/4.0/customize/ still unavailable As discussed here , there will not be a customizer for Bootstrap 4. This means that you'll need to set up build tools for yourself. This is my workflow (in NodeJS): Create a new project with npm init Install Bootstrap with npm install bootstrap Install build tools. To make this easy and only need to use one command, we'll

Xcode - Error creating LLDB target

吃可爱长大的小学妹 提交于 2019-11-27 11:45:36
I'm getting this error whenever I build in XCode 6 beta 4. It seems to be making my app insanely slow. Warning: Error creating LLDB target at path '/***/***/***/***.app'- using an empty LLDB target which can cause slow memory reads from remote devices. What exactly does this mean and how do I fix it? Thanks in advance! khanhlvg Did you use Architectures=$(ARCHS_STANDARD_32_BIT) and run your app on a 64 bit device? (iPhone 5S or iPhone 5S simulator) Apple seems to be stricter with apps which don't support 64bit. So if there is no specific reason, I think it's better to include arm64 in your

Swift 3 - Comparing Date objects

孤者浪人 提交于 2019-11-27 08:48:09
I'm updating my app to Swift 3.0 syntax (I know it's still in beta but I want to be prepared as soon as it released). Until the previous Beta of Xcode (Beta 5) I was able to compare two Date objects using the operands < , > and == . But in the latest beta (Beta 6) this isn't working any more. Here are some screenshots: As you can see in both screenshots, these are two Date objects. But I get the following error: What am I doing wrong? The functions are still declared in the Date class: static func >(Date, Date) Returns true if the left hand Date is later in time than the right hand Date. Is

Xcode 7 Beta 6, dyld ___NSArray0__ crash

假如想象 提交于 2019-11-27 05:50:11
问题 For the first time I was able to compile my app in Xcode 7 (failed in beta 4 and 5). So, thats good progress I guess. However, when i load my app on my iPhone 6, iOS 8.4.1, it crashed in the debugger with the following message: dyld: Symbol not found: _NSArray0 Referenced from: /private/var/mobile/Containers/Bundle/Application/0294DF62-AE80-485D-BB11-8C3A5D39777D/Boxtiq.app/Boxtiq Expected in: /System/Library/Frameworks/CoreFoundation.framework/CoreFoundation in /private/var/mobile/Containers

Xcode 10 - image literals no longer available

☆樱花仙子☆ 提交于 2019-11-27 05:41:24
问题 Xcode 10 Release Notes: "Code Completion for Swift image literals has been removed in Xcode 10" So it's not a bug that I couldn't add images in the code (and run older projects). How do we then add images from now on in the code as just typing UIImageView(image: won't accept any png or jpeg. let cellImage: UIImageView = { let image = UIImageView(image: ???)) return image }() System: macOS Mojave Xcode: Xcode 10 Beta 4 回答1: In Xcode 10 and Swift 4.2 , only the code completion function (or auto

Distributing for App Store using beta versions of Xcode

蹲街弑〆低调 提交于 2019-11-27 01:31:59
问题 When I try to distribute an app I get this error: Xcode attempted to locate or generate matching signing assets and failed to do so because of the following issues. No matching provisioning profiles found for "Application/TheApp.app" None of the valid provisioning profiles allowed the specified entitlements: application-identifier, beta-reports-active, keychain-access-groups. I don't really understand what that error means. Any help? 回答1: You can't submit an app to App Store with beta

iOS 11 Core NFC - any sample code?

ぐ巨炮叔叔 提交于 2019-11-27 00:46:05
问题 I just installed the first iOS 11 beta to an iPhone 7 and am interested in trying the NFC. There's nothing about it in settings. I am wondering if there's any sample code out there showing how to read a tag. Can anyone show how to use the Core NFC SDK, in a code snippet? 回答1: In the Apple Developer site, create a new App ID and make sure that NFC Tag Reading is enabled. Add the following lines to your .plist file: <key>NFCReaderUsageDescription</key> <string>NFC Tag!</string> and these to the

Xcode 6 / Beta 4: using bridging headers with framework targets is unsupported

大憨熊 提交于 2019-11-26 23:46:18
I just upgraded to Xcode 6 Beta 4 and have a framework that I created for Live Views in Beta 2. Due to another swift bug , I needed to use some Obj-C code. When upgrading though, I get the following error: error: using bridging headers with framework targets is unsupported I have not seen anything in the release notes, or found any other migration path. Has anyone else seen this and arrived at a solution? I realize that Beta 3 eliminated the need for frameworks for live views, but it makes sense in my case if I can get it to work. I can remove it though as a fallback, but would prefer to use a