Search results for

eskimo

35,039 results found

Post

Replies

Boosts

Views

Activity

Reply to SSL Handshake failed 9801 - TCP connection - Xcode 7
To start, given that you're using NSStream rather than NSURL{Session,Connection}, App Transport Security is not relevant. ATS only applies to high-level HTTP[S] APIs.Next, it seems that you're server only supports SSL 3.0. You can see this in the OpenSSL log you posted:SSL-Session: Protocol : SSLv3NSStream on iOS 9 requires TLS 1.0 or later by default. You can lower this default via kCFStreamPropertySSLContext and SSLSetProtocolVersionMin as shown in the code below. But you really should not do that. SSL 3.0 is woefully insecure, to the point that you might as well send data in plaintext. context = (SSLContextRef) CFReadStreamCopyProperty( (__bridge CFReadStreamRef) self.inputStream, kCFStreamPropertySSLContext ); assert(context != NULL); success = SSLSetProtocolVersionMin(context, kSSLProtocol3) == errSecSuccess; assert(success); CFRelease(context);Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.c
Aug ’15
Reply to Unable to setenv DYLD_LIBRARY_PATH using launchctl command on El Captian.
The MCR includes a set of dynamic libraries whose path needs to be added to the DYLD_LIBRARY_PATH. That seems like an odd way to build an app. There are two alternatives, both of which avoid this pitfall:Put the runtime libraries in some fixed location on disk (/usr/local/YourCompanyName is traditional, but /Library/Frameworks/YourFrameworkName works as well) and then reference them via an absolute path.Put the runtime libraries within the app and then reference them via @loader_path, @executable_path or @rpath. This is how Swift bundles its runtime libraries within an app.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Aug ’15
Reply to How to access and control the char *** in Swift
Given a C declaration like this:extern size_t FullOfStars(char *** itemArrayPtr);here's how you call it:var itemArray: UnsafeMutablePointer<UnsafeMutablePointer<Int8>> = nil let itemCount = FullOfStars(&itemArray)Note that you don't need to use alloc here, you can just initialise the value to nil. I found two ways to access the elements. The first is kinda C-like.var cursor = itemArray for i in 0..<itemCount { print(String.fromCString(cursor.memory)) cursor = cursor.successor() }The second is much Swift-ier (Swift-ish? Swift-ly? have we decided on an adjective yet?).let b = UnsafeMutableBufferPointer(start: itemArray, count: itemCount) for s in b { print(String.fromCString(s)!) }btw This was tested on Xcode 7.0b5, so YMMV on Xcode 6.4.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: Programming Languages SubTopic: Swift Tags:
Aug ’15
Reply to how to restrict UITextField input english number
Take a look at the -stringByApplyingTransform:reverse: method, added in iOS 9. The NSStringTransformLatinToArabic transform will happily convert digits between (the oh-so-confusingly-named) Arabic and Eastern Arabic numerals. If you have to support older platforms you can use CFStringTransform with kCFStringTransformLatinArabic. btw I moved your thread to App Frameworks > Localization because this isn't a Swift-specific problem.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Aug ’15
Reply to nsurlsessiond crashes EXC_RESOURCE CPU in iOS 8.3
I did indeed file bug number 21465338Thank you.which was closed as a duplicate of 20582825 which was itself closed with no further details about what version it is supposed to be fixed in.According to the bug reports this was a bug in NSURLSession that was introduced in iOS 8.3 and is expected to be fixed in iOS 9. It only affects background sessions on iOS. Unfortunately I don't think there's a workaround, other than for you app to be as tolerant as possible of these nsurlsessiond crashes. Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Aug ’15
Reply to get current WiFi ssid
Eskimo,Per your request to share our use case,This change can kill our business, simple as that.We use an external device and let our users perform cetrain actions when they are conected to their home wifi SSID.The users themselves approves this and have a specific screen in the app that shows them the current SSID and allows them to name it and save it.we do not spy or do anything malicious, so why take this essitial ability from app developers?What I don't get is:If you want to increase users' privacy,why don't you add another grant option for wifi access, same as Location, Motion, Push Notification, Camera, Photos, Contacts etc..?
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’15
Reply to get current WiFi ssid
It's been very silent on Apple's side...@eskimo, do you have an update regarding this major decision that will not only hit a lot of developers, but a lot of customers as well?Another thing: 'deprecated' basically means it is going to be removed in a future version.In this case, 'deprecated' means instantly removed without prior notice? It shouldn't have been removed in the first place.
Topic: App & System Services SubTopic: Core OS Tags:
Aug ’15
Reply to how to restrict UITextField input english number
CFStringTransform has been around since the Dawn of Time™, so you just need to wrap that in something that makes it easier to call from Swift. extension String { func stringByApplyingArabicTransformingReverse(reverse: Bool) -> String { let selfMutable = CFStringCreateMutableCopy(nil, 0, self) let success = CFStringTransform(selfMutable, nil, kCFStringTransformLatinArabic, reverse) assert(success) return selfMutable as String } func stringByTransformingToArabic() -> String { return self.stringByApplyingArabicTransformingReverse(false) } func stringByTransformingToLatin() -> String { return self.stringByApplyingArabicTransformingReverse(true) } }The above was tested with Xcode 7.0b5. To get it working in Xcode 6.4 you have two tweak how it handles Booleans.let success = CFStringTransform(selfMutable, nil, kCFStringTransformLatinArabic, reverse ? 1 : 0) assert(success != 0)Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail =
Aug ’15
Reply to Cellular Test Mode Data
Sorry to say you are wrong, but follow the link to the developer site you provided and you will find the files and the download are gone.Ah, indeed. Sorry about the mixup.Three things:CoreTelephonyDemo was retired because it had bugs (specifically r. 11935349). We decided to retire the sample rather than fix the bugs because the public Core Telephony API is very simple and generates very few questions to DTS.Core Telephony has a small public API and a large private API. When you read discussions on the 'net about using Core Telephony for this sort of thing, folks are usually referring to the private API. DevForums is not an appropriate place to be discussing private APIs.Ongoing sandbox hardening means that, on recent systems, much of the Core Telephony private API no longer works when called from third-party apps.I am working on an App where I want to map current coverage for the carrier of my iPhone. I don't need to set anything, just read data that is already available within the phone.I'll repeat what I s
Aug ’15
Reply to background session configuration + kerberos
iOS […]OK. The rule for Kerberos single sign-on on iOS is that no code changes are required. A corollary to that rule is that, if things aren't working then it's not your fault (-:Given that things work in the foreground session, my conclusion is that your Kerberos SSO is set up correctly and that this is a bug in the OS itself.I've filed a radar as well 22255017Thanks. I think that's about all you can do right now.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Aug ’15
Reply to Accept-Language vs preferredLanguage
Is there another API which returns exactly the value set by iOS for Accept-Language header for a given System language setting ?The mechanism used by CFNetwork is hard to replicate because, AFAICT, it depends on private APIs whose functionality is not available via any public API. Specifically there's doesn't seem to be a way to find out the default region for a language, which is necessary if you want to to map en to en_US.What do you need this info for?Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Aug ’15
Reply to access app on locked screen
There's no way to put a normal app on the lock screen. One option is to create a Today extension, which the user can add to their Today view, which is optionally available when the device is locked.See App Extension Programming Guide for more.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: Privacy & Security SubTopic: General Tags:
Aug ’15
Reply to Question about provisioning profiles
If you’re distributing outside the Mac App Store then you’re using Developer ID. Developer ID apps neither require nor can use a provisioning profile.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic: Code Signing SubTopic: General Tags:
Aug ’15
Reply to How do you send a notification?
Now I dont know hot to push it from the server to another device.Alas, there’s not enough information here to give a meaningful response. I recommend that you read Local and Remote Notification Programming Guide. Once you have a feeling for how push notifications flow through the various systems, you’ll be able to ask a more specific question.Share and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Aug ’15