Search results for

A Summary of the WWDC25 Group Lab

10,092 results found

Post

Replies

Boosts

Views

Activity

Advanced NSOperations GroupOperation
I have been really trying to incorporate the code into my app, however there is a couple of things I don't understand.In GroupOperation, when you call cancel() it calls cancel on all the operations in the queue, however if cancelWithError is called, this is not the case, why?It seems the pattern is to always call finish, even if the operation is cancelled as seen in evaluateConditions where it changes the state to cancelled but still calls finish() but if we would call cancel() on a group operation, all operations will be cancelled meaning finishOperation would never be called cause we cancelled all the operations in queue. Is it a must for any Operation that uses the timeout observer to subclass cancelWithError and call finishWithError itself?Another thing is that the error handling pattern seems to be wierd. It seems like each operation is showing error UI itself instead of letting the object that created the operation to decide what to do with the failure, even thogh the operation doesn't have any
0
0
298
Jul ’15
Xcode 6.4 & Xcode 7 pre release crashed when debugging a c++ program compiled by it
Process: Xcode [80346]Path: /Applications/Xcode-beta.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 7.0 (8178.7)Build Info: IDEFrameworks-8178007000000000~3Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [80346]User ID: 501Date/Time: 2015-07-29 19:22:01.335 +0800OS Version: Mac OS X 10.10.5 (14F6a)Report Version: 11Anonymous UUID: 58F6A28D-715A-E1B4-54D4-FEED8B09AB43Sleep/Wake UUID: ABCA5098-5B93-4BF9-BCAA-A4CD97A9D4BBTime Awake Since Boot: 130000 secondsTime Since Wake: 4400 secondsCrashed Thread: 0 Dispatch queue: com.apple.main-threadException Type: EXC_CRASH (SIGILL)Exception Codes: 0x0000000000000000, 0x0000000000000000Application Specific Information:ProductBuildVersion: 7A165tûõ ƒ Thread 0 Crashed:: Dispatch queue: com.apple.main-thread0 libsystem_kernel.dylib 0x00007fff8eb584de mach_msg_trap + 101 libsystem_kernel.dylib 0x00007fff8eb5764f mach_msg + 552 com.apple.CoreFoundation 0x00007fff8bcf7eb4 __CFRunLoopServiceMachPort + 2123 com.apple.CoreFoundation 0x00007fff8
2
0
626
Jul ’15
Reply to Xcode 6.4 & Xcode 7 pre release crashed when debugging a c++ program compiled by it
It seems each time it crashes, the backtrace is different. However, it definitely happens when the program is compliled and started.Process: Xcode [81689]Path: /Applications/Xcode-beta.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 7.0 (8178.7)Build Info: IDEFrameworks-8178007000000000~3Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [81689]User ID: 501Date/Time: 2015-07-29 19:30:09.701 +0800OS Version: Mac OS X 10.10.5 (14F6a)Report Version: 11Anonymous UUID: 58F6A28D-715A-E1B4-54D4-FEED8B09AB43Sleep/Wake UUID: ABCA5098-5B93-4BF9-BCAA-A4CD97A9D4BBTime Awake Since Boot: 130000 secondsTime Since Wake: 4800 secondsCrashed Thread: 0 Dispatch queue: com.apple.main-threadException Type: EXC_CRASH (SIGILL)Exception Codes: 0x0000000000000000, 0x0000000000000000Application Specific Information:ProductBuildVersion: 7A165tThread 0 Crashed:: Dispatch queue: com.apple.main-thread0 libsystem_kernel.dylib 0x00007fff8eb584de mach_msg_trap + 101 libsystem_kernel.dylib 0x00007fff8eb5764f ma
Jul ’15
Reply to 802.1x Enterprise Wireless
Possibly related to the following in the release notes?iOS 9 release notes:NetworkingNoteWhen negotiating a TLS/SSL connection with Diffie-Hellman key exchange, iOS 9 requires a 1024-bit group or larger. These connections include:Secure Web (HTTPS)Enterprise Wi-Fi (802.1X)Secure e-mail (IMAP, POP, SMTP)Printing servers (IPPS)El Capitan release notes:When negotiating a TLS/SSL connection with Diffie-Hellman key exchange, OS X El Capitan requires a 1024-bit group or larger. OS X El Capitan will not connect to a server that allows negotiation with a 512-bit or smaller group. These connections include: ⁃ Secure Web (HTTPS) ⁃ Enterprise Wi-Fi (802.1X) ⁃ Secure e-mail (IMAP, POP, SMTP) ⁃ Printing servers (IPPS)
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
Bundle’s name of a helper with a group container
My application uses a group container that shares files between the main application and its helper. The helper is launched by using SMLoginItemSetEnabled. When I switch to xCode 7 and build the project, I get an error :error: Embedded binary's bundle identifier is not prefixed with the parent app's bundle identifier. Embedded Binary Bundle Identifier: X2RD457E37.com.myCompany.myHelper Parent App Bundle Identifier: com.myCompany.myAppSo far, the bundle’s name of the helper started with the the group container ID (X2RD457E37). Did this rule change ? I have found no documentation on the subject.I develop in Objective-C but I notice that with Swift the method SMLoginItemSetEnabled is no longer avalaible. I guess it was replaced. But by what?Thanks for any help.
1
0
410
Jul ’15
Email Pop Up Sending Loop
Hi all!.Beta 3 Public.I have a problem with Mail.When i start it, and i try to send an email, the loop seems to be this:Send button:Try to send the email.The pop up of the email dissapear.The pop up of the email appearThe pop up of the email dissapear.The pop up of the email appearThe pop up of the email dissapear.The pop up of the email appearThe pop up of the email dissapear.The pop up of the email appearindefinitely.........The only way that can i send the email is, with this window opening and closing,,, try to enter to preference and put the password of the SMTP again....If i do it, Like a Spartan fighting with the pop up of the email, this can be sended and the pop up loop stops....How can i fix this?.RegardsP.D:Here have all the console menssages antil send correctly the email:30/7/15 9:57:23,668 a.m. Spotlight[248]: XPC connection was invalidated30/7/15 9:57:23,732 a.m. Spotlight[248]: XPC connection was invalidated30/7/15 9:57:23,931 a.m. Spotlight[248]: XPC connection was invalidated30/7/15 9:57:24,
9
0
1.8k
Jul ’15
iOS and Wi-Fi Direct
My question is fairly straight forward - can iOS create a Wi-Fi Direct group that can be joined by non-iOS devices?The only information I can find relating to iOS direct peer connectivity is https://developer.apple.com/library/prerelease/ios/documentation/MultipeerConnectivity/Reference/MultipeerConnectivityFramework/index.htmlMore specifically, The Multipeer Connectivity framework provides support for discovering services provided by nearby iOS devices...Based on this I would say no, but technically speaking, there should be no limitation for Wi-Fi Direct as it is an open standard, and apps like AirDrop already use it.
26
0
199k
Jul ’15
Xcode 7b4 Playground EXC_BAD_ACCESS all the time
Opening a new playground with Xcode 7 b4 and adding a single line like print(hello) results in a EXC_BAD_ACCESS error.Console.app shows the following:7/30/15 1:07:27.000 PM kernel[0]: Sandbox: MyPlayground2(75453) deny file-read-data /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 8.4.simruntime/Contents/Resources/RuntimeRoot/System/Library/Frameworks/UIKit.framework 7/30/15 1:07:27.146 PM com.apple.dt.Xcode.Playground[75242]: IDEPlaygroundExecutionSessionThread(pid=75453) IDEPlaygroundExecution: * thread #1: tid = 0xd320cf, 0x0000000107c9a962 libicucore.A.dylib`utext_clone + 22, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x8) * frame #0: 0x0000000107c9a962 libicucore.A.dylib`utext_clone + 22 frame #1: 0x0000000107dd3c12 libicucore.A.dylib`icu::RegexMatcher::reset(UText*) + 54 frame #2: 0x0000000107e0e3e4 libicucore.A.dylib`uregex_setText + 222 frame #3: 0x000000010577b765 Foundation`-[NSRegularExpression(NSMatching) enumerateMatchesInString:options:range:usingBlock:
1
0
1.1k
Jul ’15
Reply to Is it possible to use iOS to create shortcut icon button on a user's homescreen from my app programatically
You will need to have a web page which directs the user how to add the shortcut.http://stackoverflow.com/questions/10836925/iphone-sdk-add-a-add-to-home-screen-button-in-a-uiwebview/10838687#10838687http://stackoverflow.com/questions/7577889/how-could-i-create-a-shortcut-on-desktop-in-ios-through-an-app/7577934#7577934Apparently Facebook Groups does this locally by running a web server, but it will make the coding more involved:http://stackoverflow.com/questions/28042152/link-to-safari-add-to-home-screen-from-inside-app
Jul ’15
Reply to Recovery Partition and Facebook Integration
Hello There...Thank you for your reply. 🙂I do not run antivirus on the Mac and the Facebook login errors occured before I installed Little Snitch. Please be so kind as to elaborate on the certificate fix.Regarding the recovery partition, to confirm....Logical Volume Group 7F27A5C9-C73E-4C91-AD29-1D#####Physical Volume 1CBA00CD-C8BD-4838-AEFB-48F######Logical Volume Family 12FAB705-57A3-4F99-BEA7-6AE1#######Logical Volume 65F4CCBB-C457-41F3-862A-294DD#######These are all the UUID's displayed, I'm assuming that you mean the last one Logical Volume 65F4CCBB.....Thanks for your reply.
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
Reply to Questions/Possible issues with Advanced Operations sample code
Ok observation 2 :I can make it work by doing the following :in every group operation in the chain have : override func operationDidFinish(operation: NSOperation, withErrors errors: [NSError]) { if operation.cancelled { self.cancel() } }And the operation child operation can not be canceled until all operations are already init and running, which solves problem 2: conditions are evaluated before operation is executed.This is handled by wraping the init for the operation group in a simple block operation. There has to be a better way, any thoughts?
Jul ’15
Reply to iOS and Wi-Fi Direct
My question is fairly straight forward - can iOS create a Wi-Fi Direct group that can be joined by non-iOS devices?No. The peer-to-peer Wi-Fi implemented by iOS (and recent versions of OS X) is not compatible with Wi-Fi Direct.Note Just as an aside, you can access peer-to-peer Wi-Fi without using Multipeer Connectivity. The underlying technology is Bonjour + TCP/IP, and you can access that directly from your app. The WiTap sample code shows how.Based on this I would say no, but technically speaking, there should be no limitation for Wi-Fi Direct as [...] apps like AirDrop already use it.AirDrop does not use Wi-Fi Direct, but rather the Bonjour + TCP based peer-to-peer Wi-Fi discussed above.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Jul ’15
Keychain access on watchOS 2 not working on the actual watch
I have read in the Apple developer forum that unlike watchOS 1, watchOS 2 does not share its keychain with the phone app so bam!! keychain sharing is not enabled by default we got to do a workaround for that.Ok coming to my issue, I was trying to run a very basic keychain access program on the actual watch device running the latest beta (beta4) let storableString:NSString = keychain in watchos is working with simple code let query : [NSString : AnyObject] = [ kSecClass : kSecClassGenericPassword, kSecAttrService : WatchService, kSecAttrLabel : KeychainData, kSecAttrAccount : SecureData, kSecValueData : storableString.dataUsingEncoding(NSUTF8StringEncoding)! ] let result = SecItemAdd(query, nil) print(result)On the simulator it works like a charm but when I try to run the same on the actual watch it gives me an status code of -34018There was no public documentation about this error code but I did a little digging to find out it turned out to be errSecMissingEntitlement = -34018, / Internal error when a require
1
0
1.2k
Jul ’15
Reply to Email Pop Up Sending Loop
Afer do the process that you described yesterday... all day of yesterday work well...Today come to make me the same thing..31/7/15 7:47:46,366 p.m. secd[263]: secTaskDiagnoseEntitlements MISSING keychain entitlements: raw entitlement values: <CFBasicHash 0x7ffa21c36ce0 [0x7fff7d59fee0]>{type = mutable dict, count = 0,entries =>}31/7/15 7:47:46,367 p.m. secd[263]: secTaskDiagnoseEntitlements MISSING keychain entitlements: original ag: (null)31/7/15 7:47:46,367 p.m. secd[263]: secTaskDiagnoseEntitlements MISSING keychain entitlements: newly parsed ag: (null)31/7/15 7:47:46,367 p.m. secd[263]: __security_simulatecrash Simulating crash, reason: keychain entitlement(s) missing, code=53c0000731/7/15 7:47:46,367 p.m. secd[263]: __security_simulatecrash_link SimulateCrash not available31/7/15 7:47:46,367 p.m. secd[263]: securityd_xpc_dictionary_handler com.apple.Addres[364] copy_matching Error Domain=NSOSStatusErrorDomain Code=-34018 client has neither application-identifier nor keychain-access-groups
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15