Search results for

missing package product

50,323 results found

Post

Replies

Boosts

Views

Activity

Reply to Xcode 7.0 Beta Throwing Heaps of Errors, update OS X?
The first step is probably to go to the Product menu in your project in Xcode and hold down the option key and choose Clean Build Folder..., to make sure there isn't any previously compiled code causing problems because of incompatibility.I don't think upgrading OS X to the El Capitan would improve anything for you, since a lot of us are just running Xcode 7 beta on Yosemite.If you haven't already backed up your project, you might want to do that before updating the code further, just in case you end up deciding to go back and wait.Assuming there isn't isn't anything really weird going on with your project, you would just need to work your way through it fixing the errors and warnings generated by the compiler. There can be a lot of new errors and warnings because of the changes between Swift 1.2 and 2 and the updates to Cocoa, but most of the errors and warnings should be relatively trivial to fix (changing var to let, updating the old generic sort/map/filter/find functions to be called as methods,
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to prepareForSegue vs. pushViewController
It's closer, but it should be called dataHasChanged or something similar, not reloadTableView. The fact that it's currently displayed in a table view should be an implementation detail known only to the detail VC. The message you send should have a higher level meaning. Picture the case where you decide to display it in a collection view, a page view controller or some other UI widget. Your source VC shouldn't have to care.Anyway I apologize that I seem to have missed the real problem with your prepareForSegue. You shouldn't instantiate the VC from the storyboard. That is already done for you by UIKit when the segue is performed. You just access the destination view controller of the segue via the segue.destinationViewController property. So it would be something along the lines of let feedVC = segue.destinationViewController as FeedViewController. Maybe some ? in there... I don't do Swift yet. 🙂
Jun ’15
Reply to Two Generic Types or One
I don't understand what you mean by That is, am I missing something that prevents using only 'class'?.Anyway, are you really sure that the best thing you can do is to do it without using protocols?Even after watching the WWDC 2015 video Protocol-Oriented Programming in Swift? : )
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Icon for Pinned Tabs not yet working?
Some websites like nytimes.com, twitter.com, cnn.com already have an icon when pinned to the top. According to “What's new in Safari 9” this code should be added in order to provide a custom icon:<link rel=icon sizes=any mask href=website_icon.svg> <meta name=theme-color content=red>That's what I did on our website (obdev.at) but Safari seems to ignore it. Anything I'm missing here? Or is there no support for third-party websites yet?
4
0
15k
Jun ’15
Best practice for setting CFBundleVersion automatically
With the newest releases of iOS and iTunesConnect, Apple is more and more restrictive about what´s happening in your CFBundleVersion of your Extensions.I tried to fiddle around with Run Script Build Phases, such as this:#!/bin/sh INFOPLIST_EXT=${TARGET_BUILD_DIR}/${INFOPLIST_PATH} echo Extension writing to $INFOPLIST_EXT PLISTCMD=Set :CFBundleVersion $(git rev-list --all|wc -l) echo -n $INFOPLIST_EXT | xargs -0 /usr/libexec/PlistBuddy -c $PLISTCMDHowever, this seems to work for some types of Extensions (WatchKit), but for some others it doesn´t (Today Widget). In my cases, I seem to access the $TARGET_BUILD_DIR before there´s content in it. Using $BUILT_PRODUCTS_DIR delivers the same error.Extension writing to /Users/marc/Library/Developer/Xcode/DerivedData/MyApp-focpnqzzpnqsfyaqwwocwpujmhmh/Build/Intermediates/ArchiveIntermediates/MyApp/IntermediateBuildFilesPath/UninstalledProducts/TopNewsWidget.appex/Info.plist Set: Entry, :CFBundleVersion, Does Not Exist File Doesn't Exist, Will Create: /Users/marc/Libra
6
0
7.2k
Jun ’15
Reply to watchOS 2b1 wiped Activity data
It's not watchOS 2, it's iOS 9.Reading the iOS 9 release notes reveals that loss of Health data is a possible side effect of installing the beta, and that to avoid this you should make an encrypted backup to iTunes (unencrypted backups to iTunes and backups to iCloud don't backup Health data).
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
iOS 9 on iPad Air 2 drains battery like crazy
I'm finding that since i updated my (development) iPad Air 2 from 8.3 to iOS 9 Beta 1, its battery is draining like crazy. I unplugged with 100% charge last night, this morning it's alreadty dead again. It also constantly is really warm. Instruments shows blackboardd running at 20% CPU, the full time, and MobileMail running fairly high too.Mind you, this is not an ooh, i upgraded my only production-use device to a beta and now i'm complaining it's not perfect complaint, so hold back the usual snarky remarks about this. My concern is not only that this iPad is now unusable as a testing/development device, but that i'm actually worried about leaving it running like this at all, for what it might do to the CPU and the battery, long term. The only choice i'm seeing right now is powering it down completely and put it in a drawer until Beta 2 😟.
4
0
697
Jun ’15
Reply to Can't restore backup to iOS8 from 9 beta
If you have been updated an iPhone, maybe you can restore to a previous version, but, probably you got lot of errors, because firmware update also updates some drivers (For example, modem version), and, the downgrade doesn't change it.If your device are for development (Teorically you should not update a production device), wait for beta2. If not, probably you have a problem.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to iOS 9 Beta battery life
I like the assumption people make here:You report your findings in a polite manner and :1) You become a peep who is dloading betas just for the heck of it2) You are in panic and shoud be more calm..3) You knew better it's a beta.... (of cours eit is ..this is why i am testing) you should know nnot to install beta (then why do they give it to us??)4) You only own a device (just cause you are reporting issues) why do you have beta on production device? (and who told you this is my production device?)5) It will be fixed so calm down (well i am sure it will..... do you really belive i expect ios 9 to have this battery life??)6) My favourite one... why don't you test like everyone does? Plugged in into the computer so nop worries about battery life!!!! (Yeah like MOBILE devices now have to stay plugged all day.... and of course if you have a training app under development.......who does't train with a power plug behind his back??).Again to all the haters please relax..and calm down..We know it is
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Combining Activity Data
As I thought more about how to solve my activity data problem in a different post of mine I thought of this. My activity data for my apple watch is stored in a backup that is running iOS 8.3. My watch is now running OS 2.0 and I must have my iPhone running iOS 9 obviously to connect the two. If I continue to track my acitivity data running iOS 9 and WatchOS 2 and later when (if ever) there is a way to downgrade to Watch OS 1.0.1 again could I option-click update and go back to iOS 8.3 on my phone and restore from my backup of iOS 8.3 with that activity data to combine with the days I got running iOS 9? It's confusing and I don't know if it's possible but worth a shot.Even If I lose the activity data I have in the iOS 8.3 backup I wouldn't mind too much as long as I don't lose the activity data I have everytime I update to a new beta version.
0
0
166
Jun ’15
Failable initializers for Classes
Hello,I was wondering about failable initializers in Swift. I noticed that for structs it works as expected (at least by me), for example this is fine:struct Test { var someState: Int init?(value: Int) { if value < 0 { return nil } someState = value // we set the value after validation } }But for classes swift wouldn't allow you to fail until you set internal states like so:class Test { var someState: Int init?(value: Int) { if value < 0 { someState = 0 // this seems unneeded return nil } someState = value } }This seems wrong. Why do I need to populate class' data with unneeded default values before I can fail the initialization? I can see that this is valid for both Swift 1.2 and 2.0 so what am I missing here?
4
0
1.7k
Jun ’15