Search results for

file uri scheme

78,567 results found

Post

Replies

Boosts

Views

Activity

Reply to WCSession sendMessage returning errors (simulator)
I found the answer in session 108 - Building Watch Apps, roughly 30 minutes in.Run the app with the Phone + Simulator scheme. This will start the watch sim.Switch the scheme to the Phone scheme associated with it (so, if you were using iPhone 6 + 38mm Watch, use iPhone 6)Hold down control and click the run button. This will run the scheme without rebuilding (and stopping the watch sim).Now you'll have both running at the same time. I've noticed that sometimes on step 3, the watch app will go to the home screen. It's still running though, start it back up and Connectivity will still work.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to Need Help With WatchKit
I think that the openParentApplication() is the fallback you would use on Watchkit 1.0 / iOS 8.x deployments. For the Watchkit 2.0 / iOS 9.x deployments, the WatchConnectivity framework is the way to go. I'm not sure how to implement the if #available() tests though, since it appears that Watchkit 1.0 SDK is missing from Xcode 7 currently. Additionally, we'd probably have to assume that the user will be forced to upgrade both iOS (to 9.x) and Watch OS (to 2.x) simultaneously when the production versions are rolled out, so we can use some variant of if #available(iOS 9.0, Watchkit 2.0, *) for our tests.Any thoughts on writing Watchkit 2.0 apps that also run on WK 1.0? Or just assume we push a new version, and keep a couple of branches (yuck!)?[edit] It appears that you can add a WatchKit 1.0 target to the project, and then share some files between the two variants. Now, I still need to find out how to get WatchKit 1.0 sdk into Xcode 7...
Topic: App & System Services SubTopic: General Tags:
Jun ’15
Reply to .m and .h files not being added to target
If you select the file and open the Assistant Editor pane on the right side of the main Xcode project window (using the button in the toolbar or the menu View>AssistantEditor>ShowAssistantEditor), one of the sections in the File Inspector has checkboxes which let you manually set which Targets the files should be added to.Sorry, but I don't know why you're not getting the option when you create the files.
Jun ’15
Reply to watchOS 2 framework failing
I'm seeing the same thing, but the more I struggle, the more I think this is expected. If you notice, when you add a new target, there's a new Watch Framework target. If I add a new Watch framework, I have no problem doing an @import of it. Think about the current frameworks. The framework code lives on your phone. The reason shared frameworks worked before was because the Watch extension and iPhone app both were on your phone. Now, the code for the Watch extension and the iPhone app are on separate devices. While the code might be the same, the code is hosted on physically separate devices. An official comment from Apple would be good, but after messing with search paths for a while and then thinking about the situation, I think it's accurate to say that your shared code is going to need to be duplicated. In my case, this is several constants and networking code.It would be great if Xcode could do this duplication for us, in some sort of omni-framework that automatically gets installed on both devices. After
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
NSWindow setToolbar bug on Yosemite-style Windows
I've run into a rather odd Yosemite bug (filed as rdar://20965476) when swapping the toolbar of an NSWindow.Specifically, for Yosemite-style windows, calling setToolbar (to replace an existing toolbar with a different one) causes the window to spontaneously resize, stretching the content. This is clearly a bug.The question is, how to work around this bug? I've tried all sorts of approaches, with no success.The bug can be reproduced by modifying Apple's ToolbarSample sample code project (https://developer.apple.com/library/mac/samplecode/ToolbarSample/Introduction/Intro.html), as follows:1. Add the following to the end of -awakeFromNib in Controller.m: self.window.titleVisibility = NSWindowTitleHidden; // Yosemite-style toolbar NSRect frame = self.window.frame; // Set the window to a small fixed size at launch frame.origin.y += frame.size.height - 400; frame.size.height = 400; [self.window setFrame:frame display:YES]; [self performSelector:@selector(tweakToolbar:) withObject:nil afterDelay:0.5f];2. Ad
Topic: UI Frameworks SubTopic: AppKit Tags:
0
0
302
Jun ’15
store images in private PHPhotoLibrary that will not appear in photos app
I am developing an app in using swift and core data that will be handling a large amount of photos along with associated data fields.I do not want these photos to be mixed in with the general photos in the ios photo app.What is the best way to handle this for scalability according to apple best practices?Should I just have a core data field that stored the image file name and then sore the image in hte assets folder?Is there a better way?
0
0
161
Jun ’15
Support iOS 8 while using Stacked Views?
At WWDC last week it was mentioned a few times that we should aim to support the two most recent versions of iOS (i.e. 8 and 9) in come fall. However, it was also mentioned that we should be able to handle most layout work in Interface Builder, and have to little of it programmatically. I've wanted to migrate to stacked views the instant I heard about them. They're super practical, but are unfortunately only available for iOS 9 devices. Is there a way to create an alternate IB file that doesn't use stacked views, and use that file for older versions of iOS? I'm unsure as to how I can implement stacked views but also provide an alternate to support <= iOS 8. Anyone know how to do this? Should I just not support iOS 8 at all? Feels a little bit silly to jump immediately to only iOS 9.
2
0
3.2k
Jun ’15
Reply to In WatchOS 2, there's no way to position views arbitrarily (possibly resulting in overlap) and no way to have views with custom rendering (e.g., by overriding a draw method). Why?
The API isn't quite as native as a lot of us were hoping, but there are ways around some of the limitations. For example custom drawing is possible by drawing an image and loading it into an image control, which is sufficient for a lot of situations. Arbitrary positioning of views is another matter with the flow approach to layout, but you might be able to do something with a bit of creativity. For games I'd imagine it's more a case of what can I do with these limitations rather than how do I do what I would like to do. The video on layout and animations would probably be a good start to see what is possible:https://developer.apple.com/videos/wwdc/2015/?id=216As someone who spent months on a version 1 watch app I was actually quite happy to see how version 2 apps work. I was worried that I would have to rewrite a lot of code if the layout scheme was changed, but the way Apple have designed it means that this is hopefully not the case. I'd imagine that a future version of watchOS will allow arbitrary
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
.pkg still says 'unidentified developer' after Productsign
Hi all, anyone with experience in signing .pkg files for distribution OUTSIDE of the App Store?I'm aware this isn't the right forum, but I couldn't see an appropriate section -sorry in advance.Set up the required private key and installer certificates through the Apple Dev site.Created a .pkg with the WhiteBox Packages software.Note: the content is NOT a standard .app file - it is a set of 3 plug-in files: .component, .vst, and .vst3, which are each moved into their required location upon install.(During this stage, I used the 'identifier' provided on the Apple Dev site: e.g com.companyname.productname)Built the .pkg with no issues.Signed the .pkg using the terminal command:productsign --sign developer-ID-number /path-to-file/xyz.pkg /path-to-new-file/xyz_signed.pkgThis was successful, and the correct information comes up when using the pkgutil --check-signature command.The signed .pkg works perfectly when not quarantined, and behaves as expected.However, re-quaran
2
0
808
Jun ’15
bug in /System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h
After installing El Capitan and Xcode 7 beta, I’ve been trying to rebuild my MacPorts installation from scratch following the Migration instructions at MacPorts. Everything went fine till I tried to build ImageMagick. More precisely, pango (an ImageMagick dependency) failed with the following errors:In file included from <stdin>:6: In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_x11_pango/pango/work/pango-1.36.8/pango/pangocoretext.h:28: In file included from /System/Library/Frameworks/Carbon.framework/Headers/Carbon.h:24: In file included from /System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:35: In file included from /System/Library/Frameworks/CoreGraphics.framework/Headers/CoreGraphics.h:43: /System/Library/Frameworks/CoreGraphics.framework/Headers/CGDisplayStream.h:15:1: error: '#pragma clang arc_cf_code_audited' was not ended within this file
3
0
1.4k
Jun ’15