Search results for

A Summary of the WWDC25 Group Lab

10,109 results found

Post

Replies

Boosts

Views

Activity

Reply to Problems importing mails from Yosemite to El Capitan GM
I can see why you would want to start afresh with El Capitan, but there is no clean and easy way to do precisely what you're asking. If the general intention of what you're doing is to start with a clean system, but reliably transfer over your user account data from Yosemite (including everything in Mail) then you can do that:Make sure your TM Backup of Yosemite is up-to-date, then open the Migration Assistan app in El Capitan GM and select the Yosemite TM backup. Deselect everything but your user account and allow it to migrate it over.This is as clean and simple as it gets for the scenario you're describing, but there is one caveat - you'll already have a new user account on El Capitan so make sure that it doesn't have the same name as the one you are migrating. Give your migrated account admin rights from System Preferences > Users & Groups (if it hasn't already got it) and you will be able to delete that account once you've logged into the migrated one.-Max
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Reply to presentMediaPlayerControllerWithURL -> Operation not permitted
From doc:Place media clips that ship with your app inside the bundle of your WatchKit extension. Your WatchKit extension is located inside your Watch app bundle, so your Watch app can access any files in the extension’s bundle directory. In your extension code, use the methods of the NSBundle class to locate the files inside your extension’s bundle. Place media files that you download from the network (or transfer from your iOS app) in a shared group container. A shared group container provides common storage for your Watch app and WatchKit extension. In your extension code, create URLs for any media files inside the container, and use them to configure the media interfaces.In the first case, have you checked in Xcode that the file belongs to the desired target (extension's bundle directory)?In the second case (the console log shows that there is not that case, but anyway...), have you enabled app groups in the target?In my case, I download files to a shared container, and all goes
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
El Capitan GM this core storage operation is not allowed on a sparse logical volume group
Hi guys,just downloaded the GM but still can't override the same error had with another El Capitan beta..After downloading the installer, I try to execute, the program runs good for a while showing the time remaining, but then it stops with that error message:this core storage operation..Please help!I'd rather not to have a clean install..
11
0
4.4k
Sep ’15
Erratic dead code elimination?
I noticed (in optimized builds) that dead code stripping didn't seem to be performed for sqrt, while it did when replacing sqrt with eg exp.What's the reason for this?Here's a little program to demonstrate it:import Cocoa // (For CACurrentMediaTime) struct DeadCodeEliminationTester { var usedValue: UInt64 = 0 // Will be printed at the end. Non-ignored results are xored into this value. // Function that returns the time (in seconds) it takes to make a // hundred million calls to fn, using or ignoring the result of the calls. mutating func timeLotsOfCallsTo(fn: (Double) -> Double, useResults: Bool) -> Double { let startTime = CACurrentMediaTime() var temporaryUsedValue: UInt64 = 0 for i in 0 ..< 100_000_000 { let doubleResult = fn(Double(i)) temporaryUsedValue ^= unsafeBitCast(doubleResult, UInt64.self) } let stopTime = CACurrentMediaTime() if useResults { usedValue ^= temporaryUsedValue } return stopTime - startTime } mutating func testFunction(fn: (Double) -> Double, label: String) { let timeUsing
2
0
857
Sep ’15
Sage Bridge Server
Hello, we are a group of Brazilian students and are now working in collaboration with a french institution to develop a RK app. We want to know if there is any further development in Sage's Backend solution to support other studies.Thanks in advance. Cheers from Brazil!Pietro.
0
0
648
Sep ’15
Reply to No more stringByAppendingPathComponent in Xcode 7 beta 5?
It's generally understood that NSURL-based APIs are now preferred to path-based APIs. In the past couple of years (before Swift) Apple has gradually rounded out the repertoire for NSURL so that you don't ever have to use paths. Paths aren't deprecated, or even obsolescent. They're just — less preferred. It's not a big deal though. If you definitely prefer to continue with paths, you can.When you see a path-based API method that has no NSURL-based equivalent, you can take that as a pretty strong indication that the method shouldn't really be used at all, for some reason that's got nothing to do with the path vs. URL debate.One group of such methods are ones that don't return a NSError result when they fail. These are all ancient methods from the times before API design was made consistent. There's no URL-based equivalent because you should always use the new methods with the error result.Another group of such methods are ones that have an inherent vulnerability to race conditions, such as fil
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’15
Reply to No more stringByAppendingPathComponent in Xcode 7 beta 5?
Another group of such methods are ones that have an inherent vulnerability to race conditions, such as fileExistsAtPath. This method does you no good, because the file can be deleted just after you've checked for existence. That is, you can't really rely on the result. The correct approach is to go ahead and do whatever you wanted to do with the file (read it, move it, delete it, or whatever), and then see whether that worked. You have to do that even if you checked existence in advance.There are plenty of times when it makes sense to check if a file exists, though. A prominent example is Xcode's sidebar; if a file doesn't exist, it turns red. It's sometimes nice to know about these things.Fortunately, there isa URL-based alternative to fileExistsAtPath, and it's -[NSURL checkResourceIsReachable:error:]. The reason the name is different is because fileExistsAtPath can return NO for reasons other than the file not existing; for example, if you don't have read permission to its parent directory, you'd
Topic: Programming Languages SubTopic: Swift Tags:
Sep ’15
Reply to TestFlight corrupting app's executable. App failing to launch only when installed from TestFlight
Thanks; you are correct! The WatchKit extension shared the same name as the primary app executable. I thought that was the recommended approach they told us when I was in the Apple Watch Labs in Sunnyvale earlier in the year. In any case, changing the name for the WatchKit extension and adding it back into the primary app works; verified it on TestFlight. Hopefully that will resolve this issue for good. Thanks for the tip; much appreciated!
Sep ’15
Dedicated TestFlight Group
As everyone is working on new apps for tvOS, but very few will have an actual AppleTV before the release, I'm thinking we could maybe create a list of people who have a Developer Kit and are willing to beta test for others as well. It would definitely help the community if we were helping each other beta test, as we're the only ones who can.
2
0
240
Sep ’15
Reply to Data Protection Entitlements
This doesn't make any sense.Again if I specify NSFileProtectionComplete for the persistent store coordinator I get an error on every CRUD action I perform in the background (see code snippet below).If I remove that line of code for the persistent store coordinator, the default should kick in which is also NSFileProtectionComplete (specified in entitlement, dump shows this also).<dict> <key>application-identifier</key> <string>xxxxx</string> <key>aps-environment</key> <string>development</string> <key>com.apple.developer.default-data-protection</key> <string>NSFileProtectionComplete</string> <key>com.apple.developer.team-identifier</key> <string>xxxxxxx</string> <key>com.apple.security.application-groups</key> <array> <string>group.com.xxxxxxx</string> </array> <key>get-task-allow</key> <true/> </dict>A) If I trigger a background fetch right
Topic: Privacy & Security SubTopic: General Tags:
Sep ’15
Reply to Testing Game Center
I'm not sure how tvOS submissions will work in regards to porting an iOS game. Normally you register the bundle identifier in iTunes Connect and attach it to a Game Center group. Not sure if there will be any additional setup needed for tvOS ports. I would imagine there probably will be. We likely will have to register tvOS games in iTunes Connect the same way, but who knows?. For ex: my Mac OS X port of an iOS game needs to be configured in iTunes connect on its own, even though they use the same GC group.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Update both sides of a UISplitView Controller
I asked this question over on Stack Overflow and based on the answers I have recieved what I want to do should be possible however I am still leaning towards it can not be done.I have a NSTimer updating several views via a delegate on a set timeframe.I thought it would look nice to place my views into a split view on an iPad as well as the iPhone 6x Plus. I successfully moved my views into a split view controller however when I rotate the device only one side is updated via the delegate (master is updated or detail is updated) depending on where I was in the app when I rotate the device from portrait. That side continues to Update while the device is in the Split View Mode. If I click on a new row in the master and the master was updating (detail was not) then the detail starts updating and the master stops.I have a MasterTimer class that is instantiated once and only once when the app is launched or returns to the foreground that has several delegate methods (protocol). This masterTimer class has an instance
Topic: UI Frameworks SubTopic: UIKit Tags:
3
0
2.0k
Sep ’15
mfmailcomposeviewcontroller cansendmail returning no?
This is a strange issue. I have an application that creates an email for the user to send. Everything appears to work, except that one of my users is reporting he can't get it to send. It displays my no accounts configured blah blah blah error. Which is strange because from what I can tell, he does have a valid email account set up that he can send from on the phone. He's not particularly tech savvy, so I am going to be working with his IT group later to try and get some more details.Basically, my question is this: under what circumstances will mfmailcomposeviewcontroller cansendmail return false?
Topic: UI Frameworks SubTopic: UIKit Tags:
6
0
3.7k
Sep ’15
Reply to WatchKit settings bundle in 2.0?
People are saying this works but I still cannot get it to work even though it was working in watchOS 1.1. I added the shared group to both iOS app and watch extension with the same bundle identifier2. I added the Settings-Watch.bundle to the iOS app and added the ApplicationGroupContainerIdentifier to the PlistI can see the options I added in the Watch app (on iPhone) but the watch doesn't read the settings. What am I missing? I don't have to do anything related to WatchConnectivity to get this thing working right? Are the people that are claiming that it works sure you are on WatchOS 2?
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15