Search results for

xcode github

92,015 results found

Post

Replies

Boosts

Views

Activity

Swift Exhaustive Error Handling
Hello, I have a situation where Xcode 7 beta is complaining that Errors thrown from here are not handled because the enclosing catch is not exhaustive. But I'm confused because, to me, it does appear that my cases are exhaustive, covering all of the one cases in my ErrorType enum.Here's my code:import UIKit protocol SearchItemView { var center: CGPoint { get } var radius: CGFloat { get } var color: UIColor { get } init(center: CGPoint, radius: CGFloat, color: UIColor) } enum SearchViewModelError: ErrorType { case InvalidClassName // only one error case } class SearchViewModel { private var searchItemViewClassName: String private var searchItems: [SearchItemView] = [] init(searchItemViewClassName: String) { self.searchItemViewClassName = searchItemViewClassName do { try createSearchItemView() // Xcode error here about lacking exhaustive cases; can't build and run } catch SearchViewModelError.InvalidClassName { // covers the one error case } } func createSearchItemView() throws -> SearchIte
1
0
4.9k
Jun ’15
Advanced NSOperation & Earthquakes
One of my favorite sessions at WWDC was Advanced NSOperations. I've been attempting to run the Earthquakes App (XCode 7, IOS 9 Device) and it runs but nothing appears at the outset except for an empty UITableView. Dragging down to attempt to refresh the table brings up a network activity indicator but then the application crashes.The only changes I made to the demo code were to change the bundle identifier and check the box to allow it to run upside down (in order to eliminate a warning).Anyone have a similar ill-fated experience?
7
0
1.9k
Jun ’15
Reply to Source code for WWDC app?
The WWDC App is not available but was dicussed in session 226 Advanced NSOperations.In a follow-up discussion I had at CloudKit Labs shortly after Session 715, CloudKit Tips and Tricks, I discovered there is no reference app for CloudKit. Instead, I was directed to refer to the Sample Code discussed in session 226 Advanced NSOperations. The Sample Code is called Earthquakes.Unfortunately, I've not been able to get that to run correctly using XCode 7 and IOS 9. It runs on my device but doesn't do anything upon launch except to show an empty UITableView. A refresh swipe results in a crash.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to 60 MB limit for executable
These are still valid limits. I think with the release of iOS 9 you will be allowed to submit apps with only 64bit support. Maybe that helps you to reduce the file size.Generally you may want to take a look at App Thining/On Demand Ressorces in iOS 9 (see the App Thinning in Xcode and Introducing On Demand Resources sessions from WWDC this year).
Jun ’15
Approach to building an AU which is both effect and instrument
I've been selling an AU for some time now that includes both instrument and effect versions as separate bundles.One of the issues with this has been namespace collisions of objective-C class names when both instrument and effect versions are loaded. I've followed this advice:https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/LoadingCode/Tasks/NameConflicts.htmlSpecifically, I have macros such as the following:#ifdef AUDIO_UNIT_EFFECT #define AntimatterAUViewFactory ComSubatomicAudulusEffectAntimatterAUViewFactory #else #define AntimatterAUViewFactory ComSubatomicAudulusAntimatterAUViewFactory #endifHowever I've noticed in Xcode 6, this defeats interface builder's ability to parse headers and thus I can't fully edit my xib files.So I'm curious how others deal with building an AU which has both instrument and effect versions? Could both versions be put in a single bundle?(Looking forward to the new app extension based AU API!)
0
0
259
Jun ’15
Reply to Creating an IBOutlet or IBAction from a UIButton within a UITableViewCell subclass in a static UITableView
I found a workaround:Instead of control+dragging from the storyboard to the Swift file, I did the following.Declare an @IBOutlet property in the appropriate Swift fileDrag from the circle plus icon that appears in the gutter to the left of that property to the view on the storyboard that you would like to hook up.At first, this wasn't working for me because (at least on OS X El Capitan) Xcode 6 would try to resize the Assistant editor divider whenever I dragged from the circle plus icon.
Jun ’15
Reply to app crashes during the review
Good work. You just need to upload the new binary from Xcode, then after the build has finished processing (usually just a few minutes) go to the new app version in iTunes Connect, select the new binary you just uploaded, save and Submit for Review again. Unfortunately a new binary always means a whole new review cycle (they don't know what else you may have changed).
Jun ’15
The file “VRIC” couldn’t be opened because you don’t have permission to view it.
Hi,I was developing away and testing my App on the simulator as well as on my iPhone 6. I received a phone call, so I disconnected my phone from the cable attaced to the Mac, and when I was done I plugged it back in - when I do that iTunes starts syncing - I quit iTunes and proceeded to build my app to test on my iPhone and since then I keep getting this error...** The file “VRIC” couldn’t be opened because you don’t have permission to view it. **I have tried the following suggestions offered on this site...http://www.codedisqus.com/0NJWWqUXXj/the-file-myappapp-couldnt-be-opened-because-you-dont-have-permission-to-view-it-when-running-app-in-xcode-6-beta-4.htmlStill I cannot get my App to load on my iPhone, it works fine in the simulator.Can someone please help!Thanx in advance.
0
0
347
Jun ’15
Uploading App video preview for iTunes Connect
So I read I can use QuickTime to make a preview video for my app and upload to iTunes Connect but I need to have OSX 10.10.3 Yosemite. I currently use OSX 10.9.5 and am fearful of upgrading to 10.10.3 Yosemite because i'm afraid if I do so all my Xcode Projects files on my desktop will get deleted. What can I use to make a video of my app for preview besides OSX Yosemite's QuickTimes feature in simulator? Is there another feature i'm not noticing in Xcode 6.1's simulators that I can use for recording and editing a short video?
1
0
282
Jun ’15