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.
Search results for
missing package product
50,279 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
I've been getting similar problems with apps in production lately. It seems like the receipts that get installed alongside the app or its updates are corrupt, or at the very least undocumented. Do you still get this problem after manually requesting a receipt refresh in your app?
Topic:
App & System Services
SubTopic:
StoreKit
Tags:
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
Importing AVFoundation failed, so I'm guessing not, but wanted to double check in case I missed something.
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?
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?
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
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:
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
30 FPS for such a simple example with El Capitan on a MaPro 2013 with D500 ???Is it a joke ? Did I miss something ?
same here after update iPod touch (Gen 5) to ios Beta 9.Lost all the music on the iPod. The checkboxes are still marked in iTunes but doesn't sync the music. The Rest (App, Contacts, Calendar, etc.) is still there.On the Mac is 10.11 beta installed.
Topic:
App & System Services
SubTopic:
Core OS
Tags:
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?
Hi; I'm messing with the new CloudKit Web Service, and the fetch zones web service it's giving an auth required...https://api.apple-cloudkit.com/database/1/iCloud.xxx.xxxxxxx.xxxx/development/public/zones/list?ckAPIToken=MYAPITOKENI'm trying to query the public database, so what is I missing here?
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:
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.