Writing a String to an NSOutputStream in Swift

In recent Swift it should be even easier and NSData is no longer needed. let s = “String to encode” let encodedDataArray = [UInt8](s.utf8) outputstream.write(encodedDataArray, maxLength: encodedDataArray.count) Arrays can be accessed as buffers of the correct their type (see withUnsafeBufferPointer). I think the array is necessary because the utf8 view is not actually instantiated as … Read more

Xcode 6 Save for Enterprise Deployment does not create plist for ipa anymore?

I’m having the same problem. Needed to put a build out last night. I ended up just reusing an old plist and updating it. Here’s a template: <?xml version=”1.0″ encoding=”UTF-8″?> <!DOCTYPE plist PUBLIC “-//Apple//DTD PLIST 1.0//EN” “http://www.apple.com/DTDs/PropertyList-1.0.dtd”> <plist version=”1.0″> <dict> <key>items</key> <array> <dict> <key>assets</key> <array> <dict> <key>kind</key> <string>software-package</string> <key>url</key> <string>[INSERT URL HERE]</string> </dict> </array> <key>metadata</key> … Read more