Search results for

A Summary of the WWDC25 Group Lab

10,095 results found

Post

Replies

Boosts

Views

Activity

Reply to Sharing preferences with iPhone and Today extension
For my games I created a WatchKit Settings Bundle with my old and global app group as ApplicationGroupContainerIdentifier.Then in Watchkit Extension's applicationDidBecomeActive method, I request for the settings using Interactive Messaging from WatchConnectivity framework.So, basically, my extension receives settings from iOS app in the reply dictionary.
Topic: App & System Services SubTopic: General Tags:
Aug ’15
Can't add group to address book on device, but can do so on the simulator, why?
I have added a question to Stackoverflow about the problem I'm having here.For some reason, the code I have posted works fine on the simulator in XCode, but fails to work on several devices I've tried. I'm wondering what the reason might be.Another person ran into a similar problem, but with 64-bit devices, here.I've tried running the code on an iPad 2, as well as an Ipad Air, Ipad Mini, iPhone 6, etc. All ranging within 8.2 - 8.4 for the SDK version.Could someone explain to me why the code in my SO post simply won't work on the device?Thank you very much in advance!
0
0
130
Aug ’15
Reply to Cursor shake - Significant accessibility degredation
The Apple Developer forums are a great place to post questions and share comments on a variety of development topics with other developers around the world. While Apple Engineers are present in the Apple Developer forums their role is to provide answers to questions on App and hardware development. The accessibility issue you’ve written about is very important to us and we want to make sure it’s routed to the appropriate group. We would ask that you submit this through Bug Reporter to ensure the appropriate Apple team can review the request in detail. You may submit this directly using the following link:http://bugreport.apple.com
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’15
Reply to Feature request: Low-level atomics support
!I think I have seen a related problem - memory consistency.I have some tasks that populate an array in the background using a concurrent global queue and dispatch groups are used to wait for completion. In the forground I wait for completion on a dispatch group, of index 0, which signals that the optional array element, also of index 0, has been populated (i.e. is no longer nil). However if I simply wait on the task group I occassionally get a nil exception unless I add a nil check in which case the code works as expected, see below:while containersRef.value[0] == nil { // Added manual nil check usleep(1) } dispatch_group_wait(dispatchGroups[0], DISPATCH_TIME_FOREVER) // Does not ensure that containersRef.value[0] != nil, but should! someFunction(containersRef.value[0]!) // Without manual nil check the ! sometimes fails when testing with XCTestThis is very odd because when the background task has completed the array element cannot be nil. I can think of two alternatives:Is this a m
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’15
Reply to Feature request: Low-level atomics support
If you're accessing the same array from two threads concurrently (with at least one writer), you have a problem. If you write to the array, then signal the dispatch group, and the other therad waits on the group, then reads from the array, that's fine. But I note your group itself is stored in an array; any chance that groups array is being read from and written to concurrently? Also, your while loop there is absolutely violating concurrency, because you're reading from the array while another thread is writing to it.It's worth noting that what I'm asking for (low-level atomics support) really has no bearing on your problem. You are trying to use existing concurrency primitives (which is correct, as atomics don't solve your problem unless you use them to recreate a dispatch group), which is perfectly fine in Swift.
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’15
NSFetchRequest invalid error
I'm using the following code to find out how many unique names I have. It's giving an exception saying Invalid fetch request: GROUP BY requires NSDictionaryResultType. But, I'm clearly specifying that type. Is there another property that's required here?var request = NSFetchRequest(entityName: Player) request.resultType = .DictionaryResultType request.predicate = NSPredicate(format: bye = 0 AND (ANY %K == %@ OR ANY %K == %@), matches.bracket, self, matches2.bracket, self) request.propertiesToFetch = [name] request.propertiesToGroupBy = [name] let count = self.managedObjectContext!.countForFetchRequest(request, error: nil)If I just change that to be a normal executeFetchRequest I get back the expected 5 groups.
0
0
516
Aug ’15
Reply to Backwards compatibility
Thank you for this response.To summarize, and so I understand correctly, even if my current 1.0 app depends on App Groups and openParentApplication/handleWatchKitExtensionRequest for bi-directional communication it will still run okay and un-modified on devices running watchOS 2.0?I'll migrate to 2.0 eventually, but I'm okay with 1.0 for this upcoming version of my app-- and I'll likely be submitting my watchOS 1.0 compatible app to the App Store just around the same time of the release of 2.0. That's not a problem for me (or my users) unless A) users running watchOS 2.0 won't be able to download and run my watchOS 1.0 app; and B) I 'll no longer be able to continue development targeting 1.0 -- i.e. developers will have no choice but to submit 2.0 compatible apps only following the release of watchOS 2.0?
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’15
Reply to Backwards compatibility
To summarize, and so I understand correctly, even if my current 1.0 app depends on App Groups and openParentApplication/handleWatchKitExtensionRequest for bi-directional communication it will still run okay and un-modified on devices running watchOS 2.0?Correct — watchOS 1 apps will continue to function as they currently do, regardless of what OS verion the user has on their watch.
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’15
I got error "Unable to boot the iOS Simulator" when I run iOS simulator?
Hi,I got Unable to boot the iOS Simulator when I run the iOS Simulator - iPhone 5s /iOS7.1 (11D167).But the simulator on iPhone5, iPhone4, iPad2, iPad Retina are fine. (iOS 7.1 simulator)I got the error log from system as follows.Does anybody know what happend?Thanks,EricProcess: launchd_sim [656]Path: /Library/Developer/CoreSimulator/Profiles/Runtimes/iOS 7.1.simruntime/Contents/Resources/RuntimeRoot/usr/libexec/launchd_simIdentifier: launchd_simVersion: 330.10.5Code Type: X86-64 (Native)Parent Process: ??? [1]Responsible: launchd_sim [656]User ID: 501Date/Time: 2015-08-18 23:35:08.238 +0800OS Version: Mac OS X 10.10.4 (14E46)Report Version: 11Anonymous UUID: BE08D7B5-D7CA-B6A3-9AAF-7C0B29850628Time Awake Since Boot: 740 secondsCrashed Thread: 0 Configuration error: Could not bind system logger socket. Dispatch queue: com.apple.main-threadException Type: EXC_BAD_INSTRUCTION (SIGILL)Exception Codes: 0x0000000000000001, 0x0000000000000000Application Specific Information:/Library/Developer/CoreSimulator/Profile
4
0
1.5k
Aug ’15
Applications are crashing on Mac OSX 10.11 (15A244d) build
Hi,I installed the latest Mac OSX 10.11 (15A244d) build on my Mac machine & then when I am trying to launch my Xcode 3.2.5 applications, it is crashing everytime. Following is the crash report. Can you please let me know what's the issue?ThanksAsutos Process: XCodeApplication [433] Path: /Volumes/VOLUME/XCodeApplication.app/Contents/MacOS/XCodeApplication Identifier: com.efi.XCodeApplication Version: 3.0.0.06 (3.0.0.06) Code Type: X86-64 (Native) Parent Process: ??? [1] Responsible: XCodeApplication [433] User ID: 501 Date/Time: 2015-08-13 14:21:25.910 -0700 OS Version: Mac OS X 10.11 (15A244d) Report Version: 11 Anonymous UUID: 01B10E10-B036-B185-410E-2760DA7B1478 Time Awake Since Boot: 180 seconds Crashed Thread: 0 Dispatch queue: com.apple.main-thread Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes: KERN_INVALID_ADDRESS at 0x00007ffbffeaf110 Exception Note: EXC_CORPSE_NOTIFY VM Regions Near 0x7ffbffeaf110: Stack 00007000004af000-0000700000531000 [ 520K] rw-/rwx SM=COW thread 10 --> STACK GU
6
0
3.1k
Aug ’15
Reply to xcodebuild archive fails ITMS validation
This may not be the help you're after, but it may help you (or someone).TL;DR: Xcode correctly exports IPA for the App Store, xcodebuild does not.After a bit of investigation, it looks like the exportArchive step is embedding the app entitlements file in each of the embedded frameworks. You can see this using the code signing CLI tool:codesign --display --entitlements :- /path/to/embedded/Framework.framework/FrameworkIt looks something like this:<?xml version=1.0 encoding=UTF-8?> <!DOCTYPE plist PUBLIC -/ <plist version=1.0> <dict> <key>application-identifier</key> <string>## Team ID was here##.## App ID was here##</string> <key>aps-environment</key> <string>production</string> <key>com.apple.developer.team-identifier</key> <string>## Team ID was here##</string> <key>com.apple.security.application-groups</key> <array> <string>group.## App ID was here##</string> </arra
Aug ’15
Reply to how do i fix the sigabrt error?
That looks like a crash log, not console output. Here's how to find the information I'm looking for:•Open the debugger console at the bottom of the Xcode window (Cmd-Shift-Y)•At the toolbar at the very bottom of the debugger area, look at the group of buttons along the right edge. Make sure that the button that's farthest to the right is highlighted—you should see a blank area that shows status messages, etc. as the app runs.•Now build and run your app. When it hits the error, if the current line of code is highlighted in green, hit Continue until it turns red. Once it's red, hit the Stop button.•In the log view, you should see a bunch of messages in a format kind of like this:2015-08-19 16:29:48.492 AppName[11467:1261547] Message TextCopy the contents of the log and paste it here.What you pasted earlier is actually a snapshot of the current low-level system state; it's useful for some debugging tasks but not this one.
Aug ’15
How to make Xcode generate App Provisioning Profile?
Hi.I've just created a new App ID in the Portal, which includes the App Groups capability. How do you manually trigger the creation of the iOSTeam Provisioning Profile:... profile that is managed by Xcode automatically?At the moment my project is just using a wildcard identifier profile, but I need one that is custom to the App ID.Also, I am aware I can manually create a profile, but I'm more just curious about how to do this.
2
0
903
Aug ’15