I compiled my application (which targets 10.9 as minimum) with 10.11 SDK, but when I run it on a 10.10 machine, I get:dyld: lazy symbol binding failed: Symbol not found: _AudioUnitInitialize Referenced from: /Users/josh/Documents/depot/UE4/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-CoreAudio.dylib Expected in: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolbox dyld: Symbol not found: _AudioUnitInitialize Referenced from: /Users/josh/Documents/depot/UE4/Engine/Binaries/Mac/UE4Editor.app/Contents/MacOS/UE4Editor-CoreAudio.dylib Expected in: /System/Library/Frameworks/AudioToolbox.framework/Versions/A/AudioToolboxThe headers in 10.10 and 10.11 look the same, so I can't figure out why it wouldn't be able to find the function in 10.10 frameworks. Has anyone else seen anything like this?It's only an issue building on 10.11 and running on 10.10. Other configurations work fine.
Search results for
show when run
112,752 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
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.
I am developing a Mac applicaiton (soon to be iOS as well) and I'm experimeting with CloudKit as an alternative to my existing database systems.I have noticed that all kinds of operations, queries, saves, updates, etc. all take around 30 seconds to perform:Is there something I have misconfigured?Is this normal?What am I doing wrong, or am I thinking of CloudKit in a different way than it is indented to be used?EDITUpon purchasing a new MacBook and running my application on the new device, I realized that the CloudKit latency problems only existed on my iMac, not the new computer. I am still not sure what is causing this (problem still exists on the iMac).
I'm just reading up on the CoreBluetooth module and am trying a simple playground. This is on a late 2012 iMac which according to the system report definitely has BLE support / it is registered under my developer account.Is there anything additional I need to do to get it running in a playground? At the moment the code is just assigning the delegate and checking the state. It triggers the print in the unsupported case.class BLEScanner: NSObject, CBCentralManagerDelegate { var central: CBCentralManager? override init() { super.init() let centralQueue = dispatch_queue_create(hi, DISPATCH_QUEUE_SERIAL) central = CBCentralManager(delegate: self, queue: centralQueue) } func centralManagerDidUpdateState(central: CBCentralManager!) { switch (central.state) { case .PoweredOff: println(Powered off) case .Unauthorized: println(Unauthorized) case .Unknown: println(Unknown) case .PoweredOn: println(Powered on) case .Resetting: println(Resetting) case .Unsupported: println(Unsupported) default: break } } } let bl
Yeah I'm seeing running OS2 is difficult right now. Hopefully still can get some answers to get a clear picture in my mind.So if we need to support 1.0, 1.0.1 and 2.0 for some time, there will be the below FOUR targets.1. I'm assuming that when the user installs the App via the Appstore, then the appropriate target will get installed on his device?2. Distribution will now mean having the below number of bundle idsTarget ecosystem will look like below:1. The iPhone app Target = iPhone App Bundle IdFor prior verisons of Watch2. Watch extension Target = extension's bundle id as per the parent iPhone App Bundle Id3. Watch App Target that works for 1.0, 1.0.1 = Watch App's bundle id as per the parent iPhone App Bundle IdFor 2.04. Watch App Target for 2.0 = Assuming that the bundle Id for this will be based on the parent iPhone App Bundle Id but will follow different naming conventions and will need to be created ?
Topic:
App & System Services
SubTopic:
Core OS
Tags:
There is an unfortunate behavior when multiple Finder Sync extensions are simultaneously running. If two or more Finder Sync extensions are configured to watch the same folders by setting [FIFinderSyncController defaultController].directoryURLs, then there's a race condition where badges will only be requested ( via requestBadgeIdentifierForURL) and drawn from the extension that started first. Normally, this wouldn't be an issue if extensions are only watching the folders they created, but Dropbox for instance seems to monitor the entire ~/Documents folder (not just their own Dropbox folder), so if the Dropbox Finder Integration extension runs first, no other extension will show its file badges.So what is the expected behavior if two Finder Sync extensions are watching the same folders? There needs to be some intelligent logic to determine which extension gets to show its badges (maybe whoever has registered the folder closest to the actual folder, so whoever is monitoring
I've been working on an app written in Swift, and I recently updated my iPhone to the iOS 9 beta. I then tried to test my app on the phone but Xcode 6 said that I couldn't because my version was not supported. So I went ahead and got the Xcode 7 beta. When I opened my project it asked me if I want it to convert my code to Swift 2 syntax. What should I do? There aren't that many changes it wants to make. Will my Swift 1 code still run in a Swift 2 compiler?
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?
Ok, I've got it sort of narrowed down. I setup a new user on my machine, checked out the source, and opened it with Xcode. No problems.Then I went to build and run, and hit the you don't have a profile, import one or revoke and re-issue dialog. So, I exported the profile from my regular user login, and imported it in the new user. Boom. Shortly all the ?s were showing up on my source files just like on my regular user login. So it's got something to do with whatever was imported. When I exported, I was surprised to find that it exported 4 accounts - not just the one I was expecting, so there must be something funky in one of those accounts.From my usual login, I had previously tried deleting all the accounts (under Xcode->Preferences->Accounts), to no avail. So I've a clue where the problem lies, but still no idea how to fix it easily (and I'm not counting having to create a new account as easy!).
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
I've been working this week on a test app to kick the tires of HKWorkoutSession and have been following the pattern exhibited in the What's New in HealthKit talk.I'm to the point where I've got something working to track a workout, but I'm finding that the updateHandler for my HKAnchoredObjectQuery is firing very infrequently. Walking and Running distance updates periodically, but heart rate values update very rarely if at all. I know something is happening, because I see the green LEDs on the watch measuring my heart rate and the values propagate into HealthKit. There just aren't very many of them.Is this the designed behavior, or can we expect to see more samples for HKWorkoutSession generated in a later watchOS 2 seed?Has anyone else seen this work yet with retrieving more granular data?
Hi,I am just starting to make an apple watch app/extension for an app that I already have on the iPhone. On the iPhone the app has a core data store that it uses to store data. Looking at Apple's documentation it seems that the right way to access this core data store on the watch would be to setup the data store in a shared app group container.To do this I would also need to perform the following steps :1. Migrate the existing data store from the current location into the shared container on app startup (at least the first time)2. Take care of cases where the core data store is encrypted (we encrypt the sqlite DB underneath) and also figure out if that will conflict with the migration in step 1.The steps above are possible to do although they are not trivial.I was wondering what issues would there be if I was to avoid this step altogether (using the shared container) and simply called openParentApplication:reply: everytime my watch app needed data ? My gut instinct tells me that this method would be wrong bu
Hello all,I'm working on an app that uses animated images in WKInterfaceGroup backgrounds. I have this section of code to set the images:[group setBackgroundImageNamed:@Test-]; [group startAnimatingWithImagesInRange:NSMakeRange(0, 14) duration:15*(1.0/30.0) repeatCount:1]; [shapeGroup setBackgroundImageNamed:@Test2-]; [shapeGroup startAnimatingWithImagesInRange:NSMakeRange(0, 14) duration:15*(1.0/30.0) repeatCount:1];There are 50 of these groups on screen, and I have coded it such that all of them MUST run through the code I posted in order to change their image. Nothing changes the alpha values of the groups. I have ensured that nothing is asking the groups to update to different images at the same time.The behavior I get is extremely inconsistent. Sometimes, group will run its animation. Sometimes, shapeGroup will run its animation. Sometimes both run, and sometimes neither run. There is no consistency either. A group that might have just successfully displayed o
The OS needs swap space just to run...maybe that process is a bit rough in the beta. Otherwise, be sure to file bugs.◅▻
Topic:
App & System Services
SubTopic:
Core OS
Tags:
In order to make it less boilerplate-ish and to avoid having to update the wrapper to allow new classes to adopt the protocol, an struct wrapper is probably a simpler solution than an enum.protocol SomeProtocol { /* ... */ var hashValue: Int {get} func isEqualTo(v: SomeProtocol) -> Bool } struct SomeProtocolThing: Hashable { let thing: SomeProtocol var hashValue: Int {return thing.hashValue} } func ==(lhs: SomeProtocolThing, rhs: SomeProtocolThing) -> Bool {return lhs.thing.isEqualTo(rhs.thing)} var things = Set<SomeProtocolThing>()or, if any difference in run-time type (even subclasses) is enough to make two things unequalprotocol SomeProtocol { /* ... */ var identifier: String {get} } struct SomeProtocolThing: Hashable { let thing: SomeProtocol var hashValue: Int {return thing.identifier.hashValue} } func ==(lhs: SomeProtocolThing, rhs: SomeProtocolThing) -> Bool { guard ((lhs.thing.dynamicType) == (rhs.thing.dynamicType)) else {return false} // false if runtime type is different ret
Topic:
Programming Languages
SubTopic:
Swift
Tags:
I have two devices that I am testing iOS 9 on (both are iPhone 6 Plus's). I noticed that one of these devices is running warm when sleeping and on the charger, with no apps loaded, no GPS activity, etc (airplane mode is on). Instruments is indicating that once the device goes to sleep, the mediaanalysisd process is consuming 28% CPU almost constantly (it does drop to 12% after awhile, but it keeps running). This is a system/root process, and I presume it is looking at the media library. I am only seeing this on the one device. They have different sets of apps and settings, so that is not surprising. Does anyone know more about that process?