Search results for

A Summary of the WWDC25 Group Lab

10,092 results found

Post

Replies

Boosts

Views

Activity

Packet tunnel extension not loading
I'm running into a curious problem when trying to load a custom packet tunnel extension (not precisely based on the DTS sample because our code is all C-based rather than Swift, but it was modeled off of that sample as much as possible). When the extension tries to load, I see this:Jul 13 17:49:28 iPad nesessionmanager(NetworkExtension)[169] <Notice>: NESMVPNSession[Test VPN:CA508B27-7498-4CFC-97DA-4F6723E44F59]: Received a start command from test[516] Jul 13 17:49:28 iPad nesessionmanager(NetworkExtension)[169] <Notice>: NESMVPNSession[Test VPN:CA508B27-7498-4CFC-97DA-4F6723E44F59]: status changed to connecting Jul 13 17:49:28 iPad neagent(libextension.dylib)[170] <Notice>: calling plugIn beginUsing: Jul 13 17:49:28 iPad pkd[124] <Notice>: assigning plug-in <CFString 0x16e85a10 [0x37dbece8]>{contents = com.********.test.TunnelProvider}(<CFString 0x353f9978 [0x37dbece8]>{contents = 1.0}) to plugin sandbox Jul 13 17:49:28 iPad pkd[124] <Notice>: enabling pid=170 for pl
3
0
3.1k
Jul ’15
Reply to Packet tunnel extension not loading
I finally figured it out. Well, sort of. I'm not sure why it failed originally. At some point, while trying to fix this crash, I set the NSExtensionPrincipalClass to $(PRODUCT_MODULE_NAME).TunnelProvider, but apparently that is only correct when building Swift code. When building non-Swift code, it has to just be TunnelProvider.With that said, it was crashing in the same spot before I made that change, so apparently something else I changed since then also had an impact—maybe changing the class name to be the same as the bundle display name... or maybe changing it from being in its own keychain access group to being in the access group of the parent app plus com.apple.managed.vpn.shared (even though neither will ever be used)... or adding a keychain access group for the parent app....None of those things should reasonably have caused a failure, but those are the only changes I can see between yesterday morning and now. *shrugs*
Jul ’15
Proposal for indirect struct properties
(I apologize that this post is long. The original version was short and linked to a longer post on my blog, but that version was stuck in moderation for days because of the external link. This time I've reproduced the entire post here.)I’m continuing to listen to the WWDC videos and think about how they apply to my own code, and recently I’ve been thinking about the intersection of three Swift topics:Building Better Apps with Value Types in Swift, where they promote the advantages of value types over reference types for certain uses.Optimizing Swift Performance, where they describe possible performance issues with value types and how to work around them.What’s New in Swift, where they describe the (currently unimplemented) indirect keyword for use in recursive enums.In the optimization video, Michael Gottesman points out that Swift’s copy-on-write semantics for structs can cause performance problems if the struct contains many reference-counted properties. (14:12) The first time a struct is modified it must be
4
0
2.4k
Jul ’15
Reply to Complication image assets
I'm finding this very confusing and buggy. Xcode seems to want you to use the Complication Asset Catalog folder (it creates them in new projects) and wants very specific sizes for the images. It produces build warnings if these sizes are not used:Circular: 32x32px for 38mm and 36x36px for 42mmModuar: 52x52px for 38mm and 58x58px for 42mmUtilitarian: 40x40px for 38mm and 44x44px for 42mmFirstly, I find it odd that you need to use the Complication/ prefix when specifying the name for each image. That's never been the case for asset catalogs in the past.The documentation lists specific sizes for the various different complication templates and apart from circular small simple image and modular small simple image the sizes don't match what Xcode wants. The images I provide are not being scaled down in some cases, and are being scaled vertically but not horizontally in other cases.The Big Nerd Ranch blog post on complications implies you can just use normal asset class logic to load images (no prefixes, no special
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15
HKWorkout totalEnergyBurned doesn't correlate
HKWorkout totalEnergyBurned doesn't correlate with daily sum of ActiveEnergyBurned.This is more of a data structure question than a programming syntax question. The data structure of the Health app is somewhat of a black box to me.I want to query HKHealthStore and create both a daily summary of items including, ActiveEnergyBurned, and also a summary of workouts including totalEnergyBurned.I have code (below) that successfully retrieves this information. However the number for the daily total is usually LESS than that day's workout! I am sure that my code is not the problem, because the exact same numbers show up in the Apple Health app. For example: yesterday's workout: My app workout.totalEnergyBurned = 905 kcal sum of yesterday's ActiveEnergyBurned 655 kcal Health app shows the exact same numbers for both. If ActiveEnergyBurned, doesn't include workouts, what does it include? I didn't have another 655 of ActiveEnergyBurned. It doesn't seem possible to me that ActiveEnergyBurned wouldn't in
0
0
225
Jul ’15
Reply to How safe is the shared container for an App Group?
The security around the group container is the same as the security around a regular container, with the difference that it can be accessed from any process signed with the appropriate AppGroup ID. You can use Data Protection and store your content in Class A if you want to make it's only available when the device is unlocked.
Topic: Privacy & Security SubTopic: General Tags:
Jul ’15
Reply to Proposal for indirect struct properties
It is clear in WWDC sessons that String as well as Array has a reference type for underlying storage. It only appears to be value type by encapsulating the common storage type shared with ObjC (something like CFString for toll-free bridging I assume).indirect as the keyword though I think is confusing. It solves a completely different problem in enum, and it can't express more than one group.
Topic: Programming Languages SubTopic: Swift Tags:
Jul ’15
"Internal Error Updating Bot"
Hi,I am trying to set up OS X Server 5 for continuous integration on El Capitan. I need to modify my bot. If I click Edit Bot... to change its configuration, I am unable to save my changes. Even if I do not change anything in the resulting sheet, clicking Done results in this error message:Internal Error Updating BotPlease try configuring the bot again.I see these messages in the Console, although I do not think they are relevant:7/15/15 7:54:31.735 PM servermgr_certs[364]: validating connection from 0 : 100000 7/15/15 7:54:31.853 PM com.apple.xpc.launchd[1]: (com.apple.serviceproxy[15749]) Service exited with abnormal code: 1 7/15/15 7:54:31.853 PM com.apple.xpc.launchd[1]: (com.apple.serviceproxy) Service only ran for 0 seconds. Pushing respawn out by 10 seconds. 7/15/15 7:54:41.939 PM certadmin[15763]: Connected to the Notify Service 7/15/15 7:54:41.940 PM servermgr_certs[364]: validating connection from 0 : 100000 7/15/15 7:54:42.046 PM com.apple.xpc.launchd[1]: (com.apple.serviceproxy[15760]) Service exi
2
0
2.5k
Jul ’15
Rendering cached images super slow?
Hi, So I have been trying to create a small graph, aka 55 images put into a WKInterfaceImage, so imagine group with a 3 pixel high image with width of the container, where there is different positions. Now take 20 rows of those WKInterfaceImage, and then created a small NSTimer that would shift the image of those 20 rows. In the simulator it runs very smoothly, no problems, I can easily create a graph this way. But in the device, it is super slow, not usable at all, like if WKInterfaceImage cache is completely broken.I assume the problem is that the images are not cached correctly on the device, so when I each second switch the image with setImageNamed, it just doesn't work on the watch?This is taken from documentation so I am still mystified to what the problem could be:https://developer.apple.com/library/ios/documentation/General/Conceptual/WatchKitProgrammingGuide/Images.htmlUse thesetImageNamed: or setBackgroundImageNamed: methods to assign an image that is already in the WatchKit app bundle or t
1
0
461
Jul ’15
language entry using Trackpad Handwriting
Currently, the OS supports many different symbol based languages, like Chinese, where you can use the Trackpad Handwriting feature to draw a Chinese character and then choose from possible closest matches and have that font character inserted into a document.I am trying to develop the same thing for a new symbol based language for a minority group. Is there a way to write code to add languages and Trackpad Handwriting support to the OS? Or to open and modify what has already been done so that I can just enter in a new dictionary of symbols while using the same Trackpad Handwriting and matching that already exists?
5
0
380
Jul ’15