Search results for

“file uri scheme”

81,724 results found

Post

Replies

Boosts

Views

Activity

Reply to This app is not allowed to query for scheme...
Right. You'll have to declare the URL schemes, you want to use in your Info.plist. Use the key LSApplicationQueriesSchemes for that.Note: Apps that were built before iOS 9 will always return NO for canOpenURL as soon as they checked 50 different schemes. Even rebooting the device doesn't reset those!There will also be session 509 about the new Universal Links called Seamless Linking to Your App on Thursday.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
New File/Folder Permissions?
Hi,After upgrading from Yosemite to El Capitan Beta, I tried to edit in /System/Library/LaunchDaemons/ssh.plist to change the default SSH port to a custom one. This is the process I've been using for a couple of years.The problem is that El Capitan doesn't allow me to change anything in this folder (not even with sudo). The folder and its files are marked as restricted' when I list the contents with ls -lO. The same folder listing in previous versions of OS X does not show restricted.Is this something new to OS X El Capitan? How can I edit files/folders that are restricted?Regards,Spencer
1
0
421
Jun ’15
Reply to New File/Folder Permissions?
Yes. It is new to el capitan. The idea is to enhance security by making some system files locked down (even from sudo commands). It remains to be seen how good this is as far as security is concerned - and how much of a nuisance it is as far as making it harder to modify your system to suit your own particular requirements. You might not be able to change stuff you were able to before.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
IOS App Install Fail Over The Air
Hi, I'm using Xcode6 and created a test app for ipad. It compiles and runs fine in simulator. My next step is to distribute it using adhoc distribution mechanism. Here is what I've done1. Using Keychain Access to create a public/private key pair.2. Load it up into Developer Center to create a certificate, then download it.3. Add my ipad UUID under Devices.4. Create a adhoc provisioning profile by including my ipad in it, I only have one device in Member Center. Let's call the provision MyProv.5. Run the .cer file by double clicking it.6. Download the .mobileprovision file from Member Center to desktop. Then double click it.Now, in Xcode, under Build Setting, I change Provisioning Profile Debug and Release entry to point to MyProv, then run Product->Archive. When archiving the app, Xcode as me if I want to use my key created in step 1 above to sign the bundle. I allow it. I also choose to Save for ad hoc distribution when asked. In the summary page, I can see the Provisioning Profile colum
2
0
1.7k
Jun ’15
optional protocols
I'm kind of dissapointed with the lack of optional protocols for native Swift types still in 2.0. I am happy to see the workaround of declaring default implementations through protocol extensions, but this seems like a workaround rather then a solution. The language natively supports optional protocols, except they have to be delared with the @objc keyword, which rules out using classes/structs/enums that I define in in the function declaration. I tried using the @nonobjc keyword inside the protocol, but only ended up with a compiler error (which is what I was expecting anyway). I'm sure there is a valid reason not to implement them in the language, I just don't know what it is, and can't for the life of me figure it out on my own. Especially as all the language support for working with them seems to be in place.AndrewPS, In case you're wondering, yes I filed a bug report on this a long time ago.
1
0
270
Jun ’15
How to ignore errors?
First of all, let me just go out and say that this new error handling system in Swift is a huge, huge improvement. However, this is one case that I'm unsure about, which is when you legitimately care about errors. However, sometimes you don't care about the specific error, but you just want to know if something succeeds or not. A good example is checking the availability of a file, where you just want to know if it's reachable and don't want to bomb out if it's not. In Objective-C, this would be done with one line of code, simply by passing NULL for the error parameter:BOOL isReachable = [someURL.checkResourceIsReachableAndReturnError: NULL];However, in Swift 2, the best way I can see to do this is:let someURL = ... let isReachable: Bool do { try someURL.checkResourceIsReachableAndReturnError() isReachable = true } catch { isReachable = false }This seems somewhat verbose and awkward. Is there any more elegant way just to check if a file is reachable without treating the result as an error?
7
0
3.8k
Jun ’15
Reply to Future of Newsstand?
I was confirmed that the Newsstand download APIs still work the same way and should continue to be used.I agree that there is a serious lack of documentation around what's happening with Newsstand apps. I encourage all of you to file bug reports about this with your questions.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
watchOS 2 framework failing
I am using a custom embedded framework to make my watch extension currently work. However, when I use Xcode 7 with watchOS 2, I get a bunch of warnings, one of which offers to Update to recommended settings. Has anyone else gotten this?When I click Perform changes to update to the recommended settings, all the lines #import <MyFramework/MyFramework.h> in my watch extension interface controller files say file not found. I have checked to make sure that I am linking with the library MyFramework in the app extension, but this error still appears. Again, I wasn't having this issue prior to Xcode 7.Any help would be greatly appreciated. Thanks!Edit: I tried creating a brand new project with an Apple Watch app+extension. I created a custom framework and linked to it in my watch extension, but this error still shows up. So I don't think it has to do with the recommended settings...
5
0
5.3k
Jun ’15
Reply to This app is not allowed to query for scheme...
Right. You'll have to declare the URL schemes, you want to use in your Info.plist. Use the key LSApplicationQueriesSchemes for that.Note: Apps that were built before iOS 9 will always return NO for canOpenURL as soon as they checked 50 different schemes. Even rebooting the device doesn't reset those!There will also be session 509 about the new Universal Links called Seamless Linking to Your App on Thursday.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
New File/Folder Permissions?
Hi,After upgrading from Yosemite to El Capitan Beta, I tried to edit in /System/Library/LaunchDaemons/ssh.plist to change the default SSH port to a custom one. This is the process I've been using for a couple of years.The problem is that El Capitan doesn't allow me to change anything in this folder (not even with sudo). The folder and its files are marked as restricted' when I list the contents with ls -lO. The same folder listing in previous versions of OS X does not show restricted.Is this something new to OS X El Capitan? How can I edit files/folders that are restricted?Regards,Spencer
Replies
1
Boosts
0
Views
421
Activity
Jun ’15
Reply to New File/Folder Permissions?
Yes. It is new to el capitan. The idea is to enhance security by making some system files locked down (even from sudo commands). It remains to be seen how good this is as far as security is concerned - and how much of a nuisance it is as far as making it harder to modify your system to suit your own particular requirements. You might not be able to change stuff you were able to before.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
IOS App Install Fail Over The Air
Hi, I'm using Xcode6 and created a test app for ipad. It compiles and runs fine in simulator. My next step is to distribute it using adhoc distribution mechanism. Here is what I've done1. Using Keychain Access to create a public/private key pair.2. Load it up into Developer Center to create a certificate, then download it.3. Add my ipad UUID under Devices.4. Create a adhoc provisioning profile by including my ipad in it, I only have one device in Member Center. Let's call the provision MyProv.5. Run the .cer file by double clicking it.6. Download the .mobileprovision file from Member Center to desktop. Then double click it.Now, in Xcode, under Build Setting, I change Provisioning Profile Debug and Release entry to point to MyProv, then run Product->Archive. When archiving the app, Xcode as me if I want to use my key created in step 1 above to sign the bundle. I allow it. I also choose to Save for ad hoc distribution when asked. In the summary page, I can see the Provisioning Profile colum
Replies
2
Boosts
0
Views
1.7k
Activity
Jun ’15
Reply to Macbook Pro (early 2011) restarting continuously El Capitan
I have the same problem on my MB Air 13 Mid 2012, but when booting in Safe-Mode I can't find the file SXUPTP.kext in Finder?
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
optional protocols
I'm kind of dissapointed with the lack of optional protocols for native Swift types still in 2.0. I am happy to see the workaround of declaring default implementations through protocol extensions, but this seems like a workaround rather then a solution. The language natively supports optional protocols, except they have to be delared with the @objc keyword, which rules out using classes/structs/enums that I define in in the function declaration. I tried using the @nonobjc keyword inside the protocol, but only ended up with a compiler error (which is what I was expecting anyway). I'm sure there is a valid reason not to implement them in the language, I just don't know what it is, and can't for the life of me figure it out on my own. Especially as all the language support for working with them seems to be in place.AndrewPS, In case you're wondering, yes I filed a bug report on this a long time ago.
Replies
1
Boosts
0
Views
270
Activity
Jun ’15
How to ignore errors?
First of all, let me just go out and say that this new error handling system in Swift is a huge, huge improvement. However, this is one case that I'm unsure about, which is when you legitimately care about errors. However, sometimes you don't care about the specific error, but you just want to know if something succeeds or not. A good example is checking the availability of a file, where you just want to know if it's reachable and don't want to bomb out if it's not. In Objective-C, this would be done with one line of code, simply by passing NULL for the error parameter:BOOL isReachable = [someURL.checkResourceIsReachableAndReturnError: NULL];However, in Swift 2, the best way I can see to do this is:let someURL = ... let isReachable: Bool do { try someURL.checkResourceIsReachableAndReturnError() isReachable = true } catch { isReachable = false }This seems somewhat verbose and awkward. Is there any more elegant way just to check if a file is reachable without treating the result as an error?
Replies
7
Boosts
0
Views
3.8k
Activity
Jun ’15
Reply to Is the System San Fransisco font available to users as a selectable font?
Not from what I have seen. The typeface files can be found without too much issue but they are built in such a way that prohibits typical use. As best I can tell, at least.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to Future of Newsstand?
I was confirmed that the Newsstand download APIs still work the same way and should continue to be used.I agree that there is a serious lack of documentation around what's happening with Newsstand apps. I encourage all of you to file bug reports about this with your questions.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to Scaled resolution not working on 2015 15" rMBP / 10.10.4 beta
I have already filed a bug report: 21327895
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
Reply to Java SE 6
Sorry, doesn't work for me either... Read-only file system is written. Alternative solutions wanted.Thank you for any additional ideas!
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’15
watchOS 2 framework failing
I am using a custom embedded framework to make my watch extension currently work. However, when I use Xcode 7 with watchOS 2, I get a bunch of warnings, one of which offers to Update to recommended settings. Has anyone else gotten this?When I click Perform changes to update to the recommended settings, all the lines #import <MyFramework/MyFramework.h> in my watch extension interface controller files say file not found. I have checked to make sure that I am linking with the library MyFramework in the app extension, but this error still appears. Again, I wasn't having this issue prior to Xcode 7.Any help would be greatly appreciated. Thanks!Edit: I tried creating a brand new project with an Apple Watch app+extension. I created a custom framework and linked to it in my watch extension, but this error still shows up. So I don't think it has to do with the recommended settings...
Replies
5
Boosts
0
Views
5.3k
Activity
Jun ’15
Reply to I accepted the new developer agreements, but XCode still claims I need to accept the agreements
Same here. When I try to download the files from member center it's just stuck on Loading forever...
Replies
Boosts
Views
Activity
Jun ’15
How do I create a snapshot in Xcode 7?
File menu no longer shows option to create snapshot. But project window still refers to snapshots.
Replies
3
Boosts
0
Views
1.3k
Activity
Jun ’15
zip compression of directory for 32/64 bit
I am looking for a good 32/64 bit version of a zip library for compressing directories to password protected files. Most of the ones I find (for example zipArchive) are fairly old and 32 bit based.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
0
Boosts
0
Views
158
Activity
Jun ’15