Search results for

file uri scheme

78,581 results found

Post

Replies

Boosts

Views

Activity

Reply to Bitcode and Assembly?
> For iOS, this should *just work*.Unfortunately it does not work.I created a library project that contains a very basic .c file and a .s file.The .c file gets compiled into a .o file that does contain a bitcode section; the .s file generates a .o file that does not contain bitcode.The resulting .a also does not contain a bitcode segment.I'm testing if bitcode is added by running otool -l | grep bitcode% otool -l Cfile.o | grep bit sectname __bitcodeXcode asks LLVM to use -fembed-bitcode-marker. I manually tried using -femit-bitcode, but with a unknown argument: '-femit-bitcode'
Jun ’15
NSURL StringwithContentsofURL
Hi, This seems to fail in XCode7 Beta but runs in XCode6, so wondering about network on iOS or on simulator, but no idea. Thanks, RobZ / NSMutableString *myEditPath = [NSMutableString stringWithFormat:@http:/ NSURL *myURL = [NSURL URLWithString:myEditPath]; NSError *myError; NSString *stringFromFile = [NSString stringWithContentsOfURL:myURL encoding:NSUTF8StringEncoding error:NULL]; NSLog(@myEditPath = %@,myEditPath); if (stringFromFile == nil) { / NSLog(@Error reading file at %@n%@, myURL, [myError localizedFailureReason]); }
2
0
549
Jun ’15
Reply to Troubleshooting the launch of local user XPC Launch Agent
Thanks for your suggestions, Kevin.ktam wrote:> So just to get something working I'd recommend removing entitlements from the equation right now and adding them back in afterwards.While I haven't tried this with the code I posted above I did try that later with my original test code and that didn't resolve the invalid connection issue.> The path to the program in the Program arguments array is to the executable within the LaunchAgent bundle, not just to the Launch Agent itself. I'm pretty certain this is needed.I've corrected that issue later in both the code above and with my original test code.> I do not use ~ but fully resolved paths to the Launch Agent as well.The later versions of the code posted above and my original test code use full/absolute paths to the Launch Agent in the launchd plist.> I had to use launchctl unload/load for launchd to recognize that the launchd plist file had been modified.I've been doing this in-between every change.> you might need to prefix your service
Jun ’15
allowDeferredLocationUpdatesUntilTraveled:timeout: still calls didUpdateLocation at 1 hz (iOS 8.3 iPhone 5s)
Has anyone else ran into the issue of telling a location manager to defer updates but still get regular location updates via didUpdateLocations?I have:Killed all apps from multitasking barVerified that no other app is using location servicesUnplugged the device from debugger and MacBook (Verify it is still getting call by logging didUpdateLocations to a file)Made sure that the device supports deferred updatesMade sure that 5 fixes in a row are processed within 2 seconds of the previous before deferringMade sure that the distanceFilter is None, the desiredAccuracy is Best, the activityType is Navigation (have also tried OtherNavigation), and that pauseLocationUpdates is YES (Have tried NO too)And potentially more that I cannot rememberIs this method something that the OS decides to do if it needs to and when it does need to it just provides the updates at the a normal interval of 1hz?
6
0
2.9k
Jun ’15
Finder pops up with sysdiagnose file
I have the OS X Yosemite Version 10,11 Beta installed on my Macbook Pro. While working on something unrelated, Finder suddenly popped up a new window with a sysdiagnose file. It's in Macintosh HD / private / var / tmp, and is dated from right now.Why is this popping up? Should I be taking any action?Rajat Datta
1
0
2.9k
Jun ’15
Reply to avAudioPlayer OSStatus error 2003334207
Thank you! 🙂I was retrieving my url stored from the core data and somehow they got changed during the insertion. Because of your answer I investigated, and was able to resolve the issue by retrieving the correct path using the file manager instead.I am new and every little set back shatters the confidence. You made my day. Thank you!🙂
Topic: Media Technologies SubTopic: Audio Tags:
Jun ’15
Reply to iTunes freezing iOS 9, OS X 10.11
Same issue for me.My iPhone 6 would not sync with iTunes after install iOS9.I did get iTunes to sync by accessing iTunes menu bar.iTunes/File/Devices/SYNCiTunes/File/Devices/BACKUPThis allowed the sync and backup to occur, but I am still unable to access the phone icon in the iTunes menu bar.Enough frustrations with iTunes sync/backup as well as power drain, I reinstalled iOS 8.4 while I wait for iOS9 beta 2.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
css
html5's my file is succesfly.I wanna set the @font-face in body {} or p{} 's styles.And then I wanna set the writing-mode: tb-rl; in body {} 's styles.At now I know the way for stylesheet's can do is so a few word only.It's like this.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~body { background-color: #000000; background-image: url(Picture.jpg); background-repeaet: repeat-y; background-attachment: fixed; background -position: center top; }p1 { color: #ff00ff; font-size: 30px; }p2 { color #ccffcc; font-size: 40px; }as save as file name.css on text edita that is named and added .css.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~html5 is called by this declare.~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<!DOCTYPE html><html lang=ja><head><meta charset=Shift_JIS><meta name=ROBOTS content=noindex,nofollow><meta http-equiv=imagetoolbar content=no><title>daiary.html</title><meta name=discription co
2
0
630
Jun ’15
Reply to App thinning and syncing with iTunes
Same here.I already asked in the WWDC Lab, what happens with on-demand ressources, when a new version is submitted, only on demand ressources have been changed? Will I see an update, that does not download or install anything except the info.plist?But xloser to your topic:My Mac s my digital hub and I never download App Updates via WiFi, only if I do not have any other option and the update is important enough (like during the WWDC). I have 3 devices linked there, my iPhone, my newer iPad (V3) and an old original one (ignoring for now).When I download the thinned updates in iTunes, what will happen?Do I get 2 different build downloaded, one for iPhone one for iPad?Do I get a app download, that is thinned to only the 2 devices - in that case not that much at all?What happens, when I download a thinned App on my iPhone, sync it via iTunes and want to install it on my iPad? The thinned iPhone version won't work on the iPad. Do I need a download - will it be another file?Last not least, imagine I get a t
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Reply to How do I get a list of all possible values of a Swift enum?
I couldn't add init?(rawValue:) to the protocol for some reason. Hence the init?(index:) initializerDoes anyone know how to use the 'where' clause to tell if an enum has Int rawValues? I tried several approaches, but couldn't get any to work. It would be nice to remove the boilerplate init...This works:protocol EnumerableEnum: RawRepresentable { static func allValues() -> [Self] } extension EnumerableEnum where RawValue == Int { static func allValues() -> [Self] { var idx = 0 return Array(anyGenerator { return Self(rawValue: idx++) }) } } enum TestEnum: Int, EnumerableEnum { // <-- Will not compile unless it has Int RawValues. case A, B, C } print(TestEnum.allValues())Accessing static properties from a protocol extension seems to crash the compiler at the moment, hence the static functionYes, it seems like a compiler bug:protocol EnumerableEnum: RawRepresentable { static var allValues: [Self] { get } } extension EnumerableEnum where RawValue == Int { static var allValues: [Self] { get { var idx = 0 r
Topic: Programming Languages SubTopic: Swift Tags:
Jun ’15
Bypassing Swift's "availability"
HI all,Does anyone know if there is a way to bypass Swift's availability in version 2?We have a code that uses injection to add implementation for API that is unavailable in older versions of iOS, but is available in newer versions of iOS, which makes it easy to support older versions of iOS in a new API syntax.With the introduction of the availability compiler errors we can't compile our Swift 2 code, the compiler doesn't know that these methods are injected at runtime and throws an error, and we can't call these methods from new API only because we need to support older versions.Writing a wrapper is also not an option, reverting the code back to Obj C will be far less work, but this is an option we really don't want to resort to.Does anyone have any thoughts on how to resolve this issue?Thanks,Uri.
2
0
508
Jun ’15
Reply to Auto generate swift protocol placeholders in implementation class
More annoyingly, clients of the class will also complain, so you can't clean-compile other files until you've actually implemented the protocol.As a workaround, would it work for you to write the dummy implementations in a protocol extension? That would get rid of the errors, and you could copy and paste from there to your actual classes when you want to finish implementing them. Later on in the development cycle, you can delete the protocol extension, and then you'll get errors for anything you've missed.
Jun ’15
Reply to NSURLSession upload in background file size limit
Hello Dex,I'm testing always over WiFi. About the per-24hr limits, I didn't know this limitation, but I don't think that is my problem.Doing the test and using WiFi I can upload a 2GB file to the server in 1 hour more or less- The behavior in iPad air with 8.1.2, in iPad air with 7.2, in iPhone 5S with 8.3 and in iPhone 6 plus with 8.2: The file start to upload, I get the progress of the upload and after 1 hour more or less the file is uploaded.- The behavior in iPhone 5 with 8.1.2: The file start to upload and in one second the file is uploaded with 0 bytes. I get the 200 http ok of the server. I have checked the request and it's ok and the origin path is correct.
Topic: UI Frameworks SubTopic: UIKit Tags:
Jun ’15
Reply to Using single image vs @2x & @3x
Also note that in iOS 9 with App Slicing/Thinning that only the appriopriate files for a device will be downloaded. So for iPhone 6 Plus only @3x files will be downloaded (where available), etc. Therefor the only person who would actually 'benefit' from using one image size to keep the app size small is you, when you are uploading to the App Store 😉For more info on App Slicing/Thinning: https://developer.apple.com/library/prerelease/ios/documentation/IDEs/Conceptual/AppDistributionGuide/AppThinning/AppThinning.html
Topic: Graphics & Games SubTopic: SpriteKit Tags:
Jun ’15
Convert CFString to String in case statement
With the following code:import Cocoa let foo = public.file-url let bar = kUTTypeFileURL as String switch foo { case kUTTypeFileURL as String: print(File URL) default: print(Not a file URL) }Why do I get the error 'CFString' is not implicitly convertible to 'String' for the case statement? It works if I rewrite the case statement ascase kUTTypeFileURL as NSString as String:but with the bar variable this double casting was not neccessary.
0
0
2.7k
Jun ’15