Search results for

“A Summary of the WWDC25 Group Lab”

10,637 results found

Post

Replies

Boosts

Views

Activity

Audio recorder immediately dismissed after pressing the record button on device
Has anybody successfully got an audio recording on real device? I've tryed using presentAudioRecorderControllerWithOutputURL but only get a WatchKitRecordingFailedError, and the interface dismissed immediately. If I set WKAudioRecorderControllerOptionsAutorecordKey to NO then the record interface dismissed after I pressed the record button. Please HELP!And here is my code: NSURL *directory = [NSURL fileURLWithPath:NSTemporaryDirectory()]; NSURL * outputURL = [directory URLByAppendingPathComponent:@temp.wav]; [self presentAudioRecorderControllerWithOutputURL:outputURL preset:WKAudioRecorderPresetNarrowBandSpeech options:@{WKAudioRecorderControllerOptionsActionTitleKey:@OK, WKAudioRecorderControllerOptionsMaximumDurationKey:@120, WKAudioRecorderControllerOptionsAutorecordKey:@0} completion:^(BOOL didSave, NSError * _Nullable error) { //so I got didSave=0 and error=Error Domain=com.apple.watchkit.errors Code=6 Recording failed. UserInfo={NSLocalizedDescription=Recording failed.} }];I've also tryed using a group
7
0
1.5k
Sep ’15
Reply to GM (was Beta 8) - can't launch applications
I rebuilt the account by logging in as another user, deleting my original account in Users & Groups prefs, but selecting to NOT delete the home directory. then I renamed my home directory, stripping out the (deleted) portion off the name. Then I recreated the original admin account, and it saw the old, existing user directory. logging out of user 2 and logging back in under my original username works now
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Reply to Any issues being seen in the iOS 9 GM?
The only issue i have is my contacts still wont sync from the phone to the cloud. If i add a new number into the cloud like the website it will pop up on my phone but any number i add on my phone are not syncing back. And the old trick i used to do with going to groups and making them sync doesnt work anymore because that spinning wheel that lets you know its syncing doesnt show when you pull down on the list anymore.
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Apple Pay - errors in AuthorizationViewController, Questions on payment Summary
If I only have one product item in Apple Pay, how would I detect a total? My app is a donation platform, so I don't need to actually ship anything, but would like contact info. I have a number of errors that I have tried to figure out to debug to no avail. Any help is appreciated.Also I keep getting this error (this was the same as the sample code given from WWDC).This is in my BuyTicketViewController.swift file. if PKPaymentAuthorizationViewController.canMakePaymentsUsingNetworks(BuyTicketViewController.paymentNetworks) { let button = PKPaymentButton(type: .Buy, style,: .Black) button.addTarget(self, action: applePayButtonPressed, forControlEvents: .TouchUpInside) button.center = applePayView.center button.autoresizingMask = [.FlexibleLeftMargin, .FlexibleRightMarin] applePayView.addSubview(button) } }The error says 'expected declaration.'The sample says to use else (for traditional checkout). When I put that it, it breaks the rest of my code and I get lots of errors.line 8 - eror on MerchantIDline 9 - error
0
0
1.2k
Sep ’15
Cannot add a new item in the keychain. Error code: -25243. in ADAL iOS
I have integrated microsoft's ADAL Library for iOS https://github.com/AzureAD/azure-activedirectory-library-for-objc.I authenticated the azure's proxy share point site and keep the app in idle state for more than an hour. After I activate the app and click on any hyper-link I get the following errorCannot add a new item in the keychain. Error code: -25243. Attributes: { acct = cHJhcGF0aWxAZXF1aW5peC5jb20; svce = MSOpenTech.ADAL.1|aHR0cHM6Ly9sb2dpbi5taWNyb3NvZnRvbmxpbmUuY29tLzcyYWRiMjcxLTJmYzctNGFmZS1hNWVlLTlkZTZhNTlmNmJmYg|CC3513A0-0E69-4B4D-97FC-DFB6C91EE132|YzczOWU0ZmItNTE1ZC00N2JhLWIzOGMtZTk2MjZjOGRhODAy; }. ErrorCode: 11. 2015-09-08 16:41:36.154 ProjectName[32578:3728597] ADALiOS [2015-09-08 11:11:36 - C739E4FB-515D-47BA-B38C-E9626C8DA802] ERROR: Error raised: 11. Additional Information: Domain: ADAuthenticationErrorDomain ProtocolCode:(null) Details:Cannot add a new item in the keychain. Error code: -25243. Attributes: { acct = cHJhcGF0aWxAZXF1aW5peC5jb20; svce = MSOpenTech.ADAL.1|aHR0cHM6Ly9sb2dpbi5taWN
1
0
2k
Sep ’15
About compilation error: "Type of expression is ambiguous without more context"
Hello Swift expertsI have a question that I know you know the answer to. I am writing some classes to build and handle a binary tree node. I think I have completed the task but am kinda unhappy with an error I got and I dont know why it appears. Please check the following sample of code out that reproduces the error, you can use a playground in XCode. I extracted this code from my class and simplified it to reproduce the failuere, so it doesn't follow any logic:class BinaryTreeNode { var data = 0 var left: BinaryTreeNode? = nil var right: BinaryTreeNode? = nil init(value: Int) { self.data = value } func getLeftChild() -> BinaryTreeNode? { return self.left } } class BinaryTree { var root: BinaryTree? func delete(value: Int, inout at root: BinaryTreeNode?) { if root != nil { var aNode: BinaryTreeNode? = BinaryTreeNode(value: 123) var anotherNode: BinaryTreeNode? = BinaryTreeNode(value: 65) var aTuple = (current: aNode, parent: anotherNode) self.delete(45, at: &aTuple.current!.getLeftChild()) self.delete(
2
0
3.4k
Sep ’15
Reply to GM caught in reboot loop
Does this seem like a correct summary of the fix Patrick?So it turned out that the answer to this question was that ContentWatch's NetNanny was the cause of this bootloop. Also worth noting is that the sofware reinstalls the kext if manually deleted, so it needs to be fully uninstalled.Interestingly a ContentWatch dev seems to be discussing this very kext here: https://forums.developer.apple.com/thread/8521
Topic: App & System Services SubTopic: Core OS Tags:
Sep ’15
Is there a limit on notifications?
When my app is opened I subscribe for 2 record types when created and updated. One of the objects I can only add 1 at a time and are spaces out, and the other type can have groups of records saved/updated at once. I use the background notifications to update my core data database and update the UI if the app is opened. I turned on notification alerts to see which notifications my devices get. I am testing on 4 devices, a iPad Air iOS 8.4, iPad Mini iOS 8.4, iPhone 5 iOS 9 and iPhone 6 Plus on iOS 9. When I create a TV show record (1 saved at a time), each device got that 1 notification. If I mark a episode as watched in my app (mutliple can be added to CloudKit and updated) my iPad Air received only 1 notification for that, my iPad Mini received 2 notifications, and my iPhone 5 also received only 2 notifications. I saved 4 objects to the cloud though. Is there a limit to the amount of notifications are sent, and what would be the best way to handle this?
1
0
1.1k
Sep ’15
Reply to Is there an implicit ordering to thread group execution?
To my knowledge, you cant assume an order of execution. (Implementation dependent)you can insert threadgroup barriers inside a kernal to ensure that all threads in that one thread group, have executed up to the barrier.This can be important if your are initializing the threadgroup's own memory.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’15
Audio recorder immediately dismissed after pressing the record button on device
Has anybody successfully got an audio recording on real device? I've tryed using presentAudioRecorderControllerWithOutputURL but only get a WatchKitRecordingFailedError, and the interface dismissed immediately. If I set WKAudioRecorderControllerOptionsAutorecordKey to NO then the record interface dismissed after I pressed the record button. Please HELP!And here is my code: NSURL *directory = [NSURL fileURLWithPath:NSTemporaryDirectory()]; NSURL * outputURL = [directory URLByAppendingPathComponent:@temp.wav]; [self presentAudioRecorderControllerWithOutputURL:outputURL preset:WKAudioRecorderPresetNarrowBandSpeech options:@{WKAudioRecorderControllerOptionsActionTitleKey:@OK, WKAudioRecorderControllerOptionsMaximumDurationKey:@120, WKAudioRecorderControllerOptionsAutorecordKey:@0} completion:^(BOOL didSave, NSError * _Nullable error) { //so I got didSave=0 and error=Error Domain=com.apple.watchkit.errors Code=6 Recording failed. UserInfo={NSLocalizedDescription=Recording failed.} }];I've also tryed using a group
Replies
7
Boosts
0
Views
1.5k
Activity
Sep ’15
Reply to GM (was Beta 8) - can't launch applications
I rebuilt the account by logging in as another user, deleting my original account in Users & Groups prefs, but selecting to NOT delete the home directory. then I renamed my home directory, stripping out the (deleted) portion off the name. Then I recreated the original admin account, and it saw the old, existing user directory. logging out of user 2 and logging back in under my original username works now
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
Reply to Locate my iCloud backup iOS 9
I saw the same thing. Try connecting your phone to iTunes. There in the Summary tab, it shows the last iCloud backup a few days ago.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
Reply to Any issues being seen in the iOS 9 GM?
The only issue i have is my contacts still wont sync from the phone to the cloud. If i add a new number into the cloud like the website it will pop up on my phone but any number i add on my phone are not syncing back. And the old trick i used to do with going to groups and making them sync doesnt work anymore because that spinning wheel that lets you know its syncing doesnt show when you pull down on the list anymore.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
Apple Pay - errors in AuthorizationViewController, Questions on payment Summary
If I only have one product item in Apple Pay, how would I detect a total? My app is a donation platform, so I don't need to actually ship anything, but would like contact info. I have a number of errors that I have tried to figure out to debug to no avail. Any help is appreciated.Also I keep getting this error (this was the same as the sample code given from WWDC).This is in my BuyTicketViewController.swift file. if PKPaymentAuthorizationViewController.canMakePaymentsUsingNetworks(BuyTicketViewController.paymentNetworks) { let button = PKPaymentButton(type: .Buy, style,: .Black) button.addTarget(self, action: applePayButtonPressed, forControlEvents: .TouchUpInside) button.center = applePayView.center button.autoresizingMask = [.FlexibleLeftMargin, .FlexibleRightMarin] applePayView.addSubview(button) } }The error says 'expected declaration.'The sample says to use else (for traditional checkout). When I put that it, it breaks the rest of my code and I get lots of errors.line 8 - eror on MerchantIDline 9 - error
Replies
0
Boosts
0
Views
1.2k
Activity
Sep ’15
Reply to Audio recorder immediately dismissed after pressing the record button on device
You have to write the files to the shared group folder, as this is the only place both your app and extension can see. NSURL *container = [[NSFileManager defaultManager] containerURLForSecurityApplicationGroupIdentifier: @group.com.yourcompany.yourapp]; NSURL *fileUrl = [container URLByAppendingPathComponent:@temp.wav];
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Sep ’15
Cannot add a new item in the keychain. Error code: -25243. in ADAL iOS
I have integrated microsoft's ADAL Library for iOS https://github.com/AzureAD/azure-activedirectory-library-for-objc.I authenticated the azure's proxy share point site and keep the app in idle state for more than an hour. After I activate the app and click on any hyper-link I get the following errorCannot add a new item in the keychain. Error code: -25243. Attributes: { acct = cHJhcGF0aWxAZXF1aW5peC5jb20; svce = MSOpenTech.ADAL.1|aHR0cHM6Ly9sb2dpbi5taWNyb3NvZnRvbmxpbmUuY29tLzcyYWRiMjcxLTJmYzctNGFmZS1hNWVlLTlkZTZhNTlmNmJmYg|CC3513A0-0E69-4B4D-97FC-DFB6C91EE132|YzczOWU0ZmItNTE1ZC00N2JhLWIzOGMtZTk2MjZjOGRhODAy; }. ErrorCode: 11. 2015-09-08 16:41:36.154 ProjectName[32578:3728597] ADALiOS [2015-09-08 11:11:36 - C739E4FB-515D-47BA-B38C-E9626C8DA802] ERROR: Error raised: 11. Additional Information: Domain: ADAuthenticationErrorDomain ProtocolCode:(null) Details:Cannot add a new item in the keychain. Error code: -25243. Attributes: { acct = cHJhcGF0aWxAZXF1aW5peC5jb20; svce = MSOpenTech.ADAL.1|aHR0cHM6Ly9sb2dpbi5taWN
Replies
1
Boosts
0
Views
2k
Activity
Sep ’15
About compilation error: "Type of expression is ambiguous without more context"
Hello Swift expertsI have a question that I know you know the answer to. I am writing some classes to build and handle a binary tree node. I think I have completed the task but am kinda unhappy with an error I got and I dont know why it appears. Please check the following sample of code out that reproduces the error, you can use a playground in XCode. I extracted this code from my class and simplified it to reproduce the failuere, so it doesn't follow any logic:class BinaryTreeNode { var data = 0 var left: BinaryTreeNode? = nil var right: BinaryTreeNode? = nil init(value: Int) { self.data = value } func getLeftChild() -> BinaryTreeNode? { return self.left } } class BinaryTree { var root: BinaryTree? func delete(value: Int, inout at root: BinaryTreeNode?) { if root != nil { var aNode: BinaryTreeNode? = BinaryTreeNode(value: 123) var anotherNode: BinaryTreeNode? = BinaryTreeNode(value: 65) var aTuple = (current: aNode, parent: anotherNode) self.delete(45, at: &aTuple.current!.getLeftChild()) self.delete(
Replies
2
Boosts
0
Views
3.4k
Activity
Sep ’15
Reply to GM caught in reboot loop
Does this seem like a correct summary of the fix Patrick?So it turned out that the answer to this question was that ContentWatch's NetNanny was the cause of this bootloop. Also worth noting is that the sofware reinstalls the kext if manually deleted, so it needs to be fully uninstalled.Interestingly a ContentWatch dev seems to be discussing this very kext here: https://forums.developer.apple.com/thread/8521
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
Reply to iTunes taking several hours or days to Process uploads
So this seems to affect mostly binaries with ODR. Did you also include bitcode? Did you get the warnings in the upload summary? My uploads finish successfully without warnings, then processing forever.
Replies
Boosts
Views
Activity
Sep ’15
Reply to restore with icloud backup beta version??
Try connecting your iDevice to iTunes. There in the Summary tab, it shows the last iCloud backup - sometimes the recent backup can still appear there...Is it like this for you?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
Reply to Xcode Could not find developer disk image for IOS9 GM seed, betas work fine
Just want to clairfy. I just did this (this, as in installed the newest iOS9.1 on accident instead of clicking the GM build) and installed the iOS 9 GM build after by option + clicking check for update in the summary tab. It installed (downgraded) iOS 9 GM with no issues. In short, you don't have to restore.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Sep ’15
Is there a limit on notifications?
When my app is opened I subscribe for 2 record types when created and updated. One of the objects I can only add 1 at a time and are spaces out, and the other type can have groups of records saved/updated at once. I use the background notifications to update my core data database and update the UI if the app is opened. I turned on notification alerts to see which notifications my devices get. I am testing on 4 devices, a iPad Air iOS 8.4, iPad Mini iOS 8.4, iPhone 5 iOS 9 and iPhone 6 Plus on iOS 9. When I create a TV show record (1 saved at a time), each device got that 1 notification. If I mark a episode as watched in my app (mutliple can be added to CloudKit and updated) my iPad Air received only 1 notification for that, my iPad Mini received 2 notifications, and my iPhone 5 also received only 2 notifications. I saved 4 objects to the cloud though. Is there a limit to the amount of notifications are sent, and what would be the best way to handle this?
Replies
1
Boosts
0
Views
1.1k
Activity
Sep ’15
How do I give away my app to people after release a pay app? Is there a way?
I would like to give away my app to a selected group. I do not want to pay for all of these, just give them away. It is a paid app and the cost is around $4 for each and I would like to give out around 100 apps for marketing purposes.Tobbeswim
Replies
1
Boosts
0
Views
144
Activity
Sep ’15