Search results for

missing package product

50,279 results found

Post

Replies

Boosts

Views

Activity

HKMetadataKeyMenstrualCycleStart metadata crash for HKCategoryValueMenstrualFlow type
Trying to implement the new menstrual flow object type in HealthKit, but getting an error when creating the sample. I coded it myself first, but it also fails with the code from WWDC 2015 session 203 video (about 11:24) below: let dict = [HKMetadataKeyMenstrualCycleStart: true] let type = HKCategoryType.categoryTypeForIdentifier(HKCategoryTypeIdentifierMenstrualFlow)! let value = HKCategoryValueMenstrualFlow.Medium.rawValue let date = NSDate() let sample = HKCategorySample(type: type, value: value, startDate: date, endDate: date, metadata: dict)This builds, but running results in the following on line 5 above:+[_TtCSs29_NativeDictionaryStorageOwner000000011941B4B0 hk_acceptsMetadataValue:]: unrecognized selector sent to class 0x11941b4b0Without the metadata dictionary, it complains at runtime that the specified key must be set in metadata. Either I'm missing something obvious and will have a big facepalm, or it'll likely be fixed in a beta++, but if anyone has better luck, please share.
1
0
407
Jun ’15
UITableView tableHeaderView resizes after transition/reappear
Though that this might be a better place to post this than stack overflow:I'm getting some odd behavior. I'm setting a tableHeaderView as follows: class MyTableViewController: UITableViewController { ... override func viewDidLoad() { ... var myHeaderView = NSBundle.mainBundle().loadNibNamed(MyHeaderView, owner: self, options: nil).first as? MyHeaderView tableView.tableHeaderView = myHeaderView ... } ... }When the view loads up the first time, it displays correctly. Auto-layout gives it a height of `30`, and the table header height adheres to it.When I segue to another view (via tapping a cell in the `UITableView`), then hit the back button, the `UITableView` draws with the correct height as well.However, a split second after everything loads correctly the `tableViewHeader` resizes itself and covers a bit of the first cell. This is extremely frustrating because I can't seem to figure out where it's happening.I added some log lines. Here's what it looks like after hitting the back button: viewWillAppear: header
Topic: UI Frameworks SubTopic: UIKit Tags:
0
0
933
Jun ’15
Safari shows a 404 error, but not the error path
Today while developing a web app, I noticed a 404 error in the console. However, unlike most 404 console errors, it did not show the path to the resource (html file) it was trying to load. Typically, I use this info to instantly determine whether there is a typo in my code or if a resource was not uploaded, etc.Is this by design? Am I missing something?
0
0
433
Jun ’15
Xcode error: unable to copy symbols from this device
I was working on creating an app for Watch OS 2. Wanted to test it out on the watch so plugged in my iphone I used in the past. It gave it as an illegibale device. So I went to devices and saw the following error:Unable to copy symbols from this deviceXcode was unable to read the required data from the device.The iphone was updated to IOS 9 as needed to get the watch OS working. Anything I'm missing?
1
0
7.1k
Jun ’15
Apple watch simulator no longer runs after updating to Xcode 6.3.2 (6D2105)
I've updated my Xcode to Xcode 6.3.2 (6D2105). Now all my existing Apple Watch projects no longer open the Apple Watch simulator (but code runs).I've tried creeating a clean project as well and added the Watch target. The WatchKit App, Notifcation, and Glances targets run, but the Apple Watch simulator doesn't show up.Only the iPhone target sim appears (and runs when that target is selected).I'm I missing some new setting to configure the sim to appear?PS: Running iPhone 6 / iOS 8.3 (12F69) sim
1
0
745
Jun ’15
Reply to watchOS 2b1 wiped Activity data
But it is weird. I lost the rings in the activity app and also the amount of calories, steps etc. But the piles are still there... and I just checked my entries in the health app. Everything is completely there of these specific two days.I think once this problem is solved we'll get our rings back 🙂
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Swift 2.0 behaved weird when fetching data using NSData (Playground give different result from the Actual App with same Code)
So I just downloaded Xcode 7 and start playing with Swift 2I use one of my previous project and also a playground for testing new syntaxes.However I get into trouble when I use this line of code to fetch raw data from an free online apilet dataSource = NSData(contentsOfURL: NSURL(string: http://api.openweathermap.org/data/2.5/weather?id=5375480)!)Inside playground, the code ran perfect and I get excactly what I what.However I got nil for the dataSource everytime when I build the App on iOS 9b1 or either simulator, since the class is excactly same, I just can't understant why this happened.I try the product I built from my previous project using Xcode 6.3.2 with Swift 1.2 Syntax which is running on the same iPhone with iOS 9b1, I still get perfect result back, therefore it shows that it's nothing to do with hardware settings or API problems.Since I'm not sure if either I have missed something is important or it just an other early-pre-release bug cause this problem, please let me know if you
1
0
938
Jun ’15
Strange bug - call list duplicated from other device
It's very strange, I have one device (iphone6) with iOS 8.4 (b3 and now b4), which shares the AppleID with another device (iPhone 5s - iOS 8.3). Both are using the same iCloud settings and iTunes library/login for iTunes match. Both back up to the iCloud backup but as different devices. Suddenly (soon after switching the iPhone 6 to 8.4b3, I *think*) the telephone call list of my iPhone 5s got duplicated on the iPhone 6 but not the other way round. After I had phoned my 5s the other day to find it my 6 showed missed call from [my iphone 6] in the night. This is puzzling. Anyone else encounter this?
0
0
243
Jun ’15
Reply to Can you create a Set of a single protocol?
In a simple version, any two objects which are not the same class could just return false and if they were the same class could do something like the current Equatable method.But sometimes two values that are semantically equal are not the same type:let myInt = 2 let myDouble = 2.0 myInt == myDoubleMaybe you could special-case numeric types, but sooner or later somebody would make the same mistake with different types. It might be 2 and 2, or it might be a String and an NSAttributedString, or it might be a Product and a ProductID. But whatever it was, somebody would write some code they expected to work, and then they'd be surprised when it didn't.Swift is designed to prevent these kinds of problems. So Swift's designers recognized that, actually, there's something a little funny about comparing two values of different types. Iftwo values can never be equal, why are you testing whether they're equal or not? That doesn't really smell right; you're probably doing something wrong. Let's just make the co
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Bluetooth Issues
Lost bluetooth connectivity with iPhone yesterday. Was close, but not near, to a friendly WiFI location. Fiddling with options on watch or phone made no difference. Was that way for 30 min or longer.What fixed it was a watch reboot. Power down-> then power up.
0
0
277
Jun ’15