Search results for

missing package product

51,080 results found

Post

Replies

Boosts

Views

Activity

Reply to How to properly percent-encode a URL string?
You can try creating an instance of NSURLComponents with the string to see if it's more robust.Forgot to mention that; I tried that, it chokes on the same things that -[NSURL initWithURL:] chokes on.If not, Apple's advice, in the 10.11 release notes, is:If you need to percent-encode an entire URL string, you can use this code to encode a NSString intended to be a URL (in urlStringToEncode): NSString *percentEncodedURLString = [[NSURL URLWithDataRepresentation:[urlStringToEncode dataUsingEncoding:NSUTF8StringEncoding] relativeToURL:nil] relativeString];That worked. Strange that I missed that in the release notes. Thanks for the help.
Topic: UI Frameworks SubTopic: AppKit Tags:
Jun ’15
How to deal with supposed gaps in the standard library?
Below are two examples of what one might assume to be gaps / missing protocols in the current standard library (Swift 2, Xcode 7 beta 2). I'd like to get advice on how to handle the particular situation described here as well as similar situations in general (ie how to handle the prevalence and successive diminishing of supposed gaps during the rapid evolution of Swift and its standard library).Ok. Consider the primitive number types in the standard library (Double, Float, Float80, UInt, Int, UInt8, Int8, UInt16 ... Int64). They share some common characteristics, some of which are explicitly available for us to use through protocols such as IntegerArithmeticType, FloatingPointType, IntegerType etc, and others which are only there implicitly.Two examples of such only-implicitly common features / missing protocols:The fact that any primitive number type can be (explicitly) converted to (initialized with) any other primitive number type.All the integer types have bounds specified by their .max
0
0
278
Jun ’15
Plist file deleted?
I opened my app in the Xcode 7 beta 2 release and the plist file that my app uses to load it's data was deleted somehow. The file shows up in red and it can't be opened. Even when opening the app in the old xcode version the file is still in red and can't be opened. Does anyone have any idea why this happened or how I can get it back?I even tried restoring snapshots I used and the plist file is still missing.
0
0
200
Jun ’15
OSX App access to CloudKit production environment
I'm working on an iOS game and am using CloudKit to store game levels. I'm creating the game levels on a Mac admin app, which is not meant to be available on the App Store. This works well within the development environment, but I'm unsure how to access the CloudKit production environment from the admin app. iOS apps access the CloudKit production environment when submitted to TestFlight. TestFlight is not available for OSX apps. What is the best practice to give an admin OSX app (not meant to be available on the App Store) access to the CloudKit production environment?
3
0
687
Jun ’15
swift double accuracy
I am new to swift, it's actually my first attempt. I have the following program in playground://:===================import UIKitfunc tax(s:Double)->Double{ return s*0.05}var xx=66.0*2.0tax(xx)//============The expected result is6.6,but swift evaluates the last line as6.600000000000001What am I missing.
1
0
739
Jun ’15
Reply to swift double accuracy
You are missing nothing. The result comes from the way computers represent numbers. Have a look at this https://en.wikipedia.org/wiki/Floating_point#Accuracy_problems .If you need perfect numbers and the range is limited you could use Integers and use them premultiplied with a value, for example for a $-value you could just use cent: 145ct instead of 1.45$. This is called fixed point numbers. https://en.wikipedia.org/wiki/Fixed-point_arithmetic
Jun ’15
Watch 2 missing UIDevice, CFNetwork, Reachability, and more
We're porting to Watch OS 2 and finding many, many calls not present. Some of the most notable for now include UIDevice. Important APIs like [[UIDevice currentDevice] name] and [[UIDevice currentDevice] identifierForVendor]. I suppose I can get by without [[UIDevice currentDevice] model] because there's more or less only one model.Also not present is the SCNetworkReachability framework. I can probably ignore/workaround that. Not having anything to call the device I'm on will look sketchy. Not having identifierForVendor will decrease the user experience on reinstall.SSL support seems to be missing from CFNetwork. Critical APIs like kCFStreamPropertySSLSettings and kCFStreamSSLCertificates are just missing. These would be total showstoppers, might as well just disable the target until these reappear. We need strict control over every aspect of SSL, so working around this could require totally rewriting away from CFNetwork which it's safe to say wouldn't be happening soon.Similarly, CFHTTPMessa
6
0
2.6k
Jun ’15
Reply to libcompression ?
From what we can see, the linker accepts the TBD file as effectively a list of symbols to presume are defined in order to allow compilation - if you add that file to the linked frameworks of your project, it will no longer generate errors for the missing symbols.edit: removed conjecture due to issues we were also having. Just link to the TBD file and it should work.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Runtime crash in Swift 2 file drag-and-drop code
Since converting a project from Swift 1.2 to Swift 2, I'm getting a crash (EXC_BAD_ACCESS) when dropping files into a drop zone. Here's the code:override func performDragOperation(sender: NSDraggingInfo) -> Bool { let pboard: NSPasteboard = sender.draggingPasteboard() if let urls = pboard.readObjectsForClasses([NSURL.self], options:nil) { let appDelegate = NSApplication.sharedApplication().delegate as! AppDelegate appDelegate.performActionForDropZone(self.identifier!, withDroppedItems: urls as! [NSURL]) } return true }It's crashing in pboard.readObjectsForClasses() when I drop 1 or more files (and/or folders) into the drop zone, which triggers this function. This was running fine in Swift 1.2 (I'd get an array of URLs sent to the app delegate), and I'm at a loss to understand why it's crashing now, other than it might be a Swift 2 runtime problem. Any thoughts or suggestions would be greatly appreciated.
5
0
919
Jun ’15
Reply to Download failure
I was having the same problem as many with the App Store hanging and softwareupdated using 100% cpu. Killing the process while in the Updates tab seemed to solve it for me. After that I could manually install the Recovery update. But the other ones always got stuck while downloading.After some investigation it seems like the App store thinks the package is larger than what it actually is, for example, the Command Line Tools package is 127mb whileas the App Store thought it was 188mb. Going to /Library/Updates and manually running the .pkg worked for me. I haven't tried this yet with the other packages though.
Topic: App & System Services SubTopic: Core OS Tags:
Jun ’15
Where does serveradmin store postfix virtual domain settings?
I have an odd issue, not exactly sure what causes it, but here are the symptoms:In the past I had a catch-all e-mail @myDomain.net, which in past versions would act as a wildcard.I gather this no longer works, but the various server upgrade scripts didn't catch that and properly remove it.Also, for the sake of readability, I entered the domain as myDomain.net and not as my domain.net, which according to RFCs shouldn't make a difference, however any e-mail address I now add causes a mydomain.net domain to be created, in addition to the myDomain.net.myDomain.net is a secondary domain, I also have a main domain, which I shall call domain.comSo, now in /Library/Server/Mail/Config I end up with one problematic file: virtual_users (and of course virtual_users.db)This of course says:### DO NOT MANUALLY EDIT THIS FILE #### This file is automatically generated# any manual modifications will be lost# myDomain.net@myDomain.net meme@myDomain.net me# domain.comme@domain.comIn the server's user section, the user m
1
0
340
Jun ’15
IAP
Hi,. We are a game developer.This time, try to proceed with the project, which we tested in the IAP process.The current program that we use Enterprise.But if we try to register the product in iTunes Connect access the following message will appear.Hmm, the page you're looking for can not be found.When I ask if you can answer the IAP test .
0
0
206
Jun ’15