Search results for

A Summary of the WWDC25 Group Lab

10,092 results found

Post

Replies

Boosts

Views

Activity

xcode 7 - watchos1 storyboard crashes
We are converting our project over to Xcode 7 and Swift 2. We had a watch extension. Allowed xcode to convert that to watchos2.When we go to open the storyboard, we get this crash. Are some storyboards broken and need manual adjustments?Process: Xcode [97053]Path: /Applications/Xcode-beta.app/Contents/MacOS/XcodeIdentifier: com.apple.dt.XcodeVersion: 7.0 (8163.8)Build Info: IDEFrameworks-8163008000000000~7Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: Xcode [97053]User ID: 504Date/Time: 2015-07-16 18:39:19.620 -0400OS Version: Mac OS X 10.10.4 (14E46)Report Version: 11Anonymous UUID: 56576435-6521-AF4C-A27C-F5E11A057A25Sleep/Wake UUID: BAA76D42-23AC-45B6-A291-6CFFB2574157Time Awake Since Boot: 1300000 secondsTime Since Wake: 10000 secondsCrashed Thread: 0 Dispatch queue: com.apple.main-threadException Type: EXC_CRASH (SIGABRT)Exception Codes: 0x0000000000000000, 0x0000000000000000Application Specific Information:ProductBuildVersion: 7A152uASSERTION FAILURE in /Library/Caches/com.apple.xbs/Sourc
1
0
479
Jul ’15
Creating release build for framework
Hi, I am developing a dynamic framework using xcode 6.4. I am able to generate the debug build for it which is available in debug-iPhones and debug-iPhonesimulators folders under Products Group. But I am not able to generate the release build for the same. I tried editing the scheme but it didn't work.Also I dont want to go with archive option as it works only in device. I want the release build to work for the simulators as well as for the devices. So, I want the release build to be generated in release-iPhones and release-iPhonesimulators folders, same as in case of debug build.What is the procedure to generate release build for framework?
1
0
481
Jul ’15
Reply to How do I let my Mac app access the Terminal through App Sandboxing?
Basically, our app opens terminal and runs a script that automatically types in the credentials of whatever network device you want to configure.This is not compatible with sandboxing. Consider the script your posted later on; if you can tell Terminal to SSH to a particular server, you could tell Terminal to rm -rf ~, and that's obviously nonsensical for a sandboxed app.There's no clear way forward here. AFAICT your options are:distribute outside of the Mac App Storeput the terminal emulation code within your app — That's a lot of work.file a bug requesting that Terminal support a scripting access group for setting up Telnet and SSH connections — If you do this, please post your bug number, just for the record.implement your scripting with NSUserScriptTask — Be aware that App Review has strict rules on how folks can use NSUserScriptTask and a single-purpose app that uses NSUserScriptTask simply to bypass a sandbox restriction is unlikely to be well received.These options aren't mutually exclusive, so
Topic: Privacy & Security SubTopic: General Tags:
Jul ’15
Reply to How safe is the shared container for an App Group?
Then it's what POM said. From a security perspective the only difference between a group container and your app's standard container is that multiple apps from the same team can access the group container. So, as long as you trust yourself (-: the group container raises no additional security concerns.Actually, the above is a little too glib. The attack surface of your app's standard container is just your app. The attack surface of a group container is all apps that you ship that can access that container. That's likely to be larger, and thus there is a difference in the security.Whether that's a significant difference is something for you to decide.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: Privacy & Security SubTopic: General Tags:
Jul ’15
NSJSONSerialization thread safety
Does anyone know if NSJSONSerialization is thread safe? Specifically, can I call JSONObjectWithData() concurrently from multiple background threads? The class docs don't mention anything about it: https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSJSONSerialization_Class/Nor does the threading summary page:https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/Multithreading/ThreadSafetySummary/ThreadSafetySummary.htmlThanks!Greg
Topic: UI Frameworks SubTopic: AppKit Tags:
3
0
1k
Jul ’15
Unexpected Atomics Behavior (Mac)
Per the Metal Shading Language Guide documentation, the following kernel should return 100 + the number of threads in the threadgroup when a single group is dispatched, but it always returns 0 ( 100 was chosen arbitrary as a non-zero value ).#include <metal_stdlib> using namespace metal; kernel void threadcount(device float *out[[ buffer(0) ]], uint id [[ thread_position_in_grid ]]) { volatile device atomic_int *thread_count; atomic_store_explicit(thread_count, 100, memory_order_relaxed); threadgroup_barrier(mem_flags::mem_none); atomic_fetch_add_explicit(thread_count, 1, memory_order_relaxed); threadgroup_barrier(mem_flags::mem_none); out[0] = atomic_load_explicit(thread_count, memory_order_relaxed); }To get a non-zero resultComment out lines 5, 6, 7 and 8.
2
0
558
Jul ’15
Accessing Core Data from the app and from a today widget
I am developing an app that has a today widget extension.The widget should have read and write access to Core Data. Therefor I want to store all Core Data relevant files in an app group container.The app itself should also be able to read and write to Core Data. Inside the app I will use 3 Core Data contexts:private Context: writes data to the file and is connected to a PSCV parentmain Context: interacts with the UI (read only access)V parentprivate Context: downloads data from a server (read/write access)Is it save to access the sqlite- and model-file directly from the extension in the same way the app does (with 3 contexts)?Thanks in advance!
0
0
270
Jul ’15
IKEv2 Dead Peer detection issue behind NAT
Hello,I have been trying to test the new IKEv2 protocol fixes done in IOS 9 Beta 2.I have been having an issue with the following setup :Apple IPad --- Fw/Nat --- Internet --- Fw/NAT --- VPN Strongswan GwBasically, we go through two NAT firewalls to access the VPN gateway.The connection works for both IKA SA_INIT and IKE AUTH but the DPD sent by the Strongswan Gateway are ignored by the Ipad or dropped. (no logs seen on the device)My question is :- Is it possible the Ikev2 DPD with a notify (41) payload is ignored by the Ipad when configured with NAT both on the client side (ipad) and server public side (i..e gateway is behind a NAT also) ?My configuration (ipsec.conf):conn %default ikelifetime=60m keylife=20m rekeymargin=3m keyingtries=1 keyexchange=ikev2 mobike=yes ike=aes256-sha256-modp1024,aes256-sha256 esp=aes256-sha256-modp1024,aes256-sha256# Ikev2, Pre-Shared Key, AES256-SHA256-MODP1024(DH group 2)conn road_ikev2_psk authby=secret rekey=yes dpdaction=clear left=%any leftsubnet=0.0.0.0/0 leftso
0
0
983
Jul ’15
NSFetchedResultsController grouping fails with saved child contexts
I have a basic stack, with a main queue root context and a main queue scratch context while the user is editing.If I use an NSFetchedResultsController to fetch from the child context after it's saved, the controller always returns 0 sections. It works fine if the child context hasn't been saved yet, or if the NSFetchedResultsController targets the root context. I've opened a bug report with Apple #21889387 but it's blocking me in a production app, so if anyone can help, that'd be great!I've created a unit test file that demonstrates the error here https://github.com/adly-holler/frc-child-context-bugThanks in advance!
1
0
296
Jul ’15
Reply to Touch ID and Keychain for sensitive/financial data and related WatchKit app
It's true that watchOS 2.0 does not allow keychain sharing via an app group, but that's simply because your app and extension are running on separate devices now. [comment about syncing deleted; see my 22 Sep post for the reason why]Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: Privacy & Security SubTopic: General Tags:
Jul ’15
Reply to Developer Preview 2 install wants "Setup User" password
Sorry to be late at the party, but after the initial install of DP1 I noticed the following after running the setup assistant:There was an extra (dmg? of about 55 MB, 7,2 MB used ) mounted as disk3, and was mounted at /private/var/setup/This folder contains files owned by _mbsetupuser_ (I was testing on a macbook pro 13 2011)and contained mostly a Library folder, which contained lots of data similar to a user's Library folder.I assume that this is something like a 'Template' folder.after my first reboot this mount point was gone, but the user was still there ( id _mbsetupuseruid=248(_mbsetupuser) gid=248(_mbsetupuser) groups=248(_mbsetupuser),12(everyone),61(localaccounts),701(com.apple.sharepoint.group.1),100(_lpoperator)I can see it in dscl, output at the end of this postI have no idea what happened, but I think it is a special user that is supposed to be used (once?) during initial setup.If one stops the initial setup, maybe JGD did something special during this phase, with the result it tries to
Topic: App & System Services SubTopic: Core OS Tags:
Jul ’15