Search results for

show when run

112,755 results found

Post

Replies

Boosts

Views

Activity

SecKeychainGetStatus concurrent access
SecKeychainRef ...; SecKeychainStatus status; err = SecKeychainGetStatus(keychain, &status); if(err == noErr) { if((err = SecKeychainUnlock(keychain, keychainPassword.size(), pass, pass != 0))) { throw unable to unlock keychain; } } else if(err == errSecNoSuchKeychain) { const char* pass = keychainPassword.empty() ? 0 : keychainPassword.c_str(); if((err = SecKeychainCreate(keychainPath.c_str(), keychainPassword.size(), pass, pass == 0, 0, &keychain))) { throw unable to create keychain; } k.reset(keychain); }I use a code like this to Unlock the keychain and create it if not exists, then I have a test case were several servers use the same keychain, and they could run this code concurrently if separate processes.In such case I see that SecKeychainGetStatus some times fails with error: 100022 description: UNIX[Invalid argument]. Could this be related to concurrent calls to SecKeychainUnlock/SecKeychainCreate on the same keychain?Any recomendations on how to handle this execenario in wich several
1
0
504
Jun ’15
Notes from What's New in Network Extension and VPN
What is the Network Extension framework?Provides APIs for the app to extend the core networking feature for OS X and iOS.NEHotspotManagerNEVPNManagerNETunnelProviderNEFilterProviderContent Filtering - NEFilterProvider; filters network contentNEHotspotManagerUsed to create apps that connect to WiFi hotspotsCustom authentication for WiFi HotspotsRegister with the system as a Hotspot Helper- From the backgroundClaim hotspots with high level of confidencePerform initial authenticationHandles the authentication sessionAnnotate Wifi networks in the WiFi network scanner (Display WiFi networks in the iOS X network scanner with a little tag that displays something (your company name, for example) under the SSID name.)NEVPNManagerPersonal VPNConfigure and control the built-in IPSec client- Create a Personal VPN configuration- Supports IKEv1 and IKEv2- Configure Connect On Demand- Configure HTTP Proxies- Cooperates with Enterprise VPN configurationsIKEv2 protocol enhancements- Mobility across interfaces using MOBIKE- Fu
3
0
12k
Jun ’15
Running Tasks in background with MPMedia
I'm developing an app that switches music using a MPMusicPlayerController.systemMusicPlayer() from the MPMedia framework. I need the song to change anywhere between 30 seconds and 1 minute for up to 100 minutes when the app is in the background. In the foreground of course everything works exactly how it should but in the background I can get the app to do this for about 3 minutes which seems to be the limit imposed on background tasks in iOS8. Is there a way to extend the allowable time that app can operate in the background?I'm currently using the following code to register the background task where background_task is of type :var background_task: UIBackgroundTaskIdentifier = UIBackgroundTaskInvalid func registerBackgroundTask() { println(Background task registered) background_task = UIApplication.sharedApplication().beginBackgroundTaskWithExpirationHandler { [unowned self] in self.endBackgroundTask() } }and then this ends it: func endBackgroundTask() { NSLog(Background task ended.) UIApplication.sharedAppl
0
0
322
Jun ’15
Unpaired, now frozen
Elected to unpair my watch from my phone running iOS 9 and, now, the watch is stuck at the booting screen with only one line filled inaround the radius. I've tried to reboot the watch several times with no change. Any ideas? Steps I took include the following-unpaired watch from phone--display showed unpairing occurring-display went black-continued to check to see if unpairing was occurring-Display remained black-performed two finger restart by holding down crown and side button--display shows apple logo followed by lines around radius.one line filled inhave contacted AppleCare and, due to beta software, they will not support the device at all.
0
0
264
Jun ’15
Lifetime of ODR content
If I download on-demand-resources during an app session, either calling endAccessingResources() or dealloc'ing the triggering NSBundleResourceRequest will mark the content as surplus to requirements, effectively. That content may be purged.I'm trying to understand when that would occur.WWDC'2015 session 214 discusses this at around 32minutes in. They say resource packs are only purged when the system is low on space. They also say that asset packs are selected for deletion based on the time of last usage and preservation priorities.I didn't hear anything about which apps are examined and in what order. Is it like memory, where the apps are ranked and examined based on highest consumption of apps not presently running first?Or is it just about the max 2GB of ODR data in use at any given time, so per app?
5
0
2.2k
Jun ’15
Reply to Bitcode and Assembly?
One small correction: The option name to include bitcode is -fembed-bitcode.As far as the question about whether Neon intrinsics are preferable to writing assembly code, I will say yes, at least in most cases. If you use intrinsics, the compiler can optimize the code to run well on different processors, and it is generally easier to maintain C code than assembly. But, if you need to hand-optimize the assembly to get the performance you want, you can certainly do that and it should just work for iOS even when you have bitcode for the other parts of your code.
Jun ’15
Reply to Sample code to play sound?
Adeeb,The mp3 is used in my earlier version that worked on WK 1.0. But will double check it.While the watch isn't muted, is there a way to check the sound levels on it? Do we have to add a sound slider on it?That's the odd part, if I'm running it from the watch, I can't debug using Xcode. hopefully in the future they'll add that feature...so can't really check the error propertly.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Get rid of Open Directory!
You can't be more wrong!At the same time that Apple adopted this older system, Microsoft, with Windows 2000, moved away from it and began using their much more robust Active Directory systemI've been working with Active Directory and Open Directory for more than 10 years now, and I would like to express my opinions:Microsoft's Active Directory and Open Directory are both based on LDAP and Kerberos. In no way Open Directory is older technology as Windows NT.Apple has been supporting Active Directory for years. You could even modify ADs schema to host Apple objects for native client management.You could buy a Mac mini, install OS X Server, bind to AD and use AD to authenticate access to Profile Manager.There's no way an Active Directory server would run on top of OS X, as AD si an integral part of Windows Server and integrates and depends on other services.I don't think Apple is interested in server hardware anymore. They are focusing in building client devices and embracing the cloud with iCloud, VPP
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Parsing WSDL Web Services
Hello, I am new to the Swift development world and would like to know what the best way (working sample code would be beneficial) to run a web service, particularly WSDL, and then parse the XML code for display? I've scoured the internet on examples of this, but there doesn't seem to be a whole lot of examples out there, and if there were, they were written in objective c.
5
0
4.5k
Jun ’15
Reply to How to use the new Header View for .swift files?
Bryan: There are two approaches in Xcode 7 …• You can switch to seeing the interface for your Swift file (which will replace the file in the editor) by using the Generated Interface item in the related files popup in the upper-left of the source editor window. (It will be the item at the bottom of the popup)• You can view the interface alongside your Swift file by opening the Assistant Editor (using the menu item or the toolbar control in the upper-right of the workspace window.) The Counterparts category (which is the default) will show you the generated interface for your Swift file (the title will be the name of your file, followed by (Preview).)
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
dyld error
Help!! I have been trying to resolve this issue for days now. Been to every forum. I'm getting this errordyld: Library not loaded: /Library/Frameworks/Vorbis.framework/Vorbis Referenced from: /private/var/mobile/Containers/Bundle/Application/ Reason: image not foundSo frustrated.... And yes I have tried embedded binaries, copy files, etc.Works fine on simulator, but this error pops up when I try to run it on device. (ipad iOS 8.3. Using latest xCode)
2
0
712
Jun ’15