Struggling with the syntax a bit, is there an example anywhere?I have a snippet of code here:let request = NSFetchRequest(entityName: StockCode) request.predicate = NSPredicate(format: ean == %@, ean) let results = managedContext.executeFetchRequest(request) as! [StockCode]Basically finding a product code from a bit list of them.The last line is giving Call can throw, but it is not marked with try and the error is not handledIf I was better with try/catch historically, then I may be able to solve it, but I've tried a few things and cant solve it. I'd really appreciate some help if there's enough info here to be able to. Thanks.
Search results for
We are unable to process your request
69,584 results found
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
Generally speaking, Apple does not monitor these forums. You should use the Report Bugs link at the bottom of each page to submit a feature request. That's the only thing they look at when setting their development priorities.
Topic:
Developer Tools & Services
SubTopic:
Developer Forums
Tags:
Please use the Report Bugs link at the bottom of the page to submit feature requests. The squeaky wheel gets the grease.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags:
Well, the tagline for this part of the forums reads: Provide feedback or request enhancements to the forums, so I think I’m exactly in the right place.
Topic:
Developer Tools & Services
SubTopic:
Developer Forums
Tags:
Watch the What's New in Swift talk. Since `executeFetchRequest` is a throwing method (https://developer.apple.com/library/prerelease/ios/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSManagedObjectContext_Class/index.html#//apple_ref/occ/instm/NSManagedObjectContext/executeFetchRequest:error:), you need to wrap it in a `do { ... } catch { ... }`. So I think it should look like this:do { ... let results = try managedContext.executeFetchRequest(request) as! [StockCode] } catch { fatalError(Fetching from the store failed) }This is based on my take away from the talk. I still haven't downloaded Xcode 7 :[
Topic:
App & System Services
SubTopic:
Core OS
Tags:
You could try submitting a enhancement request bug report for this Bluetooth audio capability, but it's very likely a dup, as it's been asked about in the forums here for years.
Topic:
Media Technologies
SubTopic:
Audio
Tags:
Update:So I ended up using one of my technical support credits on this question, but the results weren't very pleasing regarding HTTP Live Streaming (HLS).Our engineers have reviewed your request and have concluded that there is no supported way to achieve the desired functionality given the currently shipping system configurations - Apple Developer Technical SupportI guess I'll start a new post under HTTP Live Streaming, since that is the only issue now.
Topic:
Media Technologies
SubTopic:
Audio
Tags:
Hello, I'm working on app that consumes multiple HLS streams (each a different camera angle), however I am unable to get the streams to play in sync. My current procedure works flawlessly for playing a recorded session (mp4), but live sessions (m3u8) do not even attempt to sync.Current Procedure1. Create a clock to synchronize toCMClockRef syncClock; CMAudioClockCreate(kCFAllocatorDefault, &syncClock);2. Initialize players// example HLS stream NSURL *url = [NSURL URLWithString:@http://devimages.apple.com/iphone/samples/bipbop/bipbopall.m3u8]; NSMutableArray *players = [NSMutableArray array]; // create NUM_STREAMS AVPlayers for (NSUInteger i = 0; i < NUM_STREAMS; i++) { // initialize player with example url, and set master clock to our sync clock AVPlayer *player = [AVPlayer playerWithURL:url]; player.masterClock = syncClock; // add the player to the players array [players addObject:player]; }3. Play in syncfor (AVPlayer *player in players) { [player setRate:1.0 time:kCMTimeInvalid atH
Due to the nature of how Apple Pay works, when you implement it in your project your card will not actually get charged (even though you'll see a notification that you did). Your payment token gets passed into the didAuthorizePayment delegate function, so it really depends on what your code is doing there. If it's not really doing anything, then do not fret, your card is not getting charged 🙂 Typically you would implement the mentioned delegate method such that it passes the payment token to some sort of Payment Platform you'll have set up that actually processes the charge. However depending on the payment platform you use, you could create a sandbox environment in there so that your card will not be charged.Take a look at the Ray Wenderlich's guide for Apple Pay, it'll give you step by step instructions on how to set Apple Pay up and how to set up a sandbox environment on the payment platform so that your credit card doesn't get charged.
Topic:
App & System Services
SubTopic:
Apple Pay
Tags:
Having this problem on all the latest apple betas. IOS 9 & 8.4 and OSX 10.10 and 10.11 betas. I found this in our clearpass server for onboarding, i wonder if the new updates are actually impementing this added trust requirement -The server certificate is used by ClearPass to secure web (HTTPS) and authentication (RADIUS) traffic. It can be configured in Policy Manager under Administration » Certificates » Server Certificate.The optimal configuration for Onboard is a server certificate issued by a trusted commercial certificate authority. A list of certificate authorities trusted by iOS devices can be found at http://support.apple.com/kb/HT5012Alternatively if you only wish to use a single Onboard Certificate Authority then you can use that Certificate Authority to sign the server certificate. Users will then have to install the certificate as part of the provisioning process. Refer to the Deployment Guide for more information.For testing purposes you can disable the requirement for HTTPS on the
Topic:
App & System Services
SubTopic:
Core OS
Tags:
Hello,I have an simple NSDocument subclass application and also custom format conforming to wrapper : com.apple.packageI have defined Document, Export and Import UTIs for my format however I am unable to open my document files from File>Open... The NSOpenPanel is not allowing me to select my custom documents.I can however double click my document in finder to open it, also if I drag the document from finder over application icon in dock is working normally.I am not sure what is happening.This are my Info.plist keys for application:Document:<key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleDocumentTypes</key> <array> <dict> <key>CFBundleTypeName</key> <string>com.myapplicationdomain.application</string> <key>LSHandlerRank</key> <string>Owner</string> </dict> </array> <key>CFBundleTypeExtensions</key> <array> <string>cjewrapper</string> </array> &
After upgrading to El Capitan, I now get this error when running my simulator for 7.1 using Xcode 6.3.2 (8.3 simulators are fine)1) I checked for /etc/launchd.conf and there is none2) I tried deleting the 7.1 runtime and reinstalling it from xcode / preferences / components3) I tried deleting and readding the simulator for the devices (4s, 5, etc)3) I tried Xcode 7 BetaHere are some logs from https://forums.developer.apple.com/message/5474#5474-Jun 16 11:55:30 com.apple.iphonesimulator[18024] <Error>: Error Domain=NSPOSIXErrorDomain Code=60 Unable to boot the iOS Simulator. UserInfo=0x7ffa9285bb30 {NSLocalizedDescription=Unable to boot the iOS Simulator., NSLocalizedFailureReason=launchd failed to respond.}-Process: launchd_sim [2066]Path: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/libexec/launchd_simIdentifier: launchd_simVersion: ???Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: launchd_sim
Starting with the iOS 8.4 Beta, we are unable to playback Audiobooks using MPMusicPlayerController's systemMusicPlayer API. We've also tried with iPodMusicPlayer with the same result.It looks like the systemMusicPlayer still commands the Music App, but with Audiobooks moved to iBooks, there doesn't seem to be a way to play Audiobooks anymore. We can continue to see the list of Audiobooks using MPMediaQuery APIs.Starting with iOS 8.4, what is the new way to play Audiobooks? Is there a new API? or is this a bug in iOS 8.4 beta?Thanks,Ronak PatelPS We came to WWDC as well; but were unable to find any Apple Engineers that were familiar with the MPMediaLibrary APIs.
The WWDC Your App and Next Generation Networks presentation discusses how the NSURLSession and CFNetworkAPIs in iOS 9 can synthesize IPv6 addresses when presented with IPv4 literals on an IPv6-only network.For those of us who still need to use sockets-level APIs due to existing code frameworks, is this procedure documented somewhere? Or is there any API available to just do the translation process?
This is the case in iOS 8.3 and iOS 8.4 beta. iBooks finally supports displaying chapters in iOS 8.4 beta, but we are unable to extract them. Please advise what new API we have to use, or if this is a known bug which will be corrected.
Topic:
Media Technologies
SubTopic:
Audio
Tags: